Cloud_FF
New Member
- Reaction score
- 5
lol misunderstood what you meant by whole ![Big Grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Also the variable name is "effect" now so I don't need to redo 14 triggers![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Edit: DiePos is a variable which remembers the position of the dead unit.
Wait...something is missing here...
Edit2: Widened the trigger, because it has errors and doesn't work as intended, or in other words hits all enemies in the map, not around the dead unit. Pff took me for ever to write that.
Edit3: Removed the variable which uses the DiePos. It messes up the other triggers.
Code:
Event
Unit - A unit dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Triggering unit)) Equal to Magma Elemental (Fire 1)
(Unit-type of (Triggering unit)) Equal to Magma Elemental (Fire 2)
(Unit-type of (Triggering unit)) Equal to Magma Elemental (Fire 3)
(Unit-type of (Triggering unit)) Equal to Magma Elemental (Fire 4)
(Unit-type of (Triggering unit)) Equal to Magma Elemental (Fire 5)
(Unit-type of (Triggering unit)) Equal to Magma Lord (Fire 6)
(Unit-type of (Triggering unit)) Equal to Phoenix
Actions
Set AllUnits = (Units within 800.00 of (Triggering unit))
Unit Group - Pick every unit AllUnits and do (Actions)
Loop - Actions
If (All conditions are True) then do (The Actions) else do (Else Actions)
If - Conditions
(Owner of (Picked Unit)) Equal to Player 11
(Picked Unit) is Alive
Then Actions:
Unit - Cause (Triggering Unit) to damage (Picked Unit), dealing ((Random percentage) x 60.00) damage of attack type Spells and damage type Fire.
Custom Script: local effect udg_effect
Special Effect - Create a special effect at (Position of (Triggering unit)) using <animation>
Set Effect = (Last created special effect)
Wait - 2.00 seconds
Special Effect - Destroy effect
Else Actions:
Do Nothing
Also the variable name is "effect" now so I don't need to redo 14 triggers
Edit: DiePos is a variable which remembers the position of the dead unit.
Wait...something is missing here...
Edit2: Widened the trigger, because it has errors and doesn't work as intended, or in other words hits all enemies in the map, not around the dead unit. Pff took me for ever to write that.
Edit3: Removed the variable which uses the DiePos. It messes up the other triggers.