I'm making a pokemon map. Pokemon can evolve and become stronger by reaching a certain level or by usin items. My problem is that my item evolution triggers don't work. This trigger works perfectly:
And this trigger only pauses all units:
Moon Stone is an item with an ability Moon Stone. Why doesn't this trigger work?
Code:
Cyndaquil
Events
Unit - A unit Gains a level
Conditions
(Hero level of (Leveling Hero)) Greater than or equal to 14
(Unit-type of (Leveling Hero)) Equal to Cyndaquil
Actions
Unit - Pause all units
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Leveling Hero)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Unit - Replace (Leveling Hero) with a Quilava using The old unit's relative life and mana
Unit - Unpause all units
Code:
Nidorina
Events
Unit - A unit Starts the effect of an ability
Conditions
(Unit-type of (Target unit of ability being cast)) Equal to Nidorina
(Ability being cast) Equal to Moon Stone
Actions
Unit - Pause all units
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Wait 0.20 seconds
Special Effect - Create a special effect at (Position of (Target unit of ability being cast)) using Abilities\Spells\Items\AIlm\AIlmTarget.mdl
Wait 0.20 seconds
Special Effect - Destroy (Last created special effect)
Unit - Replace (Target unit of ability being cast) with a Nidoqueen using The old unit's relative life and mana
Unit - Unpause all units
Item - Remove (Item carried by (Casting unit) of type Moon Stone)