How to add a User Agreement?

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
User avatar
Suru
Regular
Posts: 112
Joined: Wed Aug 31, 2016 10:27 pm
Contact:

How to add a User Agreement?

#1 Post by Suru »

Is there a way by which to add a pop-up user agreement that has to be clicked on before access to the larger game file itself will launch? I haven't seen any other topics that cover any examples for this style of code. Thank you.

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: How to add a User Agreement?

#2 Post by trooper6 »

Sounds like you just make a screen with your text and two buttons, agree and disagree. You then call the screen. If they press the agree button you continue on with the story, if they don’t, you end the game. You could even do this with just a menu.

This doesn’t need special code. It is just basic Ren’Py menu coding.

I’m on my phone so I can’t test this but:

Code: Select all

label start:
    “Welcome to the game!”
    menu:
        “But first, definitely you agree you are over 18 and are allowed to play games like this in your country?”
        ”Yes”:
            pass
        ”No”:
            return
    “The game continues.”
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

User avatar
Suru
Regular
Posts: 112
Joined: Wed Aug 31, 2016 10:27 pm
Contact:

Re: How to add a User Agreement?

#3 Post by Suru »

I was looking for a way to have a separate pop-up for both time and space needs. For a full length user agreement with all the legalese that doesn't really seem like the cleanest option.

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: How to add a User Agreement?

#4 Post by trooper6 »

Then go what I first suggested. Make a screen with text and two buttons (an Agree and a Disagree). Call the screen.

Side note...a VN with huge amounts of legalese is likely to make me suspicious and not play the game.
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: No registered users