HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple Victory Conditions

12-20-2005, 01:10 AM#1
Murder1833
Okay, the map I've been working on is nearly ready. My only problem is, my victory conditions aren't working.
They are:
Code:
 Time - Every 0.01 seconds of game time

(Number of units in (Units owned by Player 1 (Red) of type Grunt)) Equal to 0

Quest - Display to all players...
Game - Victory Player 3 (Teal) (Show dialogs, Show score)
Trigger - Turn of (This trigger)

Tell me what I did wrong, and mabey give me new defeat conditions.
This map is for 1 player and the goal is to destroy all of Player 1's units.

~Murder
12-20-2005, 02:18 AM#2
Vexorian
dead units count

The solution is to use (Units owned by player matching condition)

But that causes memory leaks so you would have to remove that unit group

And there is not reason to do so every 0.01 seconds, you could use "A unit dies" as event (Just make sure you don't remove any unit with Unit - Remove Unit without killing it first)
12-20-2005, 12:30 PM#3
Murder1833
thx vex. ill try it
12-20-2005, 09:54 PM#4
Murder1833
I've almost got it down, but what would my condition be? I think its a booleen, what what should it be set to.

Sorry for double-post.

(Nvm) I fixed it, it works. Thx again..,
12-20-2005, 09:58 PM#5
Anitarf
Same as you had before, only instead of checking how many grunts there are, you would check how many alive grunts there are.
12-21-2005, 01:58 AM#6
Murder1833
Ok, well its done now, at least most including victory, thx all.