There is the damage effect in the effects that causes a unit to lose whatever the combat amount is each time the damage effect is applied.
Is there a way to make a damage effect that instead causes the unit to lose that much energy/mana? I tried using behaviors but they modify the actual max energy by a static amount or fraction rather than just subtracting some amount.
As an example, say you were implementing a warcraft 3 ability like Mana Burn, which drains a targets mana for a static amount (but doesn't modify its maximum).
Nevermind, I figured it out. I remembered after posting this that Blizzard implementing such an effect for EMP, so I looked up the effects for that...apparently they used a modify unit effect for the vitals.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi everyone,
There is the damage effect in the effects that causes a unit to lose whatever the combat amount is each time the damage effect is applied.
Is there a way to make a damage effect that instead causes the unit to lose that much energy/mana? I tried using behaviors but they modify the actual max energy by a static amount or fraction rather than just subtracting some amount.
As an example, say you were implementing a warcraft 3 ability like Mana Burn, which drains a targets mana for a static amount (but doesn't modify its maximum).
Thanks!
@sethmachine: Go
Nevermind, I figured it out. I remembered after posting this that Blizzard implementing such an effect for EMP, so I looked up the effects for that...apparently they used a modify unit effect for the vitals.