- Joined
- Mar 30, 2013
- Messages
- 337
Hi everyone, I'm trying to make a zerg-like egg training sistem, but i have problems with the second condition and with the rally point. What am I doing wrong here?
-
Penguin Worker
-
Events
-
Unit - A unit Finishes training a unit
-
-
Conditions
-
(Unit-type of (Trained unit)) Equal to Penguin Worker
-
-
Actions
-
Set PenguinWorker = (Trained unit)
-
Set egg = (Position of PenguinWorker)
-
Set rallypointpenguin = (Rally-Point of PenguinWorker as a point)
-
Unit - Create 1 dummy penguin worker egg for Neutral Passive at egg facing 0.00 degrees
-
Unit - Order (Last created unit) to Neutral - Parasite (Trained unit)
-
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation (udg_egg)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(PenguinWorker has buff Hatching (Minion)) Equal to False
-
-
Then - Actions
-
Unit - Replace PenguinWorker with a Penguin Worker using The old unit's relative life and mana
-
Unit - Order (Last replaced unit) to Attack-Move To rallypointpenguin
-
Sound - Play Penguin___u <gen>
-
Custom script: call RemoveLocation (udg_rallypointpenguin)
-
-
Else - Actions
-
-
-