- Joined
- Feb 16, 2016
- Messages
- 91
- Reaction score
- 43
- First Language
- English
- Primarily Uses
- RMMZ
Greetings,
I am working on creating a toggle (OFF, ON) for motion sickness within the Visustella Options Core that will disable dragonbones animations for monsters within my game for players that don't like them/the movements make them feel unwell.
The option looks like this:
Monster Animations OFF / ON
Behind the scenes is a switch; when the option is set to ON, the switch is turned on, which makes battles select troops that use enemies with dragonbones animations. When the OFF option is chosen, the switch is turned off, which makes battles choose troops with enemies that have no dragonbones animations.
So all of that is working perfectly. However, there is an issue with how options are "saved" within the Options Core.
What is happening is if the game is turned off, then turned back on, and a new game is started, regardless of what setting Monster Animations is on, the animations will always be turned on.
To clarify, the default setting for monster animations should be ON. However, if a player chooses to turn the option to the OFF setting, and then exits the game, then reboots the game, the Visustella Options Core will have the option still set to OFF. However, in game, the animations will be turned on again. The player has to go to the options menu, turn Monster Animations ON, and then turn it OFF again for the animations to be disabled.
How do I get the Visustella Options Core to properly save the chosen option? The way the Options Core works seems to me that it initializes its settings and sets the values of everything on boot, but it is not doing so with my custom option.
PS. I realize this is not alot of information to go off of per say, so if anyone that is able to assist needs more, please let me know and I'll post on this thread with the requested info.
I am working on creating a toggle (OFF, ON) for motion sickness within the Visustella Options Core that will disable dragonbones animations for monsters within my game for players that don't like them/the movements make them feel unwell.
The option looks like this:
Monster Animations OFF / ON
Behind the scenes is a switch; when the option is set to ON, the switch is turned on, which makes battles select troops that use enemies with dragonbones animations. When the OFF option is chosen, the switch is turned off, which makes battles choose troops with enemies that have no dragonbones animations.
So all of that is working perfectly. However, there is an issue with how options are "saved" within the Options Core.
What is happening is if the game is turned off, then turned back on, and a new game is started, regardless of what setting Monster Animations is on, the animations will always be turned on.
To clarify, the default setting for monster animations should be ON. However, if a player chooses to turn the option to the OFF setting, and then exits the game, then reboots the game, the Visustella Options Core will have the option still set to OFF. However, in game, the animations will be turned on again. The player has to go to the options menu, turn Monster Animations ON, and then turn it OFF again for the animations to be disabled.
How do I get the Visustella Options Core to properly save the chosen option? The way the Options Core works seems to me that it initializes its settings and sets the values of everything on boot, but it is not doing so with my custom option.
PS. I realize this is not alot of information to go off of per say, so if anyone that is able to assist needs more, please let me know and I'll post on this thread with the requested info.