Player choice

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
6aben
Newbie
Posts: 2
Joined: Thu Jun 15, 2017 4:20 pm
Contact:

Player choice

#1 Post by 6aben »

Hello!

I'm trying to make it so my player can select their own physical traits and be able to recall that later on. I cant find the correct code so that the program brings it back up.

Code: Select all

menu skin_color:
    "Ligth":
        centered "You have selected Ligth"
        menu :
            "Is this the skin color you want?"
            "Yes":
                $ skin = "Ligth"
                jump special_trait
            "No":
                 jump skin_color
I wanna make it so that when a player selects appearance a text whill come saying " You have (player select) skin color."

Thank you! :D

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3794
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Player choice

#2 Post by Imperf3kt »

Code: Select all

label skin_color:
    menu:
        "Light":
            centered "You have selected Ligth"
            menu :
                "Is this the skin color you want?"
                "Yes":
                    $ skin = "Ligth"
                    jump special_trait
                "No":
                     jump skin_color
Might I suggest the use of "complexion" instead of "skin color" to avoid potential racial discrepancies?
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

6aben
Newbie
Posts: 2
Joined: Thu Jun 15, 2017 4:20 pm
Contact:

Re: Player choice

#3 Post by 6aben »

Imperf3kt wrote:
Might I suggest the use of "complexion" instead of "skin color" to avoid potential racial discrepancies?

Well I really don't care about that at the moment. I'm just trying to make this code work so then I can use it in the future and play with it. Thanks for the advice tough.

User avatar
Scribbles
Miko-Class Veteran
Posts: 636
Joined: Wed Sep 21, 2016 4:15 pm
Completed: Pinewood Island, As We Know It
Projects: In Blood
Organization: Jaime Scribbles Games
Deviantart: breakfastdoodles
itch: scribbles
Location: Ohio
Contact:

Re: Player choice

#4 Post by Scribbles »

Code: Select all

 "you have selected [skin] color"
Image - Image -Image

Post Reply

Who is online

Users browsing this forum: Google [Bot]