• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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!
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
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.
Top