• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[Trigger] Duel crashes map

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2007
Messages
253
K this is the problem, when duel stats after 35 seconds map stats crashing everything beggins lagging and i don't know whats happening. Triggers:
  • Duel Timer
    • Events
      • Time - Elapsed game time is 0.00 seconds
    • Conditions
    • Actions
      • Set DuelTimerTime = 300.00
      • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
  • Duel Start
    • Events
      • Time - DuelTimer expires
    • Conditions
    • Actions
      • Set DuelGroup[1] = (Units in (Entire map) matching (((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User)) and ((((Owner of (Matching unit)) slot status) Equal to Is playing) and (((Matching unit) belongs to an ally of Player 1
      • Set DuelGroup[2] = (Units in (Entire map) matching (((((Matching unit) is A Hero) Equal to True) and (((Owner of (Matching unit)) controller) Equal to User)) and ((((Owner of (Matching unit)) slot status) Equal to Is playing) and (((Matching unit) belongs to an ally of Player 6
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • And - All (Conditions) are true
            • Conditions
              • (Number of units in DuelGroup[1]) Greater than 0
              • (Number of units in DuelGroup[2]) Greater than 0
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • FrostMourneOn Equal to True
            • Then - Actions
              • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Stay with Heroes upon death
              • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Stay with Heroes upon death
            • Else - Actions
          • Game - Display to (All players) for 5.00 seconds the text: Duel Time!
          • Set DuelChance = (Random integer number between 1 and 2)
          • Unit - Pause all units
          • Trigger - Turn off Creeps Spawn <gen>
          • Trigger - Turn off Revive <gen>
          • Trigger - Turn on Duel Revive <gen>
          • Trigger - Turn on Duel Leave <gen>
          • Trigger - Turn on Playable area <gen>
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • DuelChance Equal to 1
            • Then - Actions
              • Trigger - Turn off Duel City <gen>
              • Set CityArenaTeamPoint1 = (Center of City Arena Team1 <gen>)
              • Set CityArenaTeamPoint2 = (Center of City Arena Team2 <gen>)
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to CityArenaTeamPoint1
                  • Unit - Unpause (Picked unit)
                  • Unit - Remove All buffs from (Picked unit)
                  • Unit - Set life of (Picked unit) to 100.00%
                  • Unit - Set mana of (Picked unit) to 100.00%
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to CityArenaTeamPoint1 over 0.00 seconds
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to CityArenaTeamPoint2
                  • Unit - Unpause (Picked unit)
                  • Unit - Remove All buffs from (Picked unit)
                  • Unit - Set life of (Picked unit) to 100.00%
                  • Unit - Set mana of (Picked unit) to 100.00%
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to CityArenaTeamPoint2 over 0.00 seconds
              • Custom script: call RemoveLocation (udg_CityArenaTeamPoint1)
              • Custom script: call RemoveLocation (udg_CityArenaTeamPoint2)
            • Else - Actions
              • Trigger - Turn off Duel Forest <gen>
              • Set ForestArenaTeamPoint1 = (Center of Forest Arena Team1 <gen>)
              • Set ForestArenaTeamPoint2 = (Center of Forest Arena Team2 <gen>)
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to ForestArenaTeamPoint1
                  • Unit - Unpause (Picked unit)
                  • Unit - Remove All buffs from (Picked unit)
                  • Unit - Set life of (Picked unit) to 100.00%
                  • Unit - Set mana of (Picked unit) to 100.00%
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to ForestArenaTeamPoint1 over 0.00 seconds
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Unit - Move (Picked unit) instantly to ForestArenaTeamPoint2
                  • Unit - Unpause (Picked unit)
                  • Unit - Remove All buffs from (Picked unit)
                  • Unit - Set life of (Picked unit) to 100.00%
                  • Unit - Set mana of (Picked unit) to 100.00%
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to ForestArenaTeamPoint2 over 0.00 seconds
              • Custom script: call RemoveLocation (udg_ForestArenaTeamPoint1)
              • Custom script: call RemoveLocation (udg_ForestArenaTeamPoint2)
          • Wait 3.00 game-time seconds
          • Game - Display to (All players) for 5.00 seconds the text: Duel will start in:
          • Wait 1.00 game-time seconds
          • Game - Display to (All players) for 5.00 seconds the text: 3!
          • Wait 1.00 game-time seconds
          • Game - Display to (All players) for 5.00 seconds the text: 2!
          • Wait 1.00 game-time seconds
          • Game - Display to (All players) for 5.00 seconds the text: 1!
          • Wait 1.00 game-time seconds
          • Trigger - Turn off Duel Leave <gen>
          • Game - Display to (All players) for 5.00 seconds the text: Go!!
          • Countdown Timer - Start DuelEndTimer as a One-shot timer that will expire in 120.00 seconds
          • Set DuelEndTimer = (Last started timer)
          • Countdown Timer - Create a timer window for DuelEndTimer with title Duel Time:
          • Set DuelEndTimerWindow = (Last created timer window)
          • Destructible - Open Iron Gate (Vertical) 0378 <gen>
          • Destructible - Open Iron Gate (Vertical) 0375 <gen>
          • Destructible - Open Iron Gate (Horizontal) 0016 <gen>
          • Destructible - Open Iron Gate (Horizontal) 0074 <gen>
        • Else - Actions
          • Multiboard - Set the text for Multiboard item in column 3, row 12 to (Colour[1] + (((OFF + |r) + (<Empty String> + <Empty String>)) + <Empty String>))
          • Game - Display to (All players) for 5.00 seconds the text: Duel Time! Not e...
          • Trigger - Turn off MB Duel Timer <gen>
          • Trigger - Turn off (This trigger)
      • Custom script: call DestroyGroup (udg_DuelGroup[1])
      • Custom script: call DestroyGroup (udg_DuelGroup[2])
  • Duel End
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Forest arena <gen> contains (Dying unit)) Equal to True
        • Then - Actions
          • Wait 2.00 seconds
          • Set DuelGroup[1] = (Units in Forest arena <gen> matching ((((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Matching unit) is A Hero) Equal to True)))
          • Set DuelGroup[2] = (Units in Forest arena <gen> matching ((((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True) and (((Matching unit) is A Hero) Equal to True)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[1]) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 2 wins.
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel Forest <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Countdown Timer - Pause DuelEndTimer
              • Wait 2.00 game-time seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 1 wins.
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel Forest <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Countdown Timer - Pause DuelEndTimer
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • Custom script: call DestroyGroup (udg_DuelGroup[1])
          • Custom script: call DestroyGroup (udg_DuelGroup[2])
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (City Arena <gen> contains (Dying unit)) Equal to True
        • Then - Actions
          • Wait 2.00 seconds
          • Set DuelGroup[1] = (Units in City Arena <gen> matching ((((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True) and (((Matching unit) is A Hero) Equal to True)))
          • Set DuelGroup[2] = (Units in City Arena <gen> matching ((((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True) and (((Matching unit) is A Hero) Equal to True)))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[1]) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 2 wins.
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel City <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Countdown Timer - Pause DuelEndTimer
              • Wait 2.00 game-time seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Equal to 0
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 1 wins.
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel City <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Countdown Timer - Pause DuelEndTimer
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • Custom script: call DestroyGroup (udg_DuelGroup[1])
          • Custom script: call DestroyGroup (udg_DuelGroup[2])
        • Else - Actions
  • Duel Timer End
    • Events
      • Time - DuelEndTimer expires
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DuelChance Equal to 1
        • Then - Actions
          • Set DuelGroup[1] = (Units in City Arena <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
          • Set DuelGroup[2] = (Units in City Arena <gen> matching (((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Greater than (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 2 wins.
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They gets |cffffcc0...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel City <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Less than (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 1 wins.
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They gets |cffffcc0...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel City <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Equal to (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Tie.
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 250 to (Picked player) Current gold
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 250 to (Picked player) Current gold
              • Game - Display to (All players) the text: Both team gets |cff...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel City <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Pause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • Custom script: call DestroyGroup (udg_DuelGroup[1])
          • Custom script: call DestroyGroup (udg_DuelGroup[2])
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DuelChance Equal to 2
        • Then - Actions
          • Set DuelGroup[1] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 1 (Red)) Equal to True))
          • Set DuelGroup[2] = (Units in Forest arena <gen> matching (((Matching unit) belongs to an ally of Player 6 (Orange)) Equal to True))
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Greater than (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Unpause all units
              • Game - Display to (All players) the text: Team 2 wins.
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel Forest <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Less than (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Pause all units
              • Game - Display to (All players) the text: Team 1 wins.
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 500 to (Picked player) Current gold
              • Game - Display to (All players) the text: They get |cffffcc00...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel Forest <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of units in DuelGroup[2]) Equal to (Number of units in DuelGroup[1])
            • Then - Actions
              • Unit - Unpause all units
              • Game - Display to (All players) the text: Tie.
              • Unit - Pause all units
              • Player Group - Pick every player in PlayerT1 and do (Actions)
                • Loop - Actions
                  • Player - Add 250 to (Picked player) Current gold
              • Player Group - Pick every player in PlayerT2 and do (Actions)
                • Loop - Actions
                  • Player - Add 250 to (Picked player) Current gold
              • Game - Display to (All players) the text: Both team gets |cff...
              • Unit Group - Pick every unit in DuelGroup[1] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn1
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn1 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn1)
              • Unit Group - Pick every unit in DuelGroup[2] and do (Actions)
                • Loop - Actions
                  • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
                  • Unit - Move (Picked unit) instantly to TeamSpawn2
                  • Selection - Select (Picked unit) for (Owner of (Picked unit))
                  • Camera - Pan camera for (Owner of (Picked unit)) to TeamSpawn2 over 0.00 seconds
                  • Custom script: call RemoveLocation (udg_TeamSpawn2)
              • Destructible - Close Iron Gate (Vertical) 0378 <gen>
              • Destructible - Close Iron Gate (Vertical) 0375 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0016 <gen>
              • Destructible - Close Iron Gate (Horizontal) 0074 <gen>
              • Trigger - Turn on Creeps Spawn <gen>
              • Trigger - Turn on Revive <gen>
              • Trigger - Turn on Duel Forest <gen>
              • Trigger - Turn off Duel Revive <gen>
              • Trigger - Turn off Playable area <gen>
              • Countdown Timer - Destroy DuelEndTimerWindow
              • Wait 2.00 seconds
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • FrostMourneOn Equal to True
                • Then - Actions
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                  • Item - Make (Item carried by FrostmourneWielder of type |cffff8c00Frostmourne|r) Drop from Heroes upon death
                • Else - Actions
              • Unit - Unpause all units
              • Countdown Timer - Start DuelTimer as a One-shot timer that will expire in DuelTimerTime seconds
              • Game - Display to (All players) the text: (Next duel in |cffffcc00 + ((String((Integer(DuelTimerTime)))) + |r seconds!))
            • Else - Actions
              • Do nothing
          • Custom script: call DestroyGroup (udg_DuelGroup[1])
          • Custom script: call DestroyGroup (udg_DuelGroup[2])
        • Else - Actions
  • Duel Revive
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Entire map) contains (Dying unit)) Equal to True
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
        • Then - Actions
          • Set TeamSpawn1 = (Center of Team 1 Spawn <gen>)
          • Hero - Instantly revive (Dying unit) at TeamSpawn1, Hide revival graphics
          • Unit - Pause (Dying unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Dying unit)) Equal to Spirit Breaker
            • Then - Actions
              • Animation - Change (Dying unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 40.00% transparency
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Dying unit)) Equal to Demon Hunter
            • Then - Actions
              • Animation - Change (Learning Hero)'s vertex coloring to (100.00%, 100.00%, 100.00%) with ((Real((Level of Assassin Training for (Learning Hero)))) x 15.00)% transparency
            • Else - Actions
          • Custom script: call RemoveLocation (udg_TeamSpawn1)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to False
        • Then - Actions
          • Set TeamSpawn2 = (Center of Team 2 Spawn <gen>)
          • Hero - Instantly revive (Dying unit) at TeamSpawn2, Hide revival graphics
          • Unit - Pause (Dying unit)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Dying unit)) Equal to Spirit Breaker
            • Then - Actions
              • Animation - Change (Dying unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 40.00% transparency
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Unit-type of (Dying unit)) Equal to Demon Hunter
            • Then - Actions
              • Animation - Change (Learning Hero)'s vertex coloring to (100.00%, 100.00%, 100.00%) with ((Real((Level of Assassin Training for (Learning Hero)))) x 15.00)% transparency
            • Else - Actions
          • Custom script: call RemoveLocation (udg_TeamSpawn2)
        • Else - Actions
  • Duel Leave
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Blink
    • Actions
      • Unit - Order (Casting unit) to Stop
This started happening when i put "Frostmourne Pedestal" in center of map and made some triggers with it, but i don't think that this could cause error.
 
Level 12
Joined
Apr 15, 2008
Messages
1,063
Duel Revive: you wrote the same code twice, only thing tha differs is the location, so it should look like this:
  • Duel Revive
  • .....
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • ((Dying unit) belongs to an ally of Player 1 (Red)) Equal to True
    • Then - actions
      • set Spawn= Center of(Team1Spawn)
    • Else - action
      • set Spawn= Center of(Team2Spawn)
    • everything else here....
      • also, Demon Hunter's vertex coloring says "Learning Hero" instead of Dying unit
The same thing with Duel End trigger, you have the same actions there 4 times. Closing the gates or making froustmourne drop on death doesn't require to be in separated code block, it happens anyway, so you can just shift it out of the If-then-else part.

Otherwise I wasn't able to find any clues about the crash, sorry.
 
Status
Not open for further replies.
Top