Hello! I'm very new here and to coding/scripting. I'm trying to make a personality quiz for my game that will determine what starting item they will be given, out of 7. While i know that this is possible with nesting conditional branches, that's gonna get messy very quickly. I've tried to search for scripts that other people have used/shared, but I haven't found one that works with XP. (or maybe I'm messing them up)
The variables I want to compare are numbered 51-57, and Ii have 58 reserved to take on a value(1-7) dependent on the maximum value of 51-57, which will be used to indicate which item will be given. I just need a script to help me find the max value between var51-57 and assign a number (1-7) to var 58. I think i can figure out the rest.