I am working on a game where when you get and item with an ability, the ability shows in your commend card, for example i get a sniper item and get the ability snipe in my commend card, if i remove it I loose snipe and if I use another item i get a new ability, I need to be able to have 3 spells at the same time, each in a differant commend card spot
First make 3 generic abilities that do nothing
Then create your buttons in the command card all having one of the 3 abilities
a generic ability for each command card slot.
Using validators you can check for a behavior to show hide the ability.
So when the unit has a sniper it has the sniper equip behavior which shows a sniper button that has generic ability 1.
Then in a trigger check when unit uses ability
then order unit to use inventory item targeting unit/point or whatever
So snipe has Generic ability 1
If generic ability 1 is effect complete
Order triggering unit to use item in slot 14 or whatever
It will be a little tricky but not impossible
However there may be the issue that people could use the item ability and the command card ability seperately
you may need to link the cooldowns
I found another way because yours is just way too complicated for me, I made buttons saying press q for ability 1, w for ability 2 and so on and just made triggers so that when they get pressed it uses item in slot and it works for now.
Thanks for helping anyways your post gave me the idea
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am working on a game where when you get and item with an ability, the ability shows in your commend card, for example i get a sniper item and get the ability snipe in my commend card, if i remove it I loose snipe and if I use another item i get a new ability, I need to be able to have 3 spells at the same time, each in a differant commend card spot
Thanks for helping
Note: This may need triggers, if it does its ok.
Here is an idea that might help
First make 3 generic abilities that do nothing
Then create your buttons in the command card all having one of the 3 abilities
a generic ability for each command card slot.
Using validators you can check for a behavior to show hide the ability.
So when the unit has a sniper it has the sniper equip behavior which shows a sniper button that has generic ability 1.
Then in a trigger check when unit uses ability
then order unit to use inventory item targeting unit/point or whatever
So snipe has Generic ability 1
If generic ability 1 is effect complete
Order triggering unit to use item in slot 14 or whatever
It will be a little tricky but not impossible
However there may be the issue that people could use the item ability and the command card ability seperately
you may need to link the cooldowns
I found another way because yours is just way too complicated for me, I made buttons saying press q for ability 1, w for ability 2 and so on and just made triggers so that when they get pressed it uses item in slot and it works for now.
Thanks for helping anyways your post gave me the idea