Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create Leaderboard
- Events
- Timer - Elapsed time is 2.0 Game Time seconds
- Local Variables
- Loop = 1 <Integer>
- Conditions
- Actions
- Dialog - Display button 3 of size (50, 30) with text " X" at Top Right of screen with offset (15, 15) (run Show/Hide Leaderboard when button is clicked)
- Dialog - Set (Screen button 3) tooltip to "Hide Leaderboard" for (All players)
- Dialog - Display button 4 of size (50, 30) with text " O" at Top Right of screen with offset (15, 15) (run Show/Hide Leaderboard when button is clicked)
- Dialog - Set (Screen button 4) tooltip to "Show Leaderboard" for (All players)
- Dialog - Hide (Screen button 4) for (All players)
- Leaderboard - Create a leaderboard with 11 columns and 15 rows, with the name "Planet Defense v1.0", and using (100%, 100%, 100%) color.
- Variable - Set Planet Defense Leaderboard[1] = (Last created leaderboard)
- Leaderboard - Disable Show Title state for Planet Defense Leaderboard[1] for (All players)
- Leaderboard - Disable Show Header state for Planet Defense Leaderboard[1] for (All players)
- Leaderboard - Change Planet Defense Leaderboard[1] to have 1 groups
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 1 to "Players"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row 1 to "Gold"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row 1 to "Lumber"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 13 to "Titans: 1"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 14 to "Minions: 0"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row 15 to "EXP: 125%"
- Leaderboard - Move row 12 into group 1 in Planet Defense Leaderboard[1]
- Leaderboard - Move row 13 into group 1 in Planet Defense Leaderboard[1]
- Leaderboard - Move row 14 into group 1 in Planet Defense Leaderboard[1]
- Leaderboard - Move row 15 into group 1 in Planet Defense Leaderboard[1]
- General - For each integer Loop from 1 to 10 with increment 1, do (Actions)
- Actions
- General - If (Conditions) then do (Actions) else do (Actions)
- If
- And
- Conditions
- (Controller of player Loop) == User
- (Status of player Loop) == Playing
- Then
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row (Loop + 1) to (Text (Name of player Loop) with color (Color((Current player Loop color))))
- Leaderboard - Set Planet Defense Leaderboard[1] item icon at column 2 and row (Loop + 1) to Assets\Textures\ui_ingame_help_techtree_questionmark.dds, placing it on the Left side of the text
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row (Loop + 1) to "0"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row (Loop + 1) to "0 "
- Else
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 2 and row (Loop + 1) to (Text " Empty " with color (Color((Player 10) Light Grey)))
- Leaderboard - Set Planet Defense Leaderboard[1] item icon at column 2 and row (Loop + 1) to Assets\Textures\btn-command-cancel.dds, placing it on the Left side of the text
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 6 and row (Loop + 1) to "-"
- Leaderboard - Set Planet Defense Leaderboard[1] item text at column 10 and row (Loop + 1) to "-"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement