Hello!
I want this: When I create a unit, the creating unit will be replaced, and then the replaced unit will then train the unit that was originally trained. This is how I did:
The problem is that only the name of; Name of (Last replaced unit) is being showed. Therefor, the last replaced unit doesn't build a unit type of trained unit. How can fix this?
I want this: When I create a unit, the creating unit will be replaced, and then the replaced unit will then train the unit that was originally trained. This is how I did:
Trigger:
- Morph Units
- Events
- Unit - A unit Begins training a unit
- Conditions
- (Unit-type of (Triggering unit)) Equal to Larva
- Actions
- Set Point[1] = (Position of (Triggering unit))
- Unit - Replace (Triggering unit) with a Zerg Cocoon using The old unit's relative life and mana
- Unit - Order (Last replaced unit) to build a (Unit-type of (Trained unit)) at Point[1]
- Selection - Add (Last replaced unit) to selection for (Owner of (Triggering unit))
- Game - Display to (All players) the text: (Name of (Last replaced unit))
- Game - Display to (All players) the text: (Name of (Trained unit))
- Events
The problem is that only the name of; Name of (Last replaced unit) is being showed. Therefor, the last replaced unit doesn't build a unit type of trained unit. How can fix this?