• 🏆 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] 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