Fishing tournament contest idea ranking problem

Hello! So I had fun playing around with a fishing tournament idea. At the end, a judge announces a winner starting from who got 3rd place and to who got first.

3 of the contestants are meant to always get a placing besides the player, so I set a randomized variable. (Random number 15-30)

And then proceeded to set conditions like "if contest 1 fish size is greater than contest 2 fish size" and etc.
(And it was working for awhile!)

But then a problem arose, all 3 contestants can get the same fish size. What if all 3 get like a fish sized 15? What if contestant 3 and 1 have the same size? How can that be ranked? If they have the same fish, does one get 3rd place and the other 2nd even though their fishes are the same size?

How does one event for all possible scenarios here?

Surely there must be an easier way to event this. 😅
Does the player see the fish size before they are compared in the rankings?

If not, then just set a conditions checking if the size is the same, (var A. = var B.) and if they are, then re-roll the size of the opponents fish.

I guess the 15~30 is in CM? How about you make the random numbers 150~300 like in milimeters? Then the chances of getting the same outcome 1 in 150, instead of 1 in 15.
Does the player see the fish size before they are compared in the rankings?

Yes, during the event there is a set timer and each fish they catch has a message like "Caught a Xsize fish!"

If not, then just set a conditions checking if the size is the same, (var A = var 😎 and if they are, then re-roll the size of the opponents fish.

That's a great idea! But then comes another problem. What is the reroll is the same size again!? 😅

I guess the 15~30 is in CM? How about you make the random numbers 150~300 like in milimeters? Then the chances of getting the same outcome 1 in 150, instead of 1 in 15.

That's another good idea. But 1 to 30 are the fish sizes. And I made the fish hidden item A so the player can turn in which fish as a select item to the judge.
That's a great idea! But then comes another problem. What is the reroll is the same size again!? 😅
You can put it in a loop:

In this example Var A is the size of your fish and Var B is the size of the opponent fish
1665328643909.png

That's another good idea. But 1 to 30 are the fish sizes. And I made the fish hidden item A so the player can turn in which fish as a select item to the judge.

So if fish 1 is 16 cm and fish 2 is 17 cm etc etc. You can temporarily multiply Var A by 10 to see who wins, and divide them by 10 after to go back to the original size.
You can put it in a loop:

In this example Var A is the size of your fish and Var B is the size of the opponent fish

Ohh! In this way is both variables equal each other, it will continue to loop until they don't!? That's genius, thank you!
Ohh! In this way is both variables equal each other, it will continue to loop until they don't!? That's genius, thank you!
No problem! And uhm... Can you say that last part again? I love it when you call my ideas genius. 😛 It almost feels as if you call me genius. 😉
No problem! And uhm... Can you say that last part again? I love it when you call my ideas genius. 😛 It almost feels as if you call me genius. 😉

YOU'RE A GENIUS!!! 😀

I can't wait to get around and work with Rpg Maker... ♥
Haha. It is fun to think about those thing and try to figure them out while being at work with no room for distraction. Specially if you have to do it all in your head because your not behind your computer.

I'm just guessing that's what was happening?
One thing about the suggestion of rerolling the fish size until landing on a unique one that I don't think the example covered: each subsequent participant needs to compare their roll not only against the previous one, but *any other fish that came before that*. So although A == B is fine for your second contestant, C needs to make sure they've rolled differently from B *and* A. And they will need to compare their fish rolls against each other's as well as the player's.
They only have to differ from the player, right? It doesn't matter which artificial character is 2nd or 3rd if they have the same fish. At least I wouldn't be bothered by that.
They only have to differ from the player, right? It doesn't matter which artificial character is 2nd or 3rd if they have the same fish. At least I wouldn't be bothered by that.
That is true I suppose. Having something like that even under the hood would bother my programmer sensibilities though to the point where I would have to prevent it. 😛
Prevent it would be great, but you can also just hide it. When you don't show which fish was caught by who, then no-one, even the developer, would know they caught the same fish.

Original thread: https://forums.rpgmakerweb.com/threads/fishing-tournament-contest-idea-ranking-problem.151870/