I'll try to make this sound not so complicated of what I'd like to accomplish.
Let's say I have Variables 23 through 31.
At the end of the game, which ever variable is the highest, I'd like to display a text message depending on the highest one.
is it possible to event this or use script/code to accomplish this? (Not plugins. But if plugins are the only way, let me know)
Pick another variable and make a script call:
$gameVariables.setValue(X, Math.max(Y1, Y2, Y3, Y4, ...);
Replace X with the new variable, which will be the one used to display the message.
Replace the Y's with "$gameVariables.value(Z)"
-> Z will be the variable ID of each variable in your cycle, e.g. the 23 through 31.
So the script call would look like this for example: This is for the first 3 variables of your example.
You will of course need to go to 31.
$gameVariables.setValue(32, Math.max($gameVariables.value(23), $gameVariables.value(24), $gameVariables.value(25)));
^ After this script call Variable 32 is set to the highest number from variables 23 through 25.
you'll basically need a sorting function - there are sorting scripts in every programming handbook and in some cases they were even implemented as base functions.
You only need to adapt them to whatever data you want as the original functions usually work on arrays and not on simple variables.
If you don't need to sort you can also make this an event sequence where you simply compare every variable with the current max one in event code with conditional branches - tedious but doable