• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

spawning system

Status
Not open for further replies.
Okay so here's the thing, I'm making a map with a spawning system, now I know how to make a spawning system, that's the easy part! Make it only happen when buildings are around? No problem.

But here's the hard part that may require variables, and I never completely understood the whole (Unit_Train+1) thing. The main problem is that I want it when a unit is trained, instead of training an actual unit, it adds one to the spawn. This may require invisible units, that part I can do, but how do I add a unit of that type to a spawn that happens every minute or so?...
 
  • Events:
  • A unit finishes training a unit
  • Conditions:
  • Unit-type of trained unit equal to footman
  • Actions:
  • Set spawncount = (spawncount+1)
  • Unit-Remove trained unit
And then

  • Event:
  • Time - Every 60 seconds
  • Conditions:
  • Actions:
  • Unit: Create spawncount footmen for player one (red)
  • Unit-Group: Order last created unit group to do whatever
spawncount is an integer variable
 
Status
Not open for further replies.
Back
Top