How to reference/call the character name?

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
ConerNSFW
Regular
Posts: 40
Joined: Sun Oct 23, 2016 5:08 pm
Contact:

How to reference/call the character name?

#1 Post by ConerNSFW » Sun Dec 11, 2016 4:18 pm

On the say screen is the code:

Code: Select all

if who is not None:
which allows you to do something different if the person speaking has a name. I tried adding this code exactly to a different screen and it didn't work so I was wondering if it was at all possible to reference the character's name, So for example I could display a certain image only when there is a named characters.

Alternatively is there a way to get the textbox to appear when you get the user to input text? Because when I get the user to input something the textbox disappears.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Hojoo