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:
.
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
-
-
