I'm trying to create an ability which steal's up to 25 energy and give 100% of stolen energy to the caster. I managed to take 25 energy from the unit (with Modify Unit effect) but could not get it to give it the to the caster afterwards. Can't do the easy fix and just give 25 energy when the ability is cast because that would just don't work if, lets say, the target had 10 energy. Could anyone give me a hand? ;)
Also, if you apply that validator, make sure it's target unit and I think you may want that validator on the energy remove effect too (steal AND burn only working when energy is over 25, else you burn without stealing when energy is under 25)
Thanks! Didn't think of that;) But now, if the target energy is below 25 energy it doesn't do anything at all but triggers the cooldown. How could i fix it?, or should i just keep it in there so people have to use their mind.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
I'm trying to create an ability which steal's up to 25 energy and give 100% of stolen energy to the caster. I managed to take 25 energy from the unit (with Modify Unit effect) but could not get it to give it the to the caster afterwards. Can't do the easy fix and just give 25 energy when the ability is cast because that would just don't work if, lets say, the target had 10 energy. Could anyone give me a hand? ;)
I was looking around but couldn't find anything.
You could probably do a if then else,
if
Then
Else
@Pshyched: Go
Thanks, but dawg, this is in the data forum.
I don't know how to do that, but there may be a workaround.
You could simply make the ability restore 25 energy every time.
Or you make lots of those effects in the set each with validators that check for energy (how much).
edit:
damn you were faster :>
@Vitkar: Go
Hmm, the one with 25 effects sounds like alot of work:p I'll just try make it give 25 energy and and make a validator "energy=>25"
@Jooon: Go
Also, if you apply that validator, make sure it's target unit and I think you may want that validator on the energy remove effect too (steal AND burn only working when energy is over 25, else you burn without stealing when energy is under 25)
@Vitkar: Go
Thanks! Didn't think of that;) But now, if the target energy is below 25 energy it doesn't do anything at all but triggers the cooldown. How could i fix it?, or should i just keep it in there so people have to use their mind.