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.
define t = Character("[tname]", color="#4DB8DB")
init:
$ tname = "???"
label start:
t "This will show the name as ???"
$ tname = "Ms. Teacher"
t "This will show the name as Ms. Teacher."
It does the same thing as DynamicCharacter, but is easier to read (imo) and more consistent with other characters, so I prefer doing it this way.
ETA: There is no difference between double and single quotes in python, except that it may be easier to use one or the other to avoid escaping characters.