Hi,
I have an issue when I want to assign a boolean with the value True after a certain line of code in a script. When I roll back to the previous scene/s (with the back button of the mouse wheel), the boolean loses its True value and returns to False.
I initialize the boolean at the beginning of the game or the scene with the value False and change it along the way.
Is there a way to keep this value even if the player wants to return to the previous scene/s to change his decisions?
I only want this logic on a single playthrough, so I can't use the persistent here.
Is there a way to do that?
init.rpy
scene.rpy
Thank you,
DogCat
I have an issue when I want to assign a boolean with the value True after a certain line of code in a script. When I roll back to the previous scene/s (with the back button of the mouse wheel), the boolean loses its True value and returns to False.
I initialize the boolean at the beginning of the game or the scene with the value False and change it along the way.
Is there a way to keep this value even if the player wants to return to the previous scene/s to change his decisions?
I only want this logic on a single playthrough, so I can't use the persistent here.
Is there a way to do that?
init.rpy
Python:
label init_game_values:
default some_boolean = False
Python:
label some_label:
scene some_scene1 with dissolve
mc "some blah blah 1"
scene some_scene2 with dissolve
mc "some blah blah 2"
$ some_booelan = True
scene some_scene2 with dissolve
mc "some blah blah 3"
Thank you,
DogCat