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

Hero Arena Bases (condition: run actions if player belongs to <team>)

Status
Not open for further replies.
Level 2
Joined
Dec 29, 2008
Messages
10
Okay, so i need help with a Hero Arena map i'm making. Here's my problem, i'm trying to make a condition so that the player that enters a region has to be on a certain team for the actions to work, but i can't seem to find this condition. Anyone know the solution?
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
You have to set each team in its own player group (variable). Then your trigger should look like this:
  • Region
    • Events
      • Unit - A unit enters YourRegion
    • Conditions
    • Actions
      • -------- For conditions I am using boolean comparison --------
      • -------- Player is in player group --------
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is in (YourPlayerGroup1)) Equal to True
        • Then - Actions
          • -------- Fire actions for first player group (team) --------
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is in (YourPlayerGroup2)) Equal to True
        • Then - Actions
          • -------- Fire actions for second player group (team) --------
        • Else - Actions
 
Status
Not open for further replies.
Top