How to capitalize a character name tag?

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
Dacuna
Newbie
Posts: 24
Joined: Wed Dec 20, 2017 4:15 pm
Contact:

How to capitalize a character name tag?

#1 Post by Dacuna »

This is probably really obvious, but I'm trying to capitalize a character name in the text.

m "Name, what're you doing? NAME!"

Unfortunately, using [n!u] doesn't work unless n is a variable. I know I could define n as a variable instead of just a character from the beginning but I was wondering if there was a native, simpler way.

Thanks.

philat
Eileen-Class Veteran
Posts: 1910
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: How to capitalize a character name tag?

#2 Post by philat »

Assuming n is the defined character, [n.name!u].

Dacuna
Newbie
Posts: 24
Joined: Wed Dec 20, 2017 4:15 pm
Contact:

Re: How to capitalize a character name tag?

#3 Post by Dacuna »

Sorry, totally forgot about this post! Just wanted to say thanks, it works!

Post Reply

Who is online

Users browsing this forum: No registered users