• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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