Variable is not right in-game

Nothing else seems to affect it. My variable just becomes a completely different number when I test play the game.

Resolved: Acidentally forgot to set the variable to the right amount.
Need more details.
A little more information would be helpful.

What variable?  How are you setting it?

Variables that just "do their own thing" are usually set as defaults in scripts/plugins, so is it possible that you've added a plugin and have not gone through to check if it uses switches or variables, and allocated them correctly?  So the plugin is using the same variable that you're trying to use, and you're fighting for it?

Original thread: https://forums.rpgmakerweb.com/threads/variable-is-not-right-in-game.48598/