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

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?...
 
Level 8
Joined
Mar 3, 2009
Messages
327
  • 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.
Top