How can I customize a changeable name? [Solved]
Posted: Sun Nov 03, 2013 9:29 am
If I just assign a character a name I can change the color that the name appears in, add prefixes and suffixes, etc. just by defining the character that way:
With this code in place anything that unknown says will be in quotations and the name "???" will appear in the name box in the given color.
But what if I want to let the player rename the character? The way I know to do that is set a variable:
Which will allow me to use person as a character but I don't know how to customize the color of the name (in this case the default name "Some Bloke") or add prefixes and suffixes.
Is there a way to do this?
Code: Select all
define unknown = Character('???', color="#c8ffc8", what_prefix="\"", what_suffix="\"")
But what if I want to let the player rename the character? The way I know to do that is set a variable:
Code: Select all
$ person = renpy.input("My name is...", "Some Bloke")
Is there a way to do this?