CBBPhoenix
New Member
- Reaction score
- 1
Hi everyone
Why does WE disable this trigger?
These If/Then/Else conditions are repeated 29 times (!) so I just showed some of them. Else function for all of them is "Do nothing".
I use it in my map for a hero who should have a powerup every 1 second as long as he is alive and has a buff from an ability. The point is that it should work as if he gets an additional buff from using his ability, and the 1 second thing is for stopping dispel (so that it will reappear in at most 1 second until the end of the ability which lasts 30 seconds)
Hope someone can tell me why World Editor wont allow me to use these triggers.
Why does WE disable this trigger?
Trigger:
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Armor of Agathys
- (Level of (Ability being cast) for (Casting unit)) Equal to 1
- Actions
- Set frostarmorcaster = (Casting unit)
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (frostarmorcaster is alive) Equal to True
- Then - Actions
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (frostarmorcaster is alive) Equal to True
- Then - Actions
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (frostarmorcaster is alive) Equal to True
- Then - Actions
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (frostarmorcaster is alive) Equal to True
- Then - Actions
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (frostarmorcaster is alive) Equal to True
- Then - Actions
- Hero - Create armor of agathys and give it to frostarmorcaster
- Special Effect - Create a special effect attached to the chest of frostarmorcaster using Abilities\Spells\Undead\DeathandDecay\DeathandDecayTarget.mdl
- Set deatheffect = (Last created special effect)
- Wait 1.00 seconds
- Special Effect - Destroy deatheffect
- If - Conditions
- If - Conditions
- If - Conditions
- If - Conditions
- If - Conditions
These If/Then/Else conditions are repeated 29 times (!) so I just showed some of them. Else function for all of them is "Do nothing".
I use it in my map for a hero who should have a powerup every 1 second as long as he is alive and has a buff from an ability. The point is that it should work as if he gets an additional buff from using his ability, and the 1 second thing is for stopping dispel (so that it will reappear in at most 1 second until the end of the ability which lasts 30 seconds)
Hope someone can tell me why World Editor wont allow me to use these triggers.