I'm trying to make a spell that gives my unit a chance to poison other units by attacking.
I'm stuck at the part where the unit gets the behaviour that allows it to poison other stuff.
Here's what I did:
-Make a button, give it a name and that green baneling explosion icon
-Make the behaviour that gives my unit a chance to poison, also with green baneling explosion icon
-Go to the unit that should have the ability, add the button, change the vommand type to passive, and set it to the behaviour of the last step
As a result my unit has the button but greyed out and the behaviour icon doesn't appear in the buff bar (which it should if I change nothing, right?).
Where could I have made a mistake?
And another question: How can I make a behaviour that doesn't show up in the buff bar?
well as to your first question, the button is grayed out because the unit doesnt have the passive ability active. you either have to go to the units tab and add the behavior to the unit in the behaviors+ field or set up another ability/trigger to apply the behavior to your unit (only if you want the behavior to become active after a certain point/event). also make sure that your behavior's duration is set to -1 or the behavior will be removed after the time specified in the duration field.
for your second question i assume you mean you want the behavior to be hidden so if some one clicks on the unit they can't see the little buff icon. to do that simply go into your behavior and in the stats:flags field and click the 'hidden' box.
Hello
I'm trying to make a spell that gives my unit a chance to poison other units by attacking.
I'm stuck at the part where the unit gets the behaviour that allows it to poison other stuff.
Here's what I did:
-Make a button, give it a name and that green baneling explosion icon
-Make the behaviour that gives my unit a chance to poison, also with green baneling explosion icon
-Go to the unit that should have the ability, add the button, change the vommand type to passive, and set it to the behaviour of the last step
As a result my unit has the button but greyed out and the behaviour icon doesn't appear in the buff bar (which it should if I change nothing, right?).
Where could I have made a mistake?
And another question: How can I make a behaviour that doesn't show up in the buff bar?
well as to your first question, the button is grayed out because the unit doesnt have the passive ability active. you either have to go to the units tab and add the behavior to the unit in the behaviors+ field or set up another ability/trigger to apply the behavior to your unit (only if you want the behavior to become active after a certain point/event). also make sure that your behavior's duration is set to -1 or the behavior will be removed after the time specified in the duration field.
for your second question i assume you mean you want the behavior to be hidden so if some one clicks on the unit they can't see the little buff icon. to do that simply go into your behavior and in the stats:flags field and click the 'hidden' box.
Give the behavior to the unit in the Behaviors + - field.
Check the Hidden - flag for the behavior.
Thanks, now it works :)