• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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