• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] make building stop training unit action

Status
Not open for further replies.
Level 16
Joined
Jul 21, 2008
Messages
1,121
You can't stop it, but you can make it with replace unit.

Implement this trigger and edit it to your needs.

  • Stop Research
    • Events
      • Unit - A unit Begins research
      • Unit - A unit Begins training a unit
    • Conditions
    • Actions
      • Unit - Replace (Triggering unit) with a (Unit-type of (Triggering unit)) using The old unit's relative life and mana
      • Selection - Add (Last replaced unit) to selection for (Owner of (Triggering unit))
This trigger replaces researched unit with same unit and adds it to selection. When replacing, research/training will be stopped.

Of course, gold/lumber cost is ignored.
 
Status
Not open for further replies.
Top