Text Box Change Based on Choices

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, and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
User avatar
Posts: 11
Joined: Sun May 07, 2017 12:05 am
Tumblr: chapscher

Text Box Change Based on Choices

#1 Post by chapscher » Sat Aug 12, 2017 3:52 pm

I'm trying to create a pre-fitted image text box that changes based on what choices the player makes in the game. For example, let's say that the game involves the character making a series of choices surrounding if they will or will not serve The Ice God. If you have 1 ice_points there may be a few snowflakes stuck to and around the text box, but if you have 10 ice_points then it's covered in ice and snow and has created an icy boarder around the entire game window.

This wouldn't just be for one character, this would be for all narration and dialogue.

How would I go about doing this?

Posts: 55
Joined: Tue Aug 08, 2017 9:10 pm

Re: Text Box Change Based on Choices

#2 Post by Zherot » Sat Aug 12, 2017 9:53 pm

I would make a class of buttons and a bunch of "if's" depending on the score that you are using to determine this, every button that i wanted to behave like this would inherit from that class. Now... don't ask me how to code that in renpy because i have no idea, renpy guides are pretty bad.

Post Reply

Who is online

Users browsing this forum: skyeworks