Unlocking new choices on new game+

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Unlocking new choices on new game+

#1 Post by andrewngn13 »

I wasn't able to find a related topic(or maybe I'm using bad keywords?), but is there a simple way to add a choice according to persistent data? This is what I hoped against logical sense would work, but the menu doesn't read the if statement like that.

Code: Select all

label start:
    menu:
        "Yes Choice":
            $ persistent.ending = "1"
            pass
        "No Choice":            
            pass
        if persistent.ending == "1":
            "Secret choice":
                pass
Am I forced to make another menu with the choice added and the persistent data if statement at the top determining the menu?
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

User avatar
andrewngn13
Regular
Posts: 65
Joined: Thu Nov 13, 2014 2:41 pm
Projects: Recast
Skype: andrewngn13
Location: Glued to my desktop
Contact:

Re: Unlocking new choices on new game+

#2 Post by andrewngn13 »

Shortly after posting above question, I rather quickly found the answer.

Code: Select all

label start:
    menu:
        "Yes Choice":
            $ persistent.ending = "1"
            pass
        "No Choice":           
            pass
        "Secret choice" if persistent.ending == "1":
            pass
Sorry to anyone who went out of their way to read this thread. Hopefully this helps someone if their search terms are odd like mine.
"Feel feel to idea-bounce off me."
No, like seriously, just send a pm and I'll respond what I think. I'm open to reading anything.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: Unlocking new choices on new game+

#3 Post by trooper6 »

Questions on code should be in the questions thread.
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]