How can I add an energy requirement ?
I have a building with an ability to morph into another building. I want the ability to work if the building has that specific energy .
I'm not sure if I understand it correct, but do you want it to cost energy? In that case, go to the Cost field of the ability, and set the Vitals -> Energy to what you want it to cost.
If you want it to be an actual requirement, I'm not sure that it's possible to make a requirement count vitals of the user unit.
What you also could do, was to use a validator to check the energy of the caster unit, which would stop the casting of the ability if the validator returns false.
The easiest, and clearest for the player, would be to use energy cost.
Well ya.. I know about the cost energy but that will decrease the energy and that is not what I want.
I want to just check if the building has that energy and if it does than to be able to upgrade it.
I will try the validator way. Hopefully I will get it right .
Well ya.. I know about the cost energy but that will decrease the energy and that is not what I want. I want to just check if the building has that energy and if it does than to be able to upgrade it.
I will try the validator way. Hopefully I will get it right .
You are causing everyone extra work because you are being narrow minded. Use the suggestion for cost, and add a trigger or effect to refund the energy.
Put it in the Ability: Validator Array field of your Morph ability. Under the validator set Validator: Compare to greater than or equals, Validator: Unit - Value to caster, Validator: Value to whatever you want and Validator: Vital to energy.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Hello,
How can I add an energy requirement ?
I have a building with an ability to morph into another building. I want the ability to work if the building has that specific energy .
@gorjdesign: Go
I'm not sure if I understand it correct, but do you want it to cost energy? In that case, go to the Cost field of the ability, and set the Vitals -> Energy to what you want it to cost.
If you want it to be an actual requirement, I'm not sure that it's possible to make a requirement count vitals of the user unit.
What you also could do, was to use a validator to check the energy of the caster unit, which would stop the casting of the ability if the validator returns false.
The easiest, and clearest for the player, would be to use energy cost.
@Demtrod: Go
Well ya.. I know about the cost energy but that will decrease the energy and that is not what I want. I want to just check if the building has that energy and if it does than to be able to upgrade it.
I will try the validator way. Hopefully I will get it right .
How exactly do I check the energy with the validator ?
I want it to check if it has enough or more than X energy .
Unit Compare Vital type validator just throw it in the field in the Morph 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
@DrSuperEvil: Go
Ya.. but with Unit Compare Vital it seems I can only add effect to it, cant link it to my ability .
You are causing everyone extra work because you are being narrow minded. Use the suggestion for cost, and add a trigger or effect to refund the energy.
Done.
Put it in the Ability: Validator Array field of your Morph ability. Under the validator set Validator: Compare to greater than or equals, Validator: Unit - Value to caster, Validator: Value to whatever you want and Validator: Vital to energy.
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
@DrSuperEvil: Go
Thank you for your help. It works great !
@silvermage: Go
You don't have to be a douchebag. I Just started editing one month ago and this is my first SC2 map.
Besides you might merely want the energy stored to be an enabler and not a consumable.
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
@DrSuperEvil: Go
Yea, that is how I wanted it to work. Don't know how to do it using the data editor.
I did it using triggers. Like this : http://postimg.org/image/qcpcsbwhn/ And it works the way I want it.
But if you know a better way using Data, then I can do that .