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

Question with trigger

Status
Not open for further replies.
Level 12
Joined
Sep 11, 2011
Messages
1,176
Hi guys i want to make a trigger that it checks if a player have 2 heroes

  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units owned by (Player 1 (Red)) Matching ((Matching unit) is a hero) Equal to true))
    • Loop - Actions
      • Set HeroNum = (HeroNum + 1)
  • If all conditions are true then do actions else do actions
    • If - Conditions
      • HeroNum equal to 2
    • Then - Actions
      • -------- do your actions --------
    • Else - Actions
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units owned by (Player 1 (Red)) Matching ((Matching unit) is a hero) Equal to true))
    • Loop - Actions
      • Set HeroNum = (HeroNum + 1)
  • If all conditions are true then do actions else do actions
    • If - Conditions
      • HeroNum equal to 2
    • Then - Actions
      • -------- do your actions --------
    • Else - Actions

What does this thing do?
Custom script: set bj_wantDestroyGroup = true
 
Status
Not open for further replies.
Top