renpy character optional parameters code example

Example: renpy define character

#Simple defining:
define shorthandName = Character("Name", <Optional: Parameters>)

#Call character:
shorthandName "Text goes here"



#######################################
#Character with image Attribute

define shorthandName = Character("Name", image="fileName")

show shorthandName mad
shorthandName "I'm a little upset."

shorthandName happy "But it's just a passing thing."
    
    #without the image in the definition, you'd have to type in
	#show shorthandName happy

    #Putting an @ in between the image specifier ("happy") between the
    #character's shorthand name ("shorthandName @ happy") will make
    #that only apply to one line.