HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Leaderboard Naming Bug

03-14-2006, 09:13 PM#1
Eternal_Dread
Basically, I've set up a dialoge difficulty selection for my map. Here are the two triggers that decide its name:
1.
Trigger:
Collapse Diff Selected
Collapse Events
Dialog - A dialog button is clicked for Difficulty_Select
Conditions
Collapse Actions
Trigger - Turn off Game Length Select <gen>
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Game_Length_Select Equal to 15
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has chosen a + (|c00FF0000 + (15 minute + (|r + time limit for this game.))))))
Countdown Timer - Start Timer as a One-shot timer that will expire in 900.00 seconds
Set Time = , 15 minutes
Set Harvest_Number = 4
Trigger - Turn on spawn 15 <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Game_Length_Select Equal to 25
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has chosen a + (|c00FF0000 + (25 minute + (|r + time limit for this game.))))))
Countdown Timer - Start Timer as a One-shot timer that will expire in 1500.00 seconds
Set Time = , 25 minutes
Set Harvest_Number = 3
Trigger - Turn on spawn 25 <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Game_Length_Select Equal to 35
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has chosen a + (|c00FF0000 + (35 minute + (|r + time limit for this game.))))))
Countdown Timer - Start Timer as a One-shot timer that will expire in 2100.00 seconds
Set Time = , 35 minutes
Set Harvest_Number = 2
Trigger - Turn on spawn 35 <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Game_Length_Select Equal to 45
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has chosen a + (|c00FF0000 + (45 minute + (|r + time limit for this game.))))))
Countdown Timer - Start Timer as a One-shot timer that will expire in 2700.00 seconds
Set Time = , 45 minutes
Set Harvest_Number = 1
Trigger - Turn on spawn 45 <gen>
Else - Actions
Set Temp_Point = (Center of Runners Start <gen>)
Set Temp_Player_Group = (All players matching ((((Matching player) slot status) Equal to Is playing) and (((Matching player) Not equal to Player 11 (Dark Green)) and ((Matching player) Not equal to Player 12 (Brown)))))
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Easy
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has selected + (|c00FF0000 + (Easy + (|r + . Good Luck!))))))
Dialog - Hide Difficulty_Select for Player 1 (Red)
Sound - Play easy <gen>
Set Difficulty = Easy
Trigger - Turn off Game Length Select <gen>
Wait 1.00 seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 1
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (1) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 2
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (2) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 3
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (3) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (4) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Center of Jail <gen>)
Custom script: call DestroyForce(udg_Temp_Player_Group)
Set Temp_Player_Group = (All allies of Player 1 (Red))
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 1 (Red)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 2 (Blue)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 3 (Teal)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 4 (Purple)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 5 (Yellow)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 6 (Orange)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 7 (Green)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 8 (Pink)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 9 (Gray)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 10 (Light Blue)
Game - Display to (All players) the text: |c00FF8000You have ...
Player Group - Pick every player in Temp_Player_Group and do (Camera - Pan camera for (Picked player) to (Center of Runners Start <gen>) over 0.00 seconds)
Wait 15.00 seconds
Unit - Create 3 |c000033ffCrazy Kodo for Player 11 (Dark Green) at Temp_Point facing Default building facing (270.0) degrees
Sound - Play start <gen>
Game - Display to (All players) the text: The kodos have been...
Wait 6.00 seconds
Sound - Play War2IntroSound <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Normal
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has selected + (|c00FF0000 + (Normal + (|r + . Good Luck!))))))
Dialog - Hide Difficulty_Select for Player 1 (Red)
Sound - Play priest4 <gen>
Trigger - Turn off Game Length Select <gen>
Set Difficulty = Normal
Wait 1.00 seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 1
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (1) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 2
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (2) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 3
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (3) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (4) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Center of Jail <gen>)
Custom script: call DestroyForce(udg_Temp_Player_Group)
Set Temp_Player_Group = (All allies of Player 1 (Red))
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 1 (Red)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 2 (Blue)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 3 (Teal)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 4 (Purple)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 5 (Yellow)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 6 (Orange)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 7 (Green)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 8 (Pink)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 9 (Gray)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 10 (Light Blue)
Game - Display to (All players) the text: |c00FF8000You have ...
Player Group - Pick every player in Temp_Player_Group and do (Camera - Pan camera for (Picked player) to (Center of Runners Start <gen>) over 0.00 seconds)
Wait 15.00 seconds
Unit - Create 4 |c000033ffCrazy Kodo for Player 11 (Dark Green) at Temp_Point facing Default building facing (270.0) degrees
Sound - Play start <gen>
Game - Display to (All players) the text: The kodos have been...
Wait 6.00 seconds
Sound - Play War2IntroSound <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Hard
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has selected + (|c00FF0000 + (Hard + (|r + . Good Luck!))))))
Dialog - Hide Difficulty_Select for Player 1 (Red)
Sound - Play hard <gen>
Trigger - Turn off Game Length Select <gen>
Set Difficulty = Hard
Wait 1.00 seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 1
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (1) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 2
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (2) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 3
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (3) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (4) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Center of Jail <gen>)
Custom script: call DestroyForce(udg_Temp_Player_Group)
Set Temp_Player_Group = (All allies of Player 1 (Red))
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 1 (Red)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 2 (Blue)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 3 (Teal)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 4 (Purple)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 5 (Yellow)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 6 (Orange)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 7 (Green)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 8 (Pink)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 9 (Gray)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 10 (Light Blue)
Game - Display to (All players) the text: |c00FF8000You have ...
Player Group - Pick every player in Temp_Player_Group and do (Camera - Pan camera for (Picked player) to (Center of Runners Start <gen>) over 0.00 seconds)
Wait 15.00 seconds
Unit - Create 5 |c000033ffCrazy Kodo for Player 11 (Dark Green) at Temp_Point facing Default building facing (270.0) degrees
Sound - Play start <gen>
Game - Display to (All players) the text: The kodos have been...
Wait 6.00 seconds
Sound - Play War2IntroSound <gen>
Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Clicked dialog button) Equal to Insane
Collapse Then - Actions
Game - Display to (All players) for 8.00 seconds the text: (|c000042FF + (((Name of Player 1 (Red)) + |r) + ( has selected + (|c00FF0000 + (Insane + (|r + . Good Luck, your going to need it :).))))))
Dialog - Hide Difficulty_Select for Player 1 (Red)
Sound - Play insane <gen>
Trigger - Turn off Game Length Select <gen>
Set Difficulty = Insane
Wait 1.00 seconds
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 1
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (1) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 2
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (2) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
Harvest_Number Equal to 3
Collapse Then - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (3) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Collapse Else - Actions
Player Group - Pick every player in Temp_Player_Group and do (Unit - Create 1 Runner (4) for (Picked player) at Temp_Point facing Default building facing (270.0) degrees)
Custom script: call RemoveLocation(udg_Temp_Point)
Set Temp_Point = (Center of Jail <gen>)
Custom script: call DestroyForce(udg_Temp_Player_Group)
Set Temp_Player_Group = (All allies of Player 1 (Red))
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 1 (Red)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 2 (Blue)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 3 (Teal)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 4 (Purple)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 5 (Yellow)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 6 (Orange)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 7 (Green)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 8 (Pink)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 9 (Gray)
Player - Set the current research level of Witch Doctor Adept Training to 3 for Player 10 (Light Blue)
Game - Display to (All players) the text: |c00FF8000You have ...
Player Group - Pick every player in Temp_Player_Group and do (Camera - Pan camera for (Picked player) to (Center of Runners Start <gen>) over 0.00 seconds)
Wait 15.00 seconds
Unit - Create 6 |c000033ffCrazy Kodo for Player 11 (Dark Green) at Temp_Point facing Default building facing (270.0) degrees
Sound - Play start <gen>
Game - Display to (All players) the text: The kodos have been...
Wait 6.00 seconds
Sound - Play War2IntroSound <gen>
Sound - Play hammer <gen>
Else - Actions
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: set udg_Temp_Point = null
Custom script: call DestroyForce(udg_Temp_Player_Group)
Custom script: set udg_Temp_Player_Group = null
Trigger - Turn on Lose <gen>
Custom script: call DestroyTrigger( GetTriggeringTrigger() )
Trigger - Run Create Multiboard
2.
Trigger:
Create Multiboard
Events
Conditions
Collapse Actions
Multiboard - Create a multiboard with 5 columns and 12 rows, titled (Difficulty + Time)
Multiboard - Set the text for (Last created multiboard) item in column 1, row 1 to Player
Multiboard - Set the text for (Last created multiboard) item in column 2, row 1 to Dead?
Multiboard - Set the text for (Last created multiboard) item in column 3, row 1 to Kills
Multiboard - Set the text for (Last created multiboard) item in column 4, row 1 to Deaths
Multiboard - Set the text for (Last created multiboard) item in column 5, row 1 to Saves
Collapse For each (Integer A) from 1 to 12, do (Actions)
Collapse Loop - Actions
Multiboard - Set the width for (Last created multiboard) item in column 1, row (Integer A) to 9.80% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 2, row (Integer A) to 4.20% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 3, row (Integer A) to 4.00% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 4, row (Integer A) to 4.60% of the total screen width
Multiboard - Set the width for (Last created multiboard) item in column 5, row (Integer A) to 4.60% of the total screen width
Multiboard - Set the color for (Last created multiboard) item in column 2, row (Integer A) to (86.20%, 86.20%, 0.00%) with 0.00% transparency
Multiboard - Set the color for (Last created multiboard) item in column 3, row (Integer A) to (100.00%, 0.00%, 0.00%) with 0.00% transparency
Multiboard - Set the color for (Last created multiboard) item in column 4, row (Integer A) to (0.00%, 5.00%, 100.00%) with 0.00% transparency
Multiboard - Set the color for (Last created multiboard) item in column 5, row (Integer A) to (0.00%, 100.00%, 5.00%) with 0.00% transparency
Collapse For each (Integer A) from 1 to 10, do (Actions)
Collapse Loop - Actions
Multiboard - Set the text for (Last created multiboard) item in column 1, row ((Integer A) + 1) to (Player_Colors[(Integer A)] + ((Name of (Player((Integer A)))) + |r))
Multiboard - Set the text for (Last created multiboard) item in column 2, row ((Integer A) + 1) to NO
Multiboard - Set the text for (Last created multiboard) item in column 3, row ((Integer A) + 1) to 0
Multiboard - Set the text for (Last created multiboard) item in column 4, row ((Integer A) + 1) to 0
Multiboard - Set the text for (Last created multiboard) item in column 5, row ((Integer A) + 1) to 0
Collapse For each (Integer A) from 1 to 5, do (Actions)
Collapse Loop - Actions
Collapse For each (Integer B) from 1 to 12, do (Actions)
Collapse Loop - Actions
Multiboard - Set the display style for (Last created multiboard) item in column (Integer A), row (Integer B) to Show text and Hide icons
Multiboard - Set the text for (Last created multiboard) item in column 1, row 12 to Time Remaining
Multiboard - Set the color for (Last created multiboard) item in column 3, row 12 to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Multiboard - Show (Last created multiboard)
Multiboard - Minimize (Last created multiboard)
Custom script: call DestroyTrigger( GetTriggeringTrigger() )
Set Leaderboard = (Last created multiboard)
03-14-2006, 09:20 PM#2
paidan_fain
whats the problem? Also, when working in GUI, I personally like splitting up the actions to go along with each "clicked" event to make it easier to debug. I suggest you do that instead of sifting though that mess...
03-14-2006, 09:42 PM#3
Eternal_Dread
Alright. Also, sorry I didn't say the problem, the problem is the name doesn't show up.