Is there any way to compare multiple variables and determine the highest one? I'm attempting to create a custom battle system using events, and I need to be able to determine attack order based on the actors'/enemies' speeds. Currently, my setup involves a long list of conditional branch compares that adds 1 to a variable for an entity's attack order if X_spd is >= Y_spd (as well as conditions in which that doesn't happen). This all works fine and dandy, but I need to be able to read the attack order variables to actually determine what character moves when.
If none of that made any sense, here's my (very long) event page.
(This isn't all of it but you get the gist)
I haven't found any method in the program that would allow me to compare the values of multiple variables and program commands based on the results of the comparison, which is what I need. I'm open to using a script if such a thing exists, but if not, I'd like to know how I either can compare multiple vars or possibly rewrite this system to not need to.
If none of that made any sense, here's my (very long) event page.
(This isn't all of it but you get the gist)
I haven't found any method in the program that would allow me to compare the values of multiple variables and program commands based on the results of the comparison, which is what I need. I'm open to using a script if such a thing exists, but if not, I'd like to know how I either can compare multiple vars or possibly rewrite this system to not need to.