i have got this trigger so far to remplace units but it replaces all units of this type including other's player's units, why???
-
Ressurect
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
Set HumanImpaled = (Units of type Human Impaled)
-
Unit Group - Pick every unit in HumanImpaled and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Picked unit) is in DontAdd) Equal to False
-
-
Then - Actions
-
Unit Group - Add (Picked unit) to DontAdd
-
Trigger - Add to Ressurect2 <gen> the event (Unit - (Picked unit)'s mana becomes Greater than or equal to 1.00)
-
-
Else - Actions
-
-
-
-
Custom script: call DestroyGroup (udg_HumanImpaled)
-
-
-
Ressurect2
-
Events
-
Conditions
-
Actions
-
Set Mana = (Percentage mana of (Triggering unit))
-
Unit - Remove (Triggering unit) from the game
-
Set Ethereal = (Units of type Explorer (Ethereal))
-
Unit Group - Pick every unit in Ethereal and do (Actions)
-
Loop - Actions
-
Unit - Replace (Picked unit) with a Explorer (Corporeal) using The old unit's relative life and mana
-
Unit - Set mana of (Last replaced unit) to Mana%
-
-
-
Custom script: call DestroyGroup (udg_Ethereal)
-
-