I was wondering if there is a way to make this plug in remember what skin you had equip when you close the game and reopen. It kind of does but only if its one that's always unlocked. If its unlocked through a switch then when I close the game it resets to default which would be fine since its through a switch but it doesn't switch back to the players choice even when they load back into game but it is still unlocked in that save which is good at least.
MV SumRndmDde Window Skin remember choice
Javascript/Plugin SupportHmmm, can't you get around it by getting plugins that run common events on menu close and load and storing the option setting into a variable when closing menu and giving the options a value when loading?
So like set a variable to
So like set a variable to
ConfigManager.windowSkinand then when loading give the options a variable value ConfigManager.windowSkin = $gameVariables.value(X);if it's loaded, and during save game => load game, than it should
be saved, if not, you can do so using the $gameSystem otherwise.
if it was implemented.
otherwise, it would be a simple edit to do so.
I wonder why it was never reported though, I think that most combined
it with the optionCore of yanfly which does save this, but unsure if it does
count for each new game or not.
be saved, if not, you can do so using the $gameSystem otherwise.
if it was implemented.
otherwise, it would be a simple edit to do so.
I wonder why it was never reported though, I think that most combined
it with the optionCore of yanfly which does save this, but unsure if it does
count for each new game or not.
Im trying to figure out what you mean to do. The only plug in I found that does that is Hakuen Studio's Quit Menu Common Event plugin and for some reason when I use that with the plug ins I have it just gives me an error.
Don't Yanfly Utility Common Events do that?
Your right it does thank you! and easy to set up. So I set the menu close and load as two different common events.
Then first I went to the menu close event and put a set variable that I named "window skin" and under script i wrote the ConfigManager.windowSkin
Then for the loading event im not sure what you mean by give the options a variable value.
Like I wrote above, put this in a script box in your load common event:
Replace X with the Id of the variable you named "window skin".
ConfigManager.windowSkin = $gameVariables.value(X);Replace X with the Id of the variable you named "window skin".
Did I do this correctly? Tried this way but doesn't seem to work.
the 2nd one seems correct, than use control variable to the index
or name of the window skin, and it will load like that.
or name of the window skin, and it will load like that.
I tested it and it seems to work for me.
Don't know what your problem is. Use show text to check what value it's giving to your variables.
Don't know what your problem is. Use show text to check what value it's giving to your variables.
So the save part is saving the variable perfectly depending on what one I use when I close the menu.
But the load part kept resetting the skin to default so I did the show text and it was showing the default variable (0).
So then I put the show text variable without the script and it did keep the correct window skin like before (as long as its not unlocked through switch) but the variable gets reset to 0 every time I load into game which with that script keeps setting the skin to default. So both are working but the variable is just resetting to 0.
So is there a reason its switching to 0 on load into game?
But the load part kept resetting the skin to default so I did the show text and it was showing the default variable (0).
So then I put the show text variable without the script and it did keep the correct window skin like before (as long as its not unlocked through switch) but the variable gets reset to 0 every time I load into game which with that script keeps setting the skin to default. So both are working but the variable is just resetting to 0.
So is there a reason its switching to 0 on load into game?
make the way rpgLoard69 using this inside a common event:
and set this below it:
all this common event afterwards, this should save it by force.
it doesn't require because you add the value too it, but you might
want to save it for safety or as failsafe.
as if you don't save the game, it is not always saved. but you can try.
ConfigManager.windowSkin = $gameVariables.value(X);and set this below it:
ConfigManager.save() once you alter the variable to a new value,all this common event afterwards, this should save it by force.
it doesn't require because you add the value too it, but you might
want to save it for safety or as failsafe.
as if you don't save the game, it is not always saved. but you can try.
Original thread: https://forums.rpgmakerweb.com/threads/sumrndmdde-window-skin-remember-choice.178535/