I'm trying to figure out to make a button on a building so that when clicked the player can purchase 100 xp for 100 minerals. The player can then click on the unit that is to receive the xp and it will only work on hero units. Can anyone give me any help on this?
Create an ability for the building. Call it Give Exp, or whatever. The ability should be of type Target.
Make the ability create an effect of type Modify Unit (Effect - Experience field set to 100). Add a validator to this effect that checks for units that have the classification Heroic.
Adjust the cost of the ability (Cost - Cost+) to cost 100 minerals.
Thanks. That is helpful. I made the button with the ability and effect and the ability costs 100 and requires units to be heroic. I can't find a way to make it add experience. I set the part called experience to 100 but that does nothing. Also, it will say the unit is out of range unless the unit is actually touching the building. As far as I can tell the range is set to minimum 0 and maximum 500 so I'm not sure why that isn't working.
Okay I figured out how to fix the range but I still can't find a way to make it actually increase the experience. The experience field under effect doesn't seem to do anything.
I'm trying to figure out to make a button on a building so that when clicked the player can purchase 100 xp for 100 minerals. The player can then click on the unit that is to receive the xp and it will only work on hero units. Can anyone give me any help on this?
Create an ability for the building. Call it Give Exp, or whatever. The ability should be of type Target.
Make the ability create an effect of type Modify Unit (Effect - Experience field set to 100). Add a validator to this effect that checks for units that have the classification Heroic.
Adjust the cost of the ability (Cost - Cost+) to cost 100 minerals.
Let me know if you need clarification.
Thanks. That is helpful. I made the button with the ability and effect and the ability costs 100 and requires units to be heroic. I can't find a way to make it add experience. I set the part called experience to 100 but that does nothing. Also, it will say the unit is out of range unless the unit is actually touching the building. As far as I can tell the range is set to minimum 0 and maximum 500 so I'm not sure why that isn't working.
Okay I figured out how to fix the range but I still can't find a way to make it actually increase the experience. The experience field under effect doesn't seem to do anything.
I (finally) figured it out. I needed to make the arc of the ability be 360, among other things.
Great!