documentation indexreference manualfunction index

DynamicCharacter

Function: DynamicCharacter (name, **kwargs):

Equivalent to calling Character with the same arguments, and with the dynamic argument set to true.

Basic example

init:
    $ povname = ""
    $ pov = DynamicCharacter("povname", color=(192, 64, 64, 255))

$ povname = renpy.input("What is your name?")
pov "My name is %(povname)s."

Two-part name example

This shows how two user-input names can be combined to make a single two-part name.

init:
    $ povname1 = " "
    $ povname2 = " "
    $ povnamefull = " "
    $ pov = DynamicCharacter("povnamefull", color=(192, 64, 64, 255))

$ povname1 = renpy.input("What is your first name?")
$ povname2 = renpy.input("What is your last name?")
$ povnamefull = povname1+" "+povname2
pov "My name is %(povname2)s. %(povname1)s %(povname2)s."



documentation indexreference manualfunction index