Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Theme on Wed 03/08/2005 19:00:40

Title: How to put " in a string? [SOLVED]
Post by: Theme on Wed 03/08/2005 19:00:40
How do i put " inside a string like:
""yada yada yada""

o/
Title: Re: How to put " in a string?
Post by: monkey0506 on Wed 03/08/2005 19:06:18
I believe that you use \".  That tells AGS not to end the string, but rather to read it as a regular ".
Title: Re: How to put " in a string?
Post by: Theme on Wed 03/08/2005 19:31:39
thanks monkey

o/
Title: Re: How to put " in a string?
Post by: monkey0506 on Wed 03/08/2005 19:49:29
You're welcome.  Some other "escape sequences" (thanks strazer.net):

Quote from: Stazer @ Strazer.netCharacter to mask % symbol in strings: %

Display("The %% is the percent symbol.");

Character to mask quotemarks in strings: \

Display("The \" is a quotemark.");

Character for line breaks in strings: [

Display("The [ is a line break.");

Character to mask [ in strings: \

Display("The \[ is a left brace.");
Title: Re: How to put " in a string?
Post by: TerranRich on Thu 04/08/2005 18:21:52
Awesome! I gotta add this to the BFAQ.