• 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] Unit training

Status
Not open for further replies.
Level 1
Joined
May 18, 2009
Messages
4
Hey everyone :)
My idea is that when i train a unit a trigger launches, which continues training units. The problem is that the building which is training the units has upgrades - to access the upgrade (the upgrade to become available) the unit production has to stop - so, I stop the production but the upgrade stays passive (unavailable). When I disable the trigger and play with unit production/upgrading everything is okay.
Here's the trigger:
  • Barracks
    • Events
      • Unit - A unit Finishes training a unit
    • Conditions
    • Actions
      • Set Trained_Unit = (Unit-type of (Trained unit))
      • Set Structure[0] = (Triggering unit)
      • Unit - Order Structure[0] to train/upgrade to a Trained_Unit
If someone can help me, I'll really appreciate it :grin:.
 
Status
Not open for further replies.
Top