How to have character's name include an apostrophe

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
User avatar
somestrangecircus
Regular
Posts: 90
Joined: Fri Apr 17, 2015 9:59 pm
Completed: Palette Swap (NaNo 2016)
Projects: Yumi-chan's Wonderful Cake Shop
Organization: Some Strange Circus
Tumblr: somestrangecircus
Deviantart: somestrangecircus
Contact:

How to have character's name include an apostrophe

#1 Post by somestrangecircus » Mon May 04, 2015 1:55 am

Now, to be perfectly honest...I've had alcohol and this is probably a simple solution that I am missing due to said fact.

I am trying to define a character and have that character's name include an apostrophe, but the coding doesn't want that to happen. How do I make it happen?

User avatar
FlyingCarParts
Newbie
Posts: 24
Joined: Sun May 03, 2015 3:48 pm
Contact:

Re: How to have character's name include an apostrophe

#2 Post by FlyingCarParts » Mon May 04, 2015 1:58 am

I'm not entirely sure, but I think you have to do a backslash, apostrophe, backslash.

Onishion
Veteran
Posts: 295
Joined: Mon Apr 20, 2015 10:36 am
Contact:

Re: How to have character's name include an apostrophe

#3 Post by Onishion » Mon May 04, 2015 3:02 am

I think you just need one backslash. It should be like:

Code: Select all

$ RASname = "Ra\'s al Ghul" 
That should work. Now I don't think there's any way to put an apostrophe in the variable's name though, just learn to live without.

User avatar
SundownKid
Lemma-Class Veteran
Posts: 2299
Joined: Mon Feb 06, 2012 9:50 pm
Completed: Icebound, Selenon Rising Ep. 1-2
Projects: Selenon Rising Ep. 3-4
Organization: Fastermind Games
Deviantart: sundownkid
Location: NYC
Contact:

Re: How to have character's name include an apostrophe

#4 Post by SundownKid » Mon May 04, 2015 6:36 am

A variable can include a text string that works the same way. Just put a backslash in front of something in a text string that would otherwise be recognized as code.

Post Reply

Who is online

Users browsing this forum: Google [Bot], Ocelot