- Joined
- Jun 6, 2008
- Messages
- 51
Hello,
I've been working on a greatly modified melee map. So far, I've been able to solve most problems with it myself by just lurking around the forums as an unregistered user and have been able to come up with some pretty neat triggers. The map is almost done except for the terraining, a check on the tooltips and quests for any spelling and grammar errors, and some cosmetic issues here and there.
One of the main objectives of the game is to make monsters drop "keys" which are really two digit codes that can be used to activate waygates and set that waygate's destination to a specific location, usually another waygate.
Since I didn't want to leave players who didn't write their codes down at a disadvantage, I wrote triggers that would display the key codes collected by the player and their allies. The result is quite inelegant
not to mention that display text message(auto-timed) didn't want to do newlines properly.
So I thought that leaderboards might make it look better. I was trying to come up with something that would let players switch between a leaderboard displaying scores and alliances, and one that displayed keys. However it seems that although I set the leader boards I create to variables as I create them, creating a new leaderboard inadvertently destroys the previous one. Here are the triggers I am using.
So, are multiple leaderboards per player possible? I know the game can only display one leaderboard at a time, hence the board switcher.
I've been working on a greatly modified melee map. So far, I've been able to solve most problems with it myself by just lurking around the forums as an unregistered user and have been able to come up with some pretty neat triggers. The map is almost done except for the terraining, a check on the tooltips and quests for any spelling and grammar errors, and some cosmetic issues here and there.
One of the main objectives of the game is to make monsters drop "keys" which are really two digit codes that can be used to activate waygates and set that waygate's destination to a specific location, usually another waygate.
Since I didn't want to leave players who didn't write their codes down at a disadvantage, I wrote triggers that would display the key codes collected by the player and their allies. The result is quite inelegant
not to mention that display text message(auto-timed) didn't want to do newlines properly.
So I thought that leaderboards might make it look better. I was trying to come up with something that would let players switch between a leaderboard displaying scores and alliances, and one that displayed keys. However it seems that although I set the leader boards I create to variables as I create them, creating a new leaderboard inadvertently destroys the previous one. Here are the triggers I am using.
-
key board
-
Events
- Time - Elapsed game time is 4.00 seconds
- Conditions
-
Actions
- Leaderboard - Create a leaderboard for TeamHuman titled Keys
- Set keys[1] = (Last created leaderboard)
- Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Home and value (Integer(portalcode[1]))
- Leaderboard - Create a leaderboard for TeamUndead titled Keys
- Set keys[2] = (Last created leaderboard)
- Leaderboard - Add Player 1 (Red) to (Last created leaderboard) with label Home and value (Integer(portalcode[2]))
-
Events
-
alliance board
-
Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
-
Actions
- Leaderboard - Create a leaderboard for (All players) titled Alliances
- Set AllianceBoard = (Last created leaderboard)
- Leaderboard - Add Neutral Victim to AllianceBoard with label Team Human units and value 0
- Leaderboard - Change the color of the label for Neutral Victim in AllianceBoard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Leaderboard - Change the color of the value for Neutral Victim in (Last created leaderboard) to (100.00%, 80.00%, 20.00%) with 100.00% transparency
- Player Group - Pick every player in TeamHuman and do (Leaderboard - Add (Picked player) to AllianceBoard with label (Name of (Picked player)) and value 0)
- Leaderboard - Add Neutral Extra to AllianceBoard with label Team Undead units and value 0
- Leaderboard - Change the color of the label for Neutral Extra in AllianceBoard to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Leaderboard - Change the color of the value for Neutral Extra in (Last created leaderboard) to (100.00%, 80.00%, 20.00%) with 100.00% transparency
- Player Group - Pick every player in TeamUndead and do (Leaderboard - Add (Picked player) to AllianceBoard with label (Name of (Picked player)) and value 0)
- Leaderboard - Add Neutral Passive to AllianceBoard with label unallied units and value 0
- Leaderboard - Change the color of the label for Neutral Passive in AllianceBoard 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%, 80.00%, 20.00%) with 100.00% transparency
- Player Group - Pick every player in unallied and do (Leaderboard - Add (Picked player) to AllianceBoard with label (Name of (Picked player)) and value 0)
- Trigger - Run alliance update 2 <gen> (ignoring conditions)
-
Events
-
board switch
-
Events
- Player - Player 1 (Red) types a chat message containing key board as An exact match
- Conditions
-
Actions
- Leaderboard - Hide AllianceBoard
- Leaderboard - Show keys[1]
-
Events
-
board switch Copy
-
Events
- Player - Player 1 (Red) types a chat message containing alliance board as An exact match
- Conditions
-
Actions
- Leaderboard - Hide keys[1]
- Leaderboard - Show AllianceBoard
-
Events
So, are multiple leaderboards per player possible? I know the game can only display one leaderboard at a time, hence the board switcher.
Last edited: