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

Buildings train automatically? {making a building train units automatically}

Status
Not open for further replies.
Level 3
Joined
Mar 18, 2009
Messages
31
Hi,

Me again. I want my buildings to start training units automatically, I've solved it for structures that tells them to train every 60 seconds, but I also want them to start training once completed.
Now if I construct a building, it works fine as I can tell Constructed Structure to start training, but if I upgrade it to the next level of building it won't work :/
I've looked and looked but I couldn't find an event response for Upgraded Structure.

Any tips?

Will give rep and hugs :)
 
Level 3
Joined
Mar 26, 2007
Messages
51
You could possibly make a variable for triggering unit where the event is a unit finishes constructing/upgrading etc. and tell the variable to start producing. Though I'm not quiet sure what you are talking about :) hope it helps tho.
 
Level 3
Joined
Mar 18, 2009
Messages
31
Ajalex: That's what I've done, but that only kicks in after the first cycle. I want it to start training immediately after it's been upgraded. Example:
Barracks upgrades to Stables. When the Barracks are built, they start training Footmen automatically, but when it's upgraded to Stables, I have to wait for the 60-second trigger to run it's cycle before it starts producing Knights.
There's an event when a unit finishes upgrading, but no variable for upgraded unit...
 
Status
Not open for further replies.
Top