Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Creating Waves for Defence maps...
Creating Waves for Defence maps...
Apr 3 2009, 8:20 pm
By: PurpleKow  

Apr 3 2009, 8:20 pm PurpleKow Post #1



Ive searched high and low and cannot find a decent explanation on how to create waves of enemies for a defence map. Any sugggestions are welcome.



None.

Apr 3 2009, 8:58 pm Symmetry Post #2

Dungeon Master

How familiar are you with the editor? I'd be happy to make a simple explanation/guide as to how to create waves for a defense map, but I want to know how detailed to make it.



:voy: :jaff: :voy: :jaff:

Apr 3 2009, 9:10 pm PurpleKow Post #3



Im no super genius but i know my way around the editor. Thanks for the help.



None.

Apr 3 2009, 9:27 pm Symmetry Post #4

Dungeon Master

Alright, well I'll assume you know to use triggers and what not then.

First you're going to need to place locations along the path your waves will travel across. Let's say for simplicities sake that we'll use 3 locations: the start of the path, a single turn in the path and the end of a path.

Once you have these placed, open your trigger menu and create triggers that will order your units across the path. It should look something like this:

Conditions
ALWAYS
Actions
ORDER ALL ANY UNIT OWNED BY (computer player) AT 'START' TO 'TURN'
ORDER ALL ANY UNIT OWNED BY (computer player) AT 'TURN' TO 'END'
PRESERVE TRIGGER

There are other ways to do this, but this is the easiest in my opinion.

Next, we'll create our waves. Let's say we want them to come every time a countdown timer reaches '1'. We'll use a death count variable to keep track of what level we're on. Create a trigger to set a countdown timer at the beginning of the game and then set it up like this:

CONDITIONS:
'Player x' has suffered at most 0 deaths of 'counter' (use whichever player/unit you want for this)
Countdown Timer is at most 1 second
ACTIONS:
Create x 'wave 1' at location 'start'
set countdown timer to 1 minute
Set deaths for 'player x' for unit 'counter' to '1'


CONDITIONS:
'Player x' has suffered at most 1 deaths of 'counter'
Countdown Timer is at most 1 second
ACTIONS:
Create x 'wave 2' at location 'start'
set countdown timer to 1 minute
Set deaths for 'player x' for unit 'counter' to '2'


CONDITIONS:
'Player x' has suffered at most 2 deaths of 'counter'
Countdown Timer is at most 1 second
ACTIONS:
Create x 'wave 3' at location 'start'
set countdown timer to 1 minute
Set deaths for 'player x' for unit 'counter' to '3'

These triggers will spawn your waves every time the counter reaches '1', reset the counter and increase the death count so the next trigger will run when the countdown timer is done.

If anything needs to be clarified, just ask.



:voy: :jaff: :voy: :jaff:

Apr 3 2009, 9:37 pm PurpleKow Post #5



Thank you so much i cant say how much I appreciate this.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:00 am]
l)ark_ssj9kevin -- hi jamal
[12:18 am]
Heinermann -- memes
[10:08 pm]
NudeRaider -- skeet-skeet, motherfucker
[04:24 pm]
Vrael -- NudeRaider
NudeRaider shouted: Vrael boy, if you're not careful I'll moderate your sorry ass too!
gotta catch me first! skeet skeet skeet
[2026-4-26. : 1:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
Please log in to shout.


Members Online: Zergy