Mydrall
Regular

OK...so my last college class ended at 3. I came home and started working on the new module system. I have been working through the module documentation. I have been working the good part of three hours on this one operation add_gold_to_party. In header_operation.py it is like this.
add_gold_to_party = 1070 # party_id should be different from 0
# (add_gold_to_party,<value>,<party_id>),
Here is my code.....
########################################################################
module_parties.py
("mod_town","Hamlet", icon_mod_town|pf_hamlet, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-1, 1),[], 10),
########################################################################
##this is of course embedded inside of the other encounter try statements.
module_scripts.py
(else_try),
(eq, "$g_encountered_party", "p_mod_town"),
(jump_to_menu, "mnu_mod_town"),
########################################################################
module_game_menues.py
(
"mod_town",0,
"You enter a modular town",
"none",
[],
[
("add_xp",[],"Get xp.",[(add_xp_as_reward,100000),]),
#(add_gold_to_party,<value>,<party_id>),
("getgold",[],"Get GOLD_1",[(add_gold_to_party,10000000, "trp_player")]),
("getgoldy",[],"Get GOLD_2!",[(add_gold_to_party,1000000, "p_main_party")]),
("leave",[],"Leave.",[(leave_encounter),(change_screen_return)]),
]
),
########################################################################
I can open the town menu and select the "Get xp" or "Leave", those both work fine. Neither of the add_gold_to_party functions work.
...any help would be appreciated.
Thanks.
-Rhider
add_gold_to_party = 1070 # party_id should be different from 0
# (add_gold_to_party,<value>,<party_id>),
Here is my code.....
########################################################################
module_parties.py
("mod_town","Hamlet", icon_mod_town|pf_hamlet, no_menu, pt_none, fac_neutral,0,ai_bhvr_hold,0,(-1, 1),[], 10),
########################################################################
##this is of course embedded inside of the other encounter try statements.
module_scripts.py
(else_try),
(eq, "$g_encountered_party", "p_mod_town"),
(jump_to_menu, "mnu_mod_town"),
########################################################################
module_game_menues.py
(
"mod_town",0,
"You enter a modular town",
"none",
[],
[
("add_xp",[],"Get xp.",[(add_xp_as_reward,100000),]),
#(add_gold_to_party,<value>,<party_id>),
("getgold",[],"Get GOLD_1",[(add_gold_to_party,10000000, "trp_player")]),
("getgoldy",[],"Get GOLD_2!",[(add_gold_to_party,1000000, "p_main_party")]),
("leave",[],"Leave.",[(leave_encounter),(change_screen_return)]),
]
),
########################################################################
I can open the town menu and select the "Get xp" or "Leave", those both work fine. Neither of the add_gold_to_party functions work.
...any help would be appreciated.
Thanks.
-Rhider
