Okay, so I’m relatively proficient at coding, and I’m honestly probably just having a major brainfart due to stress.
I need a way to, hopefully without a subroutine (I abhor using them, because they like to overcomplicate the code and confuse the automated testing), have the program decide which of 4 stats is the highest.
Basically, I’m implementing a personality quiz, of sorts, wherein the maximum possible number of points for any of the four attributes is 11.
Currently, I am using a very primitive:
*if ((sardonic > mean) and (sardonic > sincere)) and (sardonic > jokester) *set personality "sardonic" words *goto whatever *elseif ((blah blahblah) and (whatever)) and (whatever) *set personality "whatever" *goto label *elseif ((something) and (something)) and (darkside) *set personality "darkside" *goto label *else *set personality "jokester" *goto whatever
the issue I’m currently seeing is that, using random answers, I managed to have equal points in “mean” and “jokester”, and the program chose to set the personality as “jokester”, even though, logically, it should have set to “mean”, due to “mean” being the earlier *elseif statement.
I could, theoretically, keep my code the way it is and just rework the math of the attributes within the quiz, I guess, but I’d prefer the code just to work the way I want it to.
Like I said, I’m probably brainfarting and am most likely not explaining this as well as I’d prefer, but