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 » Mon Apr 25, 2011 10:12 am

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: 2515
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Adding Color to Player Input Character Name

#2 Post by Alex » Mon Apr 25, 2011 11:56 am


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 » Mon Apr 25, 2011 12:03 pm

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: Nanahs