RPG Maker Forums

I'm having a hard time with a ranking system. Basically I'm trying to create a dynamically updated leaderboard. The problem is to give everyones team its proper rank.


Every team has a variable for the current score and a second variable for the rank. How can I set the rankvariable based on the highest score each team has?


For better understanding:


Team 1 has a score of 10 (variable 1 = 10)


Team 2 has a score of 5 (variable 2 = 5)


Team 3 has a score of 15 (variable 3 = 15)


Team 4 has a score of 2 (variable 4 = 2)



#edit thanks SumRndmDde


Team 1 is Rank 2 (variable 5 = 2)


Team 2 is Rank 3 (variable 6 = 3)


Team 3 is Rank 1 (variable 7 = 1)


Team 4 is Rank 4 (variable 8 = 4)


Result:


Rank   Team      Score


1         Team 3   15


2         Team 1   10


3         Team 2    5


4         Team 4    2


I've seen some array sort chenigans in other forums, but can't translate it to be used in MV. Any help would be greatly appreciated!

Latest Threads

Latest Posts

Latest Profile Posts

He mad, but he cute :kaopride:

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!

Forum statistics

Threads
106,036
Messages
1,018,461
Members
137,821
Latest member
Capterson
Top