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.
And still have the " " in the text. I've been searching through some VN's codes, and Doki Doki does have this feature, so there's a way to do it likewise, right? (the problem is: I don't know how to do it).
Last edited by Potato0095 on Sun Feb 25, 2018 3:41 am, edited 1 time in total.
"There are two types of lies: Lies that hurt, and lies that don't."
Completed: this was for you. [NaNoRenO 19], Acetylene [AceJam19], Ah!! My Roommate is a Succubus Hellbent on World [MonJam 18], I Don't Have A Clue [QRMJam 18], Cautionary Tale [NaNoRenO 18], OP Dodge Cross [GGJ 18], Acetone [AceJam 18]
Projects: I'm a love interest in my childhood friend's reverse harem!!
define e = Character("Eileen", what_prefix='"', what_suffix='"')
If you want to do something like "\"Hey, what are you doing?\" said Eileen." without doing the backslash every time you would use " " for one of them, and ' ' for the other.
If you are using it sporadically (just sometimes for some characters) you could also use a Creator Defined Statement
The example does exactly what you wanted, just remember it must be defined in a python early in a separate file (preferably with name starting 01)
The Documentation wrote:Creator-defined statements allow you to add your own statements to Ren'Py. This makes it possible to add things that are not supported by the current syntax of Ren'Py.
Creator-defined statements must be defined in a python early block. What's more, the filename containing the user-defined statement must be be loaded earlier than any file that uses it. Since Ren'Py loads files in unicode sort order, it generally makes sense to prefix the name of any file containing a user-defined statement with 01, or some other small number.
A user-defined statement cannot be used in the file in which it is defined.
Creator-defined statement are registered using the renpy.register_statement function.