Adding Color to Player Input Character Name

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
m_evergreen
Newbie
Posts: 6
Joined: Tue Jun 05, 2007 8:19 am
Contact:

Adding Color to Player Input Character Name

#1 Post by m_evergreen »

I'm sure this is explained somewhere but I can't find it. This, and several variations of it, does not work:

$ me = renpy.input("My name is ")
$ me = me.strip()
if me == "":
jump start

define m = Character('%(me)s', color="#f66d6d")

What I'm trying to do is let the player choose the name of their character, but still add color to that name.

User avatar
Alex
Lemma-Class Veteran
Posts: 3093
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Adding Color to Player Input Character Name

#2 Post by Alex »


m_evergreen
Newbie
Posts: 6
Joined: Tue Jun 05, 2007 8:19 am
Contact:

Re: Adding Color to Player Input Character Name

#3 Post by m_evergreen »

Yes! That is just what I've been looking for. Thank you, I'm off to give it a try.

Edit: I tried it and it worked, one problem down. Thanks again.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]