Trigger - Condition "Region contains a unit owned by player 1"

world23wc3

Member
Reaction score
6
Are there any trigger condition that can check if player 1 have got any units in region 001 for example?
Please post It here, I couldn't find it myself so I hope you can explain where you've found it.

Thanks :)

/World23wc3
 

-OverpoweR-

Member
Reaction score
13
Trigger:
  • Test
    • Events
      • Time - Every 0.50 seconds of game time
    • Conditions
      • (((Playable map area) contains (Triggering unit)) Equal to True) and ((Owner of (Triggering unit)) Equal to Player 1 (Red))
    • Actions
    • (place your actions here)


Hmmm, i think that might help you out , tho im not sure if (((Playable map area) contains (Triggering unit)) will refer to any unit in the playable map area,perhaps someone more experienced than me can confirm this ? :)
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
You could use this condition:
Trigger:
  • (Number of units in (Units in YourRegion owned by Player 1 (Red))) Greater than 0

But I'm not sure if you need to catch leaks with the group. I think you do, meaning you need to do this:
Trigger:
  • Set TempUnitGroup = (Units in No region owned by Player 1 (Red))
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Number of units in TempUnitGroup) Greater than 0
      • Then - Actions
        • Do something
      • Else - Actions
    • Custom script: call DestroyGroup(udg_TempUnitGroup)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top