Recently I realized that variables and switches are for the most part of my game not very efficient.
I use them for the gameplay features and they work just fine.
BUT:
My story is a decision driven one. So every answer the player gives in a dialogue changes one or several variables in the story on how other characters see the player and how things in the world develop.
Literally hundreds of different true/false states or integer values.
To do this in the engine with switches and variables would be a confusing nightmare in the long run.
So I want to create a JS that simply lists all the values, something like this:
And ingame I want to check and modify it (with a script call or whatever).
Just an example:
The player talks to the character "Vlad". The current affinity level is checked and a text with choices is shown depending on the value. Depending on the choice the value gets overwritten.
Basically like this, but I don't know the correct way to check/overwrite specific lines in a JS-file
◆If
_◆"Gamevalues.js": "AffinityVlad" = 5
_◆Text:
_ : ____ : Will you help me?
_◆Show Choices: Yes, No
_ : When Yes
__ ◆ set "Gamevalues.js":" AffinityVlad" = +1
_ : When No
__ ◆ set "Gamevalues.js": "AffinityVlad" = -1
So I need help with the correct way for changing an integer value by add/subtract or changing true/false values from inside RPG Maker MV.
I use them for the gameplay features and they work just fine.
BUT:
My story is a decision driven one. So every answer the player gives in a dialogue changes one or several variables in the story on how other characters see the player and how things in the world develop.
Literally hundreds of different true/false states or integer values.
To do this in the engine with switches and variables would be a confusing nightmare in the long run.
So I want to create a JS that simply lists all the values, something like this:
And ingame I want to check and modify it (with a script call or whatever).
Just an example:
The player talks to the character "Vlad". The current affinity level is checked and a text with choices is shown depending on the value. Depending on the choice the value gets overwritten.
Basically like this, but I don't know the correct way to check/overwrite specific lines in a JS-file
◆If
_◆"Gamevalues.js": "AffinityVlad" = 5
_◆Text:
_ : ____ : Will you help me?
_◆Show Choices: Yes, No
_ : When Yes
__ ◆ set "Gamevalues.js":" AffinityVlad" = +1
_ : When No
__ ◆ set "Gamevalues.js": "AffinityVlad" = -1
So I need help with the correct way for changing an integer value by add/subtract or changing true/false values from inside RPG Maker MV.