Can I call a replay from anywhere?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
tcassat
Regular
Posts: 33
Joined: Tue Oct 03, 2017 7:32 pm
Contact:

Can I call a replay from anywhere?

#1 Post by tcassat »

Hi, guys.

Can I call the replays from anywhere or do I need to be on a Main Menu / Game Menu screen?

In my game, the player can open his diary in his house and choose the scenes to review. However, I did not create any kind of screen-specific replays. I just want to call replays from his diary.

Code: Select all

menu:
    "Other options":
        #irrelevant things here
    "Read your diary (Replay scenes)":
        menu:
            "Choose a scene to replay."
            "Replay Scene A" if switch_scene_a:
                # I don't know how to call a replay from here

Is it possible to do this? Or do I have to create a specific screen for Replays and use "textbuttons" for this?

User avatar
Aoi14
Newbie
Posts: 23
Joined: Sun Dec 24, 2017 3:24 pm
Projects: GuardianS X
Location: Somewhere over the Rainbow
Contact:

Re: Can I call a replay from anywhere?

#2 Post by Aoi14 »

I'm really not sure if this is helpful, but you could give each scene a label and jump to it at a replay.

Code: Select all

# Scene A goes here
label Scene_A:
    "Hello etc."
menu:
    "Other options":
        #irrelevant things here
    "Read your diary (Replay scenes)":
        menu:
            "Choose a scene to replay."
            "Replay Scene A" if switch_scene_a:
                jump Scene_A
I really hope this works and is helpful. Let me know how you get on! :D
Working on VNs. As usual :P

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Can I call a replay from anywhere?

#3 Post by PyTom »

You can, but realize you can't save in a replay.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Sugar_and_rice