- Apr 6, 2020
- 32
- 463
If I do something like this:
menu:
"Choice A":
jump choiceA
label choiceA:
$ variable_is_changed = True
"...."
.... if I do that and say the player gets to this point, makes Choice A and this stores the new variable (as changed), and then the player uses the back function to take a different path, is this variable not saved for the new alternate path the player has taken? It's deleted right and reverts to the original state for the new path?
I am new to python and I just need to know if I need to redeclare this variable as "false" every time I open a new branch just to make sure someone didn't store it as "true" and then not go through with the true branch.
I doubt it saves this and I'm not seeing a problem... but I don't want there to be a problem later.
menu:
"Choice A":
jump choiceA
label choiceA:
$ variable_is_changed = True
"...."
.... if I do that and say the player gets to this point, makes Choice A and this stores the new variable (as changed), and then the player uses the back function to take a different path, is this variable not saved for the new alternate path the player has taken? It's deleted right and reverts to the original state for the new path?
I am new to python and I just need to know if I need to redeclare this variable as "false" every time I open a new branch just to make sure someone didn't store it as "true" and then not go through with the true branch.
I doubt it saves this and I'm not seeing a problem... but I don't want there to be a problem later.