Hello, i need help with this GUI trigger! cant make it work.
My zombies lose mana when they're not in combat. When they get any damage, they win some mana. The idea was that when a zombie dyes, if he have more than certain amount of mana, he explodes causing some dmg to nearby units, but i dont manage to make it explode.
ill be waiting for answers, thank you very much!
My zombies lose mana when they're not in combat. When they get any damage, they win some mana. The idea was that when a zombie dyes, if he have more than certain amount of mana, he explodes causing some dmg to nearby units, but i dont manage to make it explode.
-
Zombie Explosion
-
Events
- Unit - A unit Dies
-
Conditions
- (Unit-type of (Dying unit)) Equal to Zombie
- (Unit-type of (Dying unit)) Equal to Zombie (Menor)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Mana of (Dying unit)) Greater than or equal to 85.00
-
Then - Actions
- Special Effect - Create a special effect at (Position of (Dying unit)) using war3mapImported\BloodSlam.mdx
- Special Effect - Destroy (Last created special effect)
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Dying unit)) matching (((Matching unit) belongs to an enemy of Player 4 (Purple)) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit - Cause (Dying unit) to damage (Picked unit), dealing (30.00 + ((Max life of (Picked unit)) x 0.16)) damage of attack type Spells and damage type Normal
-
Loop - Actions
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
ill be waiting for answers, thank you very much!