Page 1 of 1

[SOLVED] Autosave & Autoload only once?

Posted: Mon Apr 08, 2024 8:05 pm
by nairi_0
(btw I'm a very beginner programmer so i apologize for how messy this reads... ;;)

is that possible? if the player makes a very intentional choice (a reference to another game) the game quits. I want the game to pick up at another label once launched while skipping main menu & keeping quick menu (so not like splashscreen where all functions disappear)

it's a 4th wall breaking moment,
like ddlc or undertale (not a renpy game but I've seen some renpy undertale fangames do this!)
where it expects the player to launch game soon after it "crashes", but i want to avoid the main menu because i don't want the choice of seeing anything else after triggering this.

+ the game is short so it shouldn't be that big of a problem

i wrote about the problem i had a bit ago and the conclusion i reached after trying codes & searching on the forum for hours is that i am trying to autoload ! but the only ways i have found to autoload has been very permanent, i couldn't attach a persistent variable to it, it was either on all the time or off all the time. and it would autosave every line instead of just the one line i put force autosave on.

how do i make it a one-time event triggered by 1 persistent variable at ONE place...?

the best way i worked around this has been just jumping to the label after the start label & menu, but that is not the desired effect : ( if what I'm asking for is too unintellegible/difficult, then I'll just stick to my workaround, but i would be very happy if i could execute this the way i intended : (

thank you regardless

Re: Autosave & Autoload only once?

Posted: Tue Apr 09, 2024 3:08 am
by Ocelot
Something like:

Code: Select all

label main_menu:
    if persistent.scary_thing:
        $ renpy.run( Start('scary_label') )
    else:
        show screen main_menu
        pause
    return
Then you could turn off flag in the scary_label.

Re: Autosave & Autoload only once?

Posted: Thu Apr 11, 2024 4:48 am
by nairi_0
Ocelot wrote: Tue Apr 09, 2024 3:08 am Something like:

Code: Select all

label main_menu:
    if persistent.scary_thing:
        $ renpy.run( Start('scary_label') )
    else:
        show screen main_menu
        pause
    return
Then you could turn off flag in the scary_label.
it worked!!!!! this is magic to me omg thank you so much!!