- Joined
- Oct 16, 2013
- Messages
- 63
- Reaction score
- 9
- First Language
- German
Hi, I'm trying to create a ranking system for my project.
NPCs fight each other when the player moves to another map or fights against another NPC.
I have several variables with the the current wins of each player.
Simple example:
Player 1: 12 wins # $game_variables[1] == 12 -> Rank 3
Player 2: 15 wins # $game_variables[2] == 15 -> Rank 2
Player 3: 2 wins # $game_variables[3] == 2 -> Rank 5
Player 4: 5 wins # $game_variables[4] == 5 -> Rank 4
Player 5: 21 wins # $game_variables[5] == 21 -> Rank 1
Leaderboard:
Gold: Player 5 with 21 wins
Silver: Player 2 with 15 wins
Bronze: Player 1 with 12 wins
etc.
To give every player a rank and create a leaderboard, I would have to lay out a plethora of conditional branches.
I wonder if there's an easy way to do this?
NPCs fight each other when the player moves to another map or fights against another NPC.
I have several variables with the the current wins of each player.
Simple example:
Player 1: 12 wins # $game_variables[1] == 12 -> Rank 3
Player 2: 15 wins # $game_variables[2] == 15 -> Rank 2
Player 3: 2 wins # $game_variables[3] == 2 -> Rank 5
Player 4: 5 wins # $game_variables[4] == 5 -> Rank 4
Player 5: 21 wins # $game_variables[5] == 21 -> Rank 1
Leaderboard:
Gold: Player 5 with 21 wins
Silver: Player 2 with 15 wins
Bronze: Player 1 with 12 wins
etc.
To give every player a rank and create a leaderboard, I would have to lay out a plethora of conditional branches.
I wonder if there's an easy way to do this?
