So, I seem to be running into an issue where the the relationship counter will mess with the highest_relationship calculations. Example, if I have it set to 1, I tend to wind up with pretty much all of my highest_relationship calculations winding up with relationship 1. Or at least that’s what it goes to in the game when I run it. I don’t know how to fix this. Would anyone know how to do that?
Currently, I have my code in startup as:
If I just set the relationship counter to 0, it just doesn’t seem to see the highest_relationship variables at all. Anyway, hope this helps, and to all who read this, hope you have a good rest of your day and week over-all.
So, when ever I would try to do highest_relationship when I had the relationship counter set to 1, it would more often than not just default to the first relationship for everything, even if that one was not the highest. When I set it to 2, it would default to the second, and when I set it to 4, it would default to the forth. Trying to get it to default to the highest, not the number of the relationship that the relationship counter is set to.
Are only being called IF the relationship you’re checking is higher than the current one. Which means that if the current highest stat is 5 and your first loop compares a 3 against the 5 in the *if statement, then that *if statement doesn’t fire and it doesn’t set the relationship_counter + 1 or go to the start of the loop. Instead it just hits the *return and the code stops - thus you don’t change the highest calculation as it never gets to the next 3 relationship stats to check them.
Those two lines need to be unindented to sit with the first *if statement, like this:
That seems to have fixed it. Thanks. Tried changing the tabs, but somehow ended up breaking firefox, but seems to be fixed now. For future reference, what is the string that lets you just input the highest_relationship? Something like
$!{highest_relationship}
Think it was something like that, but when I ran it the game skipped over it. Was using it to try and figure out if what I did worked or not. Anyway, thanks for all the help with this. I hope that you all have a good rest of your day today.