I want to add a setting to the options menu when a user is creating a game that will be then used to affect something in the game.
I was getting a lot of help from this tutorial thread but unfortunately it only talks about conditionally executing files based on values, so this would work with booleans or dropdowns.
But lets say I want to include an int (or uint) as an option and I want to pass that through? For example, let's say I wanted to let users choose how many movement points a settler had in the game setup. I could create a FrontEnd Action to add a Parameter to the Configuration db that's a uint for this value, and this works, but how do I then use that uint value to change the values in the Gameplay db? And how do I make sure this value gets saved with the savefile so that when it gets reloaded it will have the saved value still?
I can't figure out how to either pass values as arguments to executed scripts or how to take values from the configuration database and send it to the gameplay database. Or alternatively how to manipulate what is saved in the savefile and store it there.
Does anyone know how to do this? It seems like it should be such a basic feature but I can't seem to find information about it anywhere
I was getting a lot of help from this tutorial thread but unfortunately it only talks about conditionally executing files based on values, so this would work with booleans or dropdowns.
But lets say I want to include an int (or uint) as an option and I want to pass that through? For example, let's say I wanted to let users choose how many movement points a settler had in the game setup. I could create a FrontEnd Action to add a Parameter to the Configuration db that's a uint for this value, and this works, but how do I then use that uint value to change the values in the Gameplay db? And how do I make sure this value gets saved with the savefile so that when it gets reloaded it will have the saved value still?
I can't figure out how to either pass values as arguments to executed scripts or how to take values from the configuration database and send it to the gameplay database. Or alternatively how to manipulate what is saved in the savefile and store it there.
Does anyone know how to do this? It seems like it should be such a basic feature but I can't seem to find information about it anywhere