Set variable before starting game?

I have HimeWorks Pre-Title events plugin, and I have it set so that it asks the player a question upon the game starting. What I want to do is when the player starts a new game, I want to load the player's answer to that question.
At the title screen, there are no $game variables that can be changed.  They are only created when you select New Game or Load Game.


Most people usually just create an autorun or parallel process event on the starting map that runs once then disables itself for the rest of the game.  Any reason you can't just do that?
At the title screen, there are no $game variables that can be changed.  They are only created when you select New Game or Load Game.


Most people usually just create an autorun or parallel process event on the starting map that runs once then disables itself for the rest of the game.  Any reason you can't just do that?

I could. But I have some plugins and I'd like to ask the player to choose a certain game mode before the game starts up.
DataManager.createGameObjects is the function that creates the $gameVariables object.  You could make your plugin alias that method, call it, and then set the values for the variables based on the player's choices.  It's in rpg_managers.js
I have HimeWorks Pre-Title events plugin, and I have it set so that it asks the player a question upon the game starting. What I want to do is when the player starts a new game, I want to load the player's answer to that question.

Just use a "Show Choices" during the pre-title event. When you process the response, set a variable. The game will remember the value of the variable once the game starts. Then just make an event that has uses conditional branches to do whatever you want based on the variable's value.
Just use a "Show Choices" during the pre-title event. When you process the response, set a variable. The game will remember the value of the variable once the game starts. Then just make an event that has uses conditional branches to do whatever you want based on the variable's value.

I tried that. It didn't seem to do anything.

Original thread: https://forums.rpgmakerweb.com/threads/set-variable-before-starting-game.61909/