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

Need help with a condition

Status
Not open for further replies.
Level 29
Joined
Sep 26, 2009
Messages
2,595
Something like this?

  • Custom script: set bj_wantDestroyGroup = true
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Number of units in (Units in (Playable map area) matching ((((Matching unit) is alive) Equal to True) and ((Owner of (Matching unit)) Equal to Player 1 (Red))))) Less than or equal to 1
    • Then - Actions
      • -------- do stuff --------
    • Else - Actions
If so, that's Integer comparison -> Unit - Count units in unit group.
As for the unit group itself, that's 'Units in region matching condition'.

The custom script
  • Custom script: set bj_wantDestroyGroup = true
is there to prevent memory leak from creating a unit group
 
Status
Not open for further replies.
Top