Hi enaielei,
Here's the problem I keep running into:
With this code
Code: Select all
default name_angela = "Angela"
default name_bibi = "Bibi"
define a = Character("[name_angela]", dynamic=True, image="angela", who_color="FF7FFF", who_outlines=[ (2, "#333333", 0, 0) ], what_outlines=[ (2, "#333333", 0, 0)])
define b = Character("[name_bibi]", dynamic=True, image="bibi", who_color="FF7F7F", who_outlines=[ (2, "#333333", 0, 0) ], what_outlines=[ (2, "#333333", 0, 0) ])
screen char_names():
tag menu
default names = (("name_angela", "your image for the jessica character"), ("name_bibi", "your image for mike")) <----- name_angela in parenthesis
I get this:
When I change
default names = (("name_angela", "your image for the jessica character")
to
default names = (([name_angela], "your image for the jessica character") with square brackets instead of parenthesis, it get the actual content of the variable, the characters name. But then I get an error when selecting that character to change the name.
Character name shows correctly, not the variable name.
Error with brackets instead of parenthesis
Code: Select all
File "game/screens.rpy", line 1560, in execute
vbox:
File "game/screens.rpy", line 1575, in execute
if selected >= 0:
File "game/screens.rpy", line 1576, in execute
input:
File "D:\RenPy Local\renpy-7.3.5-sdk\renpy\display\behavior.py", line 1154, in __init__
default = value.get_text()
File "renpy/common/00inputvalues.rpy", line 145, in get_text
return globals()[self.variable]
TypeError: unhashable type: 'RevertableList'
I can't believe that this is so difficult in RenPy.
I'm actually a seasoned programmer, just not in RenPy.
Do you have any idea where this is going south?
Thanks for your help!