• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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