- May 24, 2020
- 160
- 79
Hey guys,
I have a "Menu" screen (think of it as a phone, a character app to be precise), which has a name change option.
It works okayish and does its job, but if for whatever reason the player decides to rollback to a point, before the name change, the name change becomes reverted (Makes sense, I guess).
Is there a way to store the name variable rollbackproof?
I can't use the persistent, since it would store the name for EVERY save state and i dont want to disallow the rollback, because that's kinda a dick move.
I'm sure there must be a way.
Thanks in advance.
my code rn:
As mentioned above it works fine, but a rollback kicks it right into its nuts.
Thanks in advance again
I have a "Menu" screen (think of it as a phone, a character app to be precise), which has a name change option.
It works okayish and does its job, but if for whatever reason the player decides to rollback to a point, before the name change, the name change becomes reverted (Makes sense, I guess).
Is there a way to store the name variable rollbackproof?
I can't use the persistent, since it would store the name for EVERY save state and i dont want to disallow the rollback, because that's kinda a dick move.
I'm sure there must be a way.
Thanks in advance.
my code rn:
Python:
screen enternamechange:
modal True
tag menu
add "images/background/datapage.png"
frame:
area(650, 380, 620, 320)
vbox:
xalign 0.5
yalign 0.5
spacing 40
text "What is your first name?":
size 36
input default name:
size 40
xalign 0.5
pixel_width(430)#stops too long names
value VariableInputValue("name")
textbutton "Confirm":
xalign 0.5
action (Notify("The first name was changed."), ShowMenu("character_app"))
Thanks in advance again
Last edited: