Hiya! So I’m having a bit of trouble with a new project of mine. I want constantly updating variables “highskill” and “lowskill,” that check to see if they’re the lowest skill every time a stat change is made. I know that this’ll be a little tricky, as it’s a string that updates based on a number comparison.
I have strings assigned to the variables “highskill” and “lowskill,” and numbers assigned to the words in those strings.
My plan is this: if the current lowskill’s number is higher than a stat being updated, then that stat will become the new lowskill.
It would be awesome and amazing if I could call them in a comparison command like the one below, but anything that makes this work will suffice. I will say, I would prefer it to be a pretty short chunk of code as I literally will be pasting this in every single stat update. I theoretically could just make a huuuuuge if statement, but I would preeeefffeeeeerrrrrr not to.
Probably because you’re “falling into” the sub routine from elsewhere in your code. You can put sub routines in a completely separate scene file and use *gosub_scene to access them. Prevents any flow issues like this.