So, I have character attitudes in my game that let you see how fondly a character thinks of you, or rather how often you pick choices that tickle their fancy. In any case, I was wondering how one would take a group of stats (eliatt, harpatt, saratt, krisatt) and have the game check which one of them is say, the second highest. I have zero idea of how to even start doing this, so help would be much appreciated!
Summary: I want to know how to make the game check for the second highest numerical value in a group of four stats.
That is a very lengthy subroutine, and I am suddenly glad I am doing four love interests instead of six for my first book series.
That being said, thank you so much, this is super cool! I can also apply what you’ve taught me here to help with my updating clues screen on one of my stats pages!
I don’t know if this is really better, or shorter, but here is a loop which should handle any number of values and put them in numerical order for you - each one in a variable which you then refer to.
You would call this with *gosub order_calculation.
It is critical for it to reset the top_x variables to 0 each time.
To get it to work with different numbers of variables, you just create additional att_X and top_X variables and increase/decrease the *if counter <7 and *set counter2 6 lines accordingly.