- Joined
- Nov 7, 2006
- Messages
- 50
Hey guys, I am making a zombie revival trigger, where, once a zombie is killed, it has a 1/3 chance to raise again with partial health after time and continue it's hunt for brains. But what i was wondering is if my trigger leaks, and if you guys could help me out. (I'm pretty bad at checking for leaks)
Here it is:
Here it is:
-
Zombie Death
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Zombie
-
(Unit-type of (Triggering unit)) Equal to Zombie (Diseased)
-
-
-
(Custom value of (Triggering unit)) Equal to 0
-
-
Then - Actions
-
Unit Group - Remove (Triggering unit) from Enemies
-
Wait (Random real number between 10.00 and 120.00) seconds
-
Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The new unit's default life and mana
-
Unit Group - Add (Last replaced unit) to Enemies
-
Animation - Play (Last replaced unit)'s birth animation
-
Unit - Set life of (Last replaced unit) to (Random real number between 30.00 and 65.00)%
-
Unit - Set the custom value of (Last replaced unit) to (Random integer number between 0 and 2)
-
-
Else - Actions
-
Unit Group - Remove (Triggering unit) from Enemies
-
-
-
-