Region Condition - If RegionVariable = Region001 then.. how to do?

Sneakster

Active Member
Reaction score
24
Not sure how to compare region variables as a boolean, but you can use a boolean to define is a unit is in the region you want:

Trigger:
  • Enter Region
    • Events
      • Unit - A unit enters POOP <gen>
    • Conditions
      • InPOOP Not equal to True
    • Actions
      • Set Region = POOP <gen>
      • Set InPOOP = True
      • Game - Display to (All players) the text: You are in poop.


Trigger:
  • Exit Region
    • Events
      • Unit - A unit leaves POOP <gen>
    • Conditions
      • InPOOP Equal to True
    • Actions
      • Set InPOOP = False
      • Game - Display to (All players) the text: Outta poop!
 

komapatient

New Member
Reaction score
10
Not sure how to compare region variables as a boolean, but you can use a boolean to define is a unit is in the region you want:

Trigger:
  • Enter Region
    • Events
      • Unit - A unit enters POOP <gen>
    • Conditions
      • InPOOP Not equal to True
    • Actions
      • Set Region = POOP <gen>
      • Set InPOOP = True
      • Game - Display to (All players) the text: You are in poop.


Trigger:
  • Exit Region
    • Events
      • Unit - A unit leaves POOP <gen>
    • Conditions
      • InPOOP Equal to True
    • Actions
      • Set InPOOP = False
      • Game - Display to (All players) the text: Outta poop!

I don't need this trigger for Unit detection. I need it to determine where AI units will move to. Anyway, nice effort. I'll give you rep!
 

komapatient

New Member
Reaction score
10
By the way: you brought me on the right way...

A region comparison can be made by a boolean comparison:

Trigger:
  • If ((R_SpawnPoint[(Integer A)] contains (Center of Spawn1 <gen>)) Equal to True) then do (Unit - Order (Picked unit) to Patrol To (Center of Spawn5 <gen>)) else do (Do nothing)


This works out pretty solid to me ;) TY!
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top