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

Checking if one unit has the Ticket Item in a unit group

Status
Not open for further replies.
Level 8
Joined
Jul 18, 2010
Messages
332
  • Unit Group - Pick every unit in team1units_Copy and do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Picked unit) has an item of type Golden Ticket) Equal to True
        • Then - Actions
          • Trigger - Turn on nightmare circus boss stage Copy <gen>
        • Else - Actions
          • Trigger - Turn on nightmare circus boss stage Copy Copy <gen>
This trigger is supposed to check if one of the units has a golden ticket. At first, I made the condition to have all units carrying the golden ticket but now only one unit is obliged to get the ticket.

The problem is that I don't know how to do it.
 
Status
Not open for further replies.
Top