Help! How do I make this Event/Condition?

Status
Not open for further replies.
Level 3
Joined
Aug 29, 2004
Messages
57
Hi I've been experimenting and using the map editor for a while now but I'm still not too versed in the inner workings of triggering.

I need to be able to make a trigger that only executes when all of the units of Allies of player 1 Red have entered a specified region. How can this be done?
 
Try this:

(Event)
Unit - Unit Enters a Region
| . REGION GOES HERE

(Condition)
Integer Comparison
| . Unit - Count Units in Unit Group
| . | . Units In Region Matching Condition
| . | . | . REGION GOES HERE
| . | . | . Boolean Comparison
| . | . | . | . Player - Player Is An Ally Of Player
| . | . | . | . | . Owner of Unit
| . | . | . | . | . | . Event Response - Entering Unit
| . | . | . | . | . Player 1 (Red)
| . | . | . | . Equal To
| . | . | . | . True
| . Equal To
| . Unit - Count Units in Unit Group
| . | . Units In Region Matching Condition
| . | . | . Playable Map Area
| . | . | . Boolean Comparison
| . | . | . | . Player - Player Is An Ally Of Player
| . | . | . | . | . Owner of Unit
| . | . | . | . | . | . Event Response - Entering Unit
| . | . | . | . | . Player 1 (Red)
| . | . | . | . Equal To
| . | . | . | . True

Basically that checks, when a unit enters the region, if the number of units in the region allied to Red is the same as the number of units anywhere allied to Red, and if so, executes the actions.
 
Status
Not open for further replies.
Back
Top