Hello!
As title says, I'm looking for a action that orders the training unit to stop training the last trained unit. This is what I've done so far (doesn't work):
As title says, I'm looking for a action that orders the training unit to stop training the last trained unit. This is what I've done so far (doesn't work):
Trigger:
- Morph no additional training
- Events
- Unit - A unit Begins training a unit
- Conditions
- (Unit-type of (Triggering unit)) Equal to Zerg Cocoon
- Actions
- Game - Display to (Player group((Owner of (Triggering unit)))) the text: hi
- Trigger - Turn off Morph Cocoon die upon cancelling training <gen>
- Set Group[1] = (Units currently selected by (Owner of (Triggering unit)))
- Unit Group - Pick every unit in Group[1] and do (Actions)
- Loop - Actions
- Selection - Remove (Picked unit) from selection for (Owner of (Triggering unit))
- Loop - Actions
- Game - Force (Owner of (Triggering unit)) to press Escape/Cancel
- Selection - Select (Triggering unit) for (Owner of (Triggering unit))
- Unit Group - Pick every unit in Group[1] and do (Actions)
- Loop - Actions
- Selection - Add (Picked unit) to selection for (Owner of (Triggering unit))
- Loop - Actions
- Trigger - Turn on Morph Cocoon die upon cancelling training <gen>
- Events