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

Creating Creep Waves?

Status
Not open for further replies.
Level 5
Joined
Dec 18, 2007
Messages
168
(Sorry if this has been done before.)

Alright, I'm trying to make a Hero Defense map, and I need to know: how do you make creep waves?

If you could post a picture of the triggers, and how to get to those triggers,
(I sometimes can't figure it out!), that would be awesome.

Thanks in advance!
 
Here you go:


  • CreepWaves Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- This trigger just sets which units will go in which wave --------
      • -------- You will need 2 variables for this: one unittype named WaveUnit and integer WaveCount --------
      • Set WaveCount = 0
      • Set WaveUnit[1] = Footman
      • Set WaveUnit[2] = Knight
      • Set WaveUnit[3] = Rifleman
      • -------- And so on... --------
  • CreepWaves Spawn
    • Events
      • Time - Every X seconds of game time
    • Conditions
    • Actions
      • -------- This is the actual spawning trigger --------
      • -------- You will need additional variable here: TempPoint --------
      • Set WaveCount = (WaveCount + 1)
      • -------- Set the exiting For value to number of spawns you want --------
      • For each (Integer A) from 1 to 10, do (Actions)
        • Loop - Actions
          • -------- Creating Unit --------
          • Set TempPoint = (Center of (StartRegion))
          • Unit - Create 1 WaveUnit[WaveCount] for Neutral Hostile at TempPoint facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_TempPoint)
          • -------- Ordering Unit to move --------
          • Set TempPoint = (Center of (EndRegion))
          • Unit - Order (Last created unit) to Move To TempPoint
          • Custom script: call RemoveLocation(udg_TempPoint)
 
Status
Not open for further replies.
Back
Top