SOLVED - Showing a variable in dialogue

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
Jace
Newbie
Posts: 1
Joined: Fri Apr 09, 2021 11:37 pm
Contact:

SOLVED - Showing a variable in dialogue

#1 Post by Jace »

[Got help in the discord! thank you!]

Hello! I'm fairly new to renpy and python, I want to show a variable (i'm not even sure if that's the right term) in dialogue.

So for example, earlier the player made a choice between 3 characters. I want another character to reference that choice, something like:

"So you and [character chosen] actually pulled it off."

And I've read the articles on if statements but I'm not sure what I put in the text for it to populate? I think I'm missing something.

I appreciate any and all help! Thank you!

uncoded
Regular
Posts: 27
Joined: Fri Apr 09, 2021 10:29 am
Contact:

Re: SOLVED - Showing a variable in dialogue

#2 Post by uncoded »

Not sure if it's solved or not, but just in case : here is the documentation you need.
Provided character_chosen is your string variable:

Code: Select all

"So you and [character_chosen] actually pulled it off."
🐾

Post Reply

Who is online

Users browsing this forum: No registered users