I have a unit that I don't want to be a hero.
However, I have given it an attribute (which works fine) and I want to adjust this attribute's value individually for that unit by an increment of 1 every time a unit clicks on a button (which happens to cost minerals).
Make a new behavior (a buff), and set both the maximum stack count and the maximum stack count per caster to 9999 or such. Also, set the flags to hidden, and under Modification+, make it add 1 to it's attribute.
Then, you can make a trigger to give as much of these buffs as you want to the unit.
I figured this out myself for a map I'm making, so there may be an easier way, I'm not sure.
Set player to anything, really. It doesn't totally matter. If you want to be anal, try Owner of Triggering Unit or such. Or Player 0.
It even lets you decide how many to apply.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a unit that I don't want to be a hero. However, I have given it an attribute (which works fine) and I want to adjust this attribute's value individually for that unit by an increment of 1 every time a unit clicks on a button (which happens to cost minerals).
How do I do this?
Thanks in advance! :)
Use an upgrade
I want it to be to a specific unit. Not all units of the same type.
I don't think upgrades can do this. Am I mistaken?
Make a new behavior (a buff), and set both the maximum stack count and the maximum stack count per caster to 9999 or such. Also, set the flags to hidden, and under Modification+, make it add 1 to it's attribute.
Then, you can make a trigger to give as much of these buffs as you want to the unit.
I figured this out myself for a map I'm making, so there may be an easier way, I'm not sure.
"Then, you can make a trigger to give as much of these buffs as you want to the unit."
What is the command to do this? I can't find it for the life of me. :( I knew it was something like this.
Add behavior (player)
Set player to anything, really. It doesn't totally matter. If you want to be anal, try Owner of Triggering Unit or such. Or Player 0. It even lets you decide how many to apply.