• 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.

[Trigger] i need a trigger along the lines of... (will add rep)

Status
Not open for further replies.
Level 13
Joined
Mar 16, 2008
Messages
941
I think of something like
Integer Comparison
(Number of Units in (Units of player(1) matching, unit is of type (footman))) > 0
Going to edit it asap exactly :)

EDIT:
  • (Number of units in (Units owned by Player 1 (Red) of type Footman)) Greater than 0
Integer Comparison -> Units - Count units in unit group -> units owned by player of type -> footman
But care, "units owned by player of type" leaks and requires a temporary group :)
 
Status
Not open for further replies.
Top