Ok, heres the deal. Im working on an arena type game and I have almost everything done except for some custom items and this DAMN trigger thats making my game screw up!
TEAM1
And spams that for a while...
Anyone got an idea of whats wrong?
-
Actions
- For each (Integer A) from 1 to 10, do (Set Kills[(Integer A)] = 0)
- Leaderboard - Create a leaderboard for (All players) titled Kills
- Wait 1.00 seconds
- Set TheLeaderBoard = (Last created leaderboard)
- Leaderboard - Add Neutral Hostile to (Last created leaderboard) with label Team 1 Kills and value 0
- Leaderboard - Change the color of the label for Neutral Hostile in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Leaderboard - Change the color of the value for Neutral Hostile in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Player Group - Pick every player in Team1 and do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
- Leaderboard - Add Neutral Passive to (Last created leaderboard) with label Team 2 Kills and value 0
- Leaderboard - Change the color of the label for Neutral Passive in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Leaderboard - Change the color of the value for Neutral Passive in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Player Group - Pick every player in Team2 and do (Leaderboard - Add (Picked player) to (Last created leaderboard) with label (Name of (Picked player)) and value 0)
- Leaderboard - Add Neutral Victim to (Last created leaderboard) with label (Win = + ((String(250)) + Team Kills)) and value 250
- Leaderboard - Change the display style for Neutral Victim in (Last created leaderboard) to Show the label, Hide the value, and Hide the icon
- Leaderboard - Change the color of the label for Neutral Victim in (Last created leaderboard) to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Trigger - Turn on Update Leaderboard <gen>
-
Actions
- Player Group - Pick every player in (All players) and do (Leaderboard - Change the value for (Picked player) in TheLeaderBoard to Kills[(Player number of (Picked player))])
- Leaderboard - Change the value for Neutral Hostile in TheLeaderBoard to Team1Kills
- Leaderboard - Change the value for Neutral Passive in TheLeaderBoard to Team2Kills
- Trigger - Run Team 1 Win Game <gen> (checking conditions)
- Trigger - Run Team 2 Win Game <gen> (checking conditions)
TEAM1
-
Team 1 Win Game
- Events
-
Conditions
- Team1Kills Greater than or equal to 250
-
Actions
- Sound - Stop music After fading
- For each (Integer A) from 1 to 5, do (Unit - Move Heroes[(Integer A)] instantly to (Random point in WINNERS <gen>))
- For each (Integer A) from 6 to 10, do (Unit - Move Heroes[(Integer A)] instantly to (Random point in LOSERS <gen>))
- Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of GAME END <gen>) over 1.00 seconds)
- Game - Display to (All players) the text: Team 1 Wins!
- Leaderboard - Hide TheLeaderBoard
- Countdown Timer - Hide DuelTimerWindow
- Wait 1.00 seconds
- For each (Integer A) from 6 to 10, do (Unit - Kill Heroes[(Integer A)])
- Wait 5.00 seconds
- Player Group - Pick every player in Team2 and do (Game - Defeat (Picked player) with the message: Your soul will burn...)
- Player Group - Pick every player in Team1 and do (Game - Victory Player 1 (Red) (Show dialogs, Show scores))
- Wait 1.00 seconds
- Sound - Play UndeadDefeat <gen>
-
Team 2 Win Game
- Events
-
Conditions
- Team2Kills Greater than or equal to 250
-
Actions
- Sound - Stop music After fading
- For each (Integer A) from 6 to 10, do (Unit - Move Heroes[(Integer A)] instantly to (Random point in WINNERS <gen>))
- For each (Integer A) from 1 to 5, do (Unit - Move Heroes[(Integer A)] instantly to (Random point in LOSERS <gen>))
- Player Group - Pick every player in (All players) and do (Camera - Pan camera for (Picked player) to (Center of GAME END <gen>) over 1.00 seconds)
- Game - Display to (All players) the text: Team 2 Wins!
- Leaderboard - Hide TheLeaderBoard
- Countdown Timer - Hide DuelTimerWindow
- Wait 1.00 seconds
- For each (Integer A) from 1 to 5, do (Unit - Kill Heroes[(Integer A)])
- Wait 5.00 seconds
- Player Group - Pick every player in Team1 and do (Game - Defeat (Picked player) with the message: Your soul will burn...)
- Player Group - Pick every player in Team2 and do (Game - Victory (Picked player) (Show dialogs, Show scores))
- Wait 1.00 seconds
- Sound - Play UndeadDefeat <gen>
And spams that for a while...
Anyone got an idea of whats wrong?