• 🏆 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!

Arena End trigger help

Status
Not open for further replies.
Level 8
Joined
Jul 18, 2010
Messages
332
  • Arena End Trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Region 009 <gen> contains (Dying unit)) Equal to True
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Player Group - Pick every player in team1 and do (Actions)
        • Loop - Actions
          • Set team1units = (Units owned by (Picked player) matching (((((Matching unit) is A structure) Equal to False) and ((Region 009 <gen> contains (Matching unit)) Equal to True)) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is A Hero) Equal to True)
      • Player Group - Pick every player in team2 and do (Actions)
        • Loop - Actions
          • Set team2units = (Units owned by (Picked player) matching (((((Matching unit) is A structure) Equal to False) and ((Region 009 <gen> contains (Matching unit)) Equal to True)) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is A Hero) Equal to True)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is in team1units) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in team1units) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Wait 3.00 seconds
              • Quest - Display to (All players) the Warning message: Winner: Kanaavan Te...
              • Player Group - Pick every player in team2 and do (Actions)
                • Loop - Actions
                  • Player - Add 2500 to (Picked player) Current gold
              • Wait 3.00 seconds
              • Unit Group - Pick every unit in team2units and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to Region7
              • Unit - Unpause all units
              • Trigger - Turn on reviving heroes <gen>
              • Trigger - Turn on reviving heroes Copy <gen>
              • Countdown Timer - Resume DungeonBossTimer
              • Player Group - Pick every player in (All players) and do (Actions)
                • Loop - Actions
                  • Camera - Set the camera bounds for (Picked player) to (Entire map)
            • Else - Actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) is in team2units) Equal to True
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in team2units) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Wait 3.00 seconds
              • Quest - Display to (All players) the Warning message: Winner: Serdin Con...
              • Player Group - Pick every player in team1 and do (Actions)
                • Loop - Actions
                  • Player - Add 2500 to (Picked player) Current gold
              • Wait 3.00 seconds
              • Unit Group - Pick every unit in team1units and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to Region8
              • Unit - Unpause all units
              • Trigger - Turn on reviving heroes <gen>
              • Trigger - Turn on reviving heroes Copy <gen>
              • Countdown Timer - Resume DungeonBossTimer
              • Player Group - Pick every player in (All players) and do (Actions)
                • Loop - Actions
                  • Camera - Set the camera bounds for (Picked player) to (Entire map)
            • Else - Actions
        • Else - Actions
it doesn't work. i already tried testing it in game but it still doesn't work. it is a 5 vs 5 pvp match end trigger. need help please
 
Last edited:
Level 11
Joined
Jul 7, 2010
Messages
709
Please use trigger tags
  • /TRIGGER]
  • [Hidden="Eg"]
  • [trigger]
  • Arena End Trigger
  • Events
  • Unit - A unit Dies
  • Conditions
  • (Region 009 <gen> contains (Dying unit)) Equal to True
  • ((Dying unit) is A Hero) Equal to True
  • Actions
  • Player Group - Pick every player in team1 and do (Actions)
  • Loop - Actions
  • Set team1units = (Units owned by (Picked player) matching (((((Matching unit) is A structure) Equal to False) and ((Region 009 <gen> contains (Matching unit)) Equal to True)) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is A Hero) Equal to True)
  • Player Group - Pick every player in team2 and do (Actions)
  • Loop - Actions
  • Set team2units = (Units owned by (Picked player) matching (((((Matching unit) is A structure) Equal to False) and ((Region 009 <gen> contains (Matching unit)) Equal to True)) and ((((Matching unit) is Mechanical) Equal to False) and (((Matching unit) is A Hero) Equal to True)
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • ((Dying unit) is in team1units) Equal to True
  • Then - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Number of units in team1units) Equal to 0
  • Then - Actions
  • Unit - Pause all units
  • Wait 3.00 seconds
  • Quest - Display to (All players) the Warning message: Winner: Kanaavan Te...
  • Player Group - Pick every player in team2 and do (Actions)
  • Loop - Actions
  • Player - Add 2500 to (Picked player) Current gold
  • Wait 3.00 seconds
  • Unit Group - Pick every unit in team2units and do (Actions)
  • Loop - Actions
  • Unit - Move (Picked unit) instantly to Region7
  • Unit - Unpause all units
  • Trigger - Turn on reviving heroes <gen>
  • Trigger - Turn on reviving heroes Copy <gen>
  • Countdown Timer - Resume DungeonBossTimer
  • Player Group - Pick every player in (All players) and do (Actions)
  • Loop - Actions
  • Camera - Set the camera bounds for (Picked player) to (Entire map)
  • Else - Actions
  • Else - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • ((Dying unit) is in team2units) Equal to True
  • Then - Actions
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
  • If - Conditions
  • (Number of units in team2units) Equal to 0
  • Then - Actions
  • Unit - Pause all units
  • Wait 3.00 seconds
  • Quest - Display to (All players) the Warning message: Winner: Serdin Con...
  • Player Group - Pick every player in team1 and do (Actions)
  • Loop - Actions
  • Player - Add 2500 to (Picked player) Current gold
  • Wait 3.00 seconds
  • Unit Group - Pick every unit in team1units and do (Actions)
  • Loop - Actions
  • Unit - Move (Picked unit) instantly to Region8
  • Unit - Unpause all units
  • Trigger - Turn on reviving heroes <gen>
  • Trigger - Turn on reviving heroes Copy <gen>
  • Countdown Timer - Resume DungeonBossTimer
  • Player Group - Pick every player in (All players) and do (Actions)
  • Loop - Actions
  • Camera - Set the camera bounds for (Picked player) to (Entire map)
  • Else - Actions
  • Else - Actions
[/hidden]
 
Status
Not open for further replies.
Top