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?
How to have character's name include an apostrophe
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.
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.
- 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:
- FlyingCarParts
- Newbie
- Posts: 24
- Joined: Sun May 03, 2015 3:48 pm
- Contact:
Re: How to have character's name include an apostrophe
I'm not entirely sure, but I think you have to do a backslash, apostrophe, backslash.
Re: How to have character's name include an apostrophe
I think you just need one backslash. It should be like:
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.
Code: Select all
$ RASname = "Ra\'s al Ghul" - 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
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.
Who is online
Users browsing this forum: Google [Bot], Ocelot
