Variable Personality Quiz Help Needed

Hi! So I'm making a minigame. It's just a personality quiz. It's literally going to be nothing huge, it's not part of a bigger game project what so ever. It's simply something I wanted to do for fun based on a conversation me and my friends had.

I'm a complete noob at RPGmaker, so the solution could be staring me in the face. I've checked some other similar topics and just found more confusion, mostly because of my lack of knowledge on how to do my own scripts and plugins.

Here's the catch: I have 25 options of personality outputs.
I've assigned each personality to a variable, and am doing a very simple choice variable situation.
Here's an example.
1.png

Basically, my problem that I want help with, is the ending.

I'm not exactly sure how to make RPGmakermz check to see which variable of these 25 is the highest, and have it spit out a unique dialogue of 'You're a Fire-type personality!'.

And for tiebreakers, listing out potentially all of those that are a tie, and asking the individual taking the test to just choose whichever they prefer, or just list out all of the ones the person tied with, it would not matter at all to me.

If anyone has any plugin, or could point me in the direction of a command I've overlooked, or a suggestion for how to do this in a fast way, please let me know!
It's pretty much the same problem as this

It's pretty much the same problem as this

Ahhh, I see now! I was too busy looking at other threads from around 2021 I didn't even find this one! Thank you so much for your activity then and now.
😊



For anyone in the future that runs into a problem down the line looking for something similar, please take this mini tutorial for those who are completely tech illiterate like me:

- In whatever event, right click new, then run a script (last page)
- Copy and customize the quoted below into the box.
- Replace $gameVariables.value(1) with the (1) being whatever variables are relevant for your needs.
- Copy and paste the: if to } to add more to your hearts content as you need. Just remember in the first to include the new variable in the list! Make sure it is below the previous } as you see in the example below.
- Have fun playing around with it! Though the real leg work goes to CarterGoat for writing it out. (Thanks to them too if they ever see this!)

var alignments = [ $gameVariables.value(1), $gameVariables.value(2), $gameVariables.value(3), $gameVariables.value(4), $gameVariables.value(5) ];
alignments.sort((a,b)=> b-a);
if (alignments[0] == alignments[1]){
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.add("Looks like the results are unclear!.");
}
if (alignments[0] == $gameVariables.value(1)){
$gameMessage.setBackground(0);
$gameMessage.setPositionType(2);
$gameMessage.add("Wow! You got result 1!");
}

Original thread: https://forums.rpgmakerweb.com/threads/variable-personality-quiz-help-needed.166744/