I am trying to add a energy cost per second to a custom ability. I am unsure if it is easier to do this through triggers or data editor. I have triggers set up to -1 Energy if ability is active but I cannot figure out how to automatically turn off once the energy count reaches 0. Can anyone help? If there is a simpler way to do this other than triggers please suggest :)
What DrSuperEvil said, info on the ability would be helpful.
If it's a behavior ability, and the behavior is of type "Buff", open the Modifications field, click on "unit", and scroll down to the part where you modify regens, then set energy regen to -1 (Or something like that. Remember to calculate in your base regen)
Then open the "Validator (Remove)" field and set it to "Has Energy". One thing many people get confused with in this field is that validators need to be FALSE to remove the behavior. In other words, this field says "Behavior can only exist if unit [has energy]"
If you're using an ability that is set up differently and this isn't possible, please give us more info.
The ability is a Radar that is turned on and off with a command card.
I have the ability set to turn on and off with 2 triggers
1.) If player uses ability Radar On, set energy regen to -1
2.) If player uses ability Radar Off, set energy regen to .5
I added the Validator and it shuts off the ability for me like I want it to but it shuts it off when the unit is at 5 Energy instead of 0
Cooldown question. I added a cooldown timer for the ability but the cooldown starts when you press the ability rather than after the ability ends. How do i make it so the ability ending/turned off triggers the cooldown
I am trying to add a energy cost per second to a custom ability. I am unsure if it is easier to do this through triggers or data editor. I have triggers set up to -1 Energy if ability is active but I cannot figure out how to automatically turn off once the energy count reaches 0. Can anyone help? If there is a simpler way to do this other than triggers please suggest :)
you need to add a VALIDATOR to your ability. to check if energy is at ZERO
check out the MEDIC heal ability , you can probly use the SAME validators..
make sure you take the correct one. i think one of them is for energy hitting 0 . and the other one to see if the unit is FULL HP.
Just use the validator from the ghost cloak buff. I advise you give some details as to what your ability does so we can give the best tailored advice.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
What DrSuperEvil said, info on the ability would be helpful.
If it's a behavior ability, and the behavior is of type "Buff", open the Modifications field, click on "unit", and scroll down to the part where you modify regens, then set energy regen to -1 (Or something like that. Remember to calculate in your base regen)
Then open the "Validator (Remove)" field and set it to "Has Energy". One thing many people get confused with in this field is that validators need to be FALSE to remove the behavior. In other words, this field says "Behavior can only exist if unit [has energy]"
If you're using an ability that is set up differently and this isn't possible, please give us more info.
The ability is a Radar that is turned on and off with a command card. I have the ability set to turn on and off with 2 triggers 1.) If player uses ability Radar On, set energy regen to -1 2.) If player uses ability Radar Off, set energy regen to .5 I added the Validator and it shuts off the ability for me like I want it to but it shuts it off when the unit is at 5 Energy instead of 0
Fixxed it, changed the validated number to 1 and when the energy reaches 1 it shuts off the ability.
Cooldown question. I added a cooldown timer for the ability but the cooldown starts when you press the ability rather than after the ability ends. How do i make it so the ability ending/turned off triggers the cooldown
What do you mean by radar, if it is like the sensor tower you could just use a Behavior ability.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg