Ren'Py memo

Ren'Pyの個人的なメモ

前回の続きから機能のメモ

Save on Quit — Ren'Py Patreon
これを読めば全部なんとかなる

アレンジ

label splashscreen:

    if renpy.can_load("quitsave") and persistent.quitload != 2:
        if persistent.quitload == 0:
            call screen confirm(message=_("前回の続きから始めますか?"), yes_action=FileLoad("quitsave", confirm=False, slot=True), no_action=Return())
        elif persistent.quitload == 1:
            $ renpy.load("quitsave")

    return

screens.rpy

        hbox:
            style_prefix "radio"
            label _("前回の続きから再開")
            textbutton _("確認ダイアログあり"):
                action SetVariable("persistent.quitload", 0)
            textbutton _("確認ダイアログなし"):
                action SetVariable("persistent.quitload", 1)
            textbutton _("使用しない"):
                action SetVariable("persistent.quitload", 2)