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!
For each (Integer A) from 1 to count, do (Actions)
Loop - Actions
Custom script: set udg_u = GetResearchedUnit()
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Unit-type of u) Equal to train_Type[(Integer A)]
Then - Actions
Player - Add gold_cost[(Integer A)] to (Owner of (Triggering unit)) Current gold
Player - Add lumber_cost[(Integer A)] to (Owner of (Triggering unit)) Current lumber
Else - Actions
The custom script needs you to have a unit variable called u. I am pretty sure you can't replace it with a pure GUI action, however, I am uncertain and might be wrong here.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.