- Joined
- Feb 25, 2009
- Messages
- 38
So ill jump right to it;
What i've been failing to do for the past few days is to make some sort of trigger that makes out an ability that is seemingly like Metamorphosis, but without an expiration timer. Instead i want the ability to drain mana while active. I then want it to automatically cancel the effect (being a boost to strength based on the hero's experience and intelligence) when i either run out of mana or cancel the effect manually. Perhaps even if the unit is, say, stunned?
Is such a thing possible?
For the record, i am not in any way experienced in advanced triggering, but i do have some years of experience with it.
I'll dump the two simple triggers i have made so far. They probably leak like hoola hoops, but i did my best. They are simply where i left off after i gave up the other day, after trying like 50 different triggers for the decast effect.
The casting works, it adds strength to the hero, but i can't figure out how to cancel the effect and reset it to the original strength.
What i've been failing to do for the past few days is to make some sort of trigger that makes out an ability that is seemingly like Metamorphosis, but without an expiration timer. Instead i want the ability to drain mana while active. I then want it to automatically cancel the effect (being a boost to strength based on the hero's experience and intelligence) when i either run out of mana or cancel the effect manually. Perhaps even if the unit is, say, stunned?
Is such a thing possible?
For the record, i am not in any way experienced in advanced triggering, but i do have some years of experience with it.
I'll dump the two simple triggers i have made so far. They probably leak like hoola hoops, but i did my best. They are simply where i left off after i gave up the other day, after trying like 50 different triggers for the decast effect.
-
cast
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to 'the ability casted by the hero (based off immolation)'
- (Unit-type of (Casting unit)) Equal to 'the hero'
-
Actions
- Set StrIncrease = ((Intelligence of (Casting unit) (Include bonuses)) x ((Hero experience of (Casting unit)) / 200))
- Set Str = (Strength of (Casting unit) (Include bonuses))
- Hero - Modify Strength of (Casting unit): Add StrIncrease
-
Events
-
decast
-
Events
- Unit - A unit Is issued an order with no target
-
Conditions
- (Issued order) Equal to (Order(unimmolate))
- (Ordered unit) Equal to (Triggering unit)
-
Actions
- Hero - Modify Strength of (Triggering unit): Set to Str
- Hero - Enable experience gain for (Triggering unit)
-
Events
The casting works, it adds strength to the hero, but i can't figure out how to cancel the effect and reset it to the original strength.