So, I have a command set up to add one to a number and use that to modify things whenever a certain button is clicked. But for some reason, instead of adding one to the number, it appends a one's digit like the number's a text! I have no clue what's going on here, and I don't know if this is a known issue or not.
Here's a sample of the code:
The third local number variable is the one that I know is affected. Other variables may be affected as well; I don't know. What's really weird is, if I set the "variable 3 is equal to" check to "greater than or equal to", the variable resets after a couple clicks and works just right afterwards. Even stranger, when a different bug sharing the same code is clicked, the variable just gets stuck at a certain point. This happens even if I set the "variable 3 is equal to" check to "greater than or equal to".
Can anyone give any insight into this? I'd really, really appreciate it.
Here's a sample of the code:
The third local number variable is the one that I know is affected. Other variables may be affected as well; I don't know. What's really weird is, if I set the "variable 3 is equal to" check to "greater than or equal to", the variable resets after a couple clicks and works just right afterwards. Even stranger, when a different bug sharing the same code is clicked, the variable just gets stuck at a certain point. This happens even if I set the "variable 3 is equal to" check to "greater than or equal to".
Can anyone give any insight into this? I'd really, really appreciate it.