[Solved]Having a quote and nonquote sentence on the same textbox

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
Ace94
Regular
Posts: 113
Joined: Sat Apr 08, 2017 4:22 pm
Contact:

[Solved]Having a quote and nonquote sentence on the same textbox

#1 Post by Ace94 »

Hi. I have a quick question about using quotes in a dialogue on the textbox.

Obviously you do it like this:

Code: Select all

"\"Bla, bla, bla.\""
But, what if I want to add something after that? Like a reaction the character does like so:

Code: Select all

"\"Bla, bla, bla.\"" Tom says in a strict tone.
How can I have them both appear on the same textbox, but one to be in full quotes " " and the other one without any quotes? Is this possible? Thanks.
Last edited by Ace94 on Thu Jan 04, 2018 5:42 pm, edited 1 time in total.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2402
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Having a quote and nonquote sentence on the same textbox

#2 Post by Ocelot »

First of all: you can use single quotes to avoid need for escaping. Second: what exactly is wrong with this:

' "Bla, bla, bla." Tom says in a strict tone.'
< < insert Rick Cook quote here > >

Ace94
Regular
Posts: 113
Joined: Sat Apr 08, 2017 4:22 pm
Contact:

Re: Having a quote and nonquote sentence on the same textbox

#3 Post by Ace94 »

I figured it out. For anyone curious this worked:

Code: Select all

"\"Bla, bla, bla.\"\nTom says in a strict tone."
Ocelot wrote: Thu Jan 04, 2018 5:37 pm First of all: you can use single quotes to avoid need for escaping. Second: what exactly is wrong with this:

' "Bla, bla, bla." Tom says in a strict tone.'

I did not know that. Thank you again, haha.

Post Reply

Who is online

Users browsing this forum: Yone28