Kolba
Hello,
I just made following menu:
Compiled it and got error:
I think that line (...)("saredhrim_house",[](...) is causing problem. Anyone know what's wrong?
I just made following menu:
(
"thief_introduction",0,
"I think it shouldn't be difficult to rob Saredhrim. There is only one guard on the near street. I wonder why he didn't hire more guards. He is a wealthy merchant, so he have a lot of goods and gold.\
Well, let's go and show him, who is the master of thievery! Emil, testuj moda!",
"none",
[],
[
("rob_saredhrim", [], "Continue...",
[
(modify_visitors_at_site,"scn_saredhrim_backyard"),(reset_visitors,0),
(set_visitor,1,"trp_town_guard",1),
(modify_visitors_at_site,"scn_saredhrim_house"),(reset_visitors,0),
(set_visitor,1,"trp_town_guard",1),
(set_jump_mission,"mt_assasination_1"),
(jump_to_scene,"scn_saredhrim_backyard"),(change_screen_mission)],
[
("saredhrim_house",[],"_",[(set_jump_mission,"mt_town_default"),(jump_to_scene,"scn_saredhrim_house"),(change_screen_mission)],"Door to the house"),
]
),
]
),
Compiled it and got error:
Traceback (most recent call last):
File "process_game_menus.py", line 47, in <module>
save_game_menus(variables,variable_uses,tag_uses,qui
File "process_game_menus.py", line 31, in save_game_me
save_game_menu_item(ofile,variable_list,variable_use
ck_strings)
File "process_game_menus.py", line 18, in save_game_me
ofile.write(" %s "%(string.replace(door_name," ","_"
File "C:\Python25\lib\string.py", line 517, in replace
return s.replace(old, new, maxsplit)
AttributeError: 'list' object has no attribute 'replace'
I think that line (...)("saredhrim_house",[](...) is causing problem. Anyone know what's wrong?