Lumos 说:
Lumos 说:
I will definitely take you up on that offer when I get back.cwr 说:
cwr 说:
(assign,"$g_encountered_party_hostile",1),
(assign,"$g_encountered_party_friendly",0),
(call_script, "script_party_remove_all_prisoners", "$g_encountered_party")
(add_xp_to_troop, #, "trp_player")
("party_add_party_prisoners",
[
(store_script_param_1, ":target_party"), #Target Party_id
(store_script_param_2, ":source_party"), #Source Party_id
(party_get_num_prisoner_stacks, ":num_stacks",":source_party"),
(try_for_range, ":stack_no", 0, ":num_stacks"),
(party_prisoner_stack_get_troop_id, ":stack_troop",":source_party",":stack_no"),
(this_or_next|neg|troop_is_hero, ":stack_troop"),
(eq, "$g_move_heroes", 1),
(party_prisoner_stack_get_size, ":stack_size",":source_party",":stack_no"),
(party_add_members, ":target_party", ":stack_troop", ":stack_size"),
(try_end),
]),
[anyone|plyr,"prison_guard_talk", [],
"I'd like to buy some prisoners.", "prison_guard_buy_prisoners",[]],
[anyone,"prison_guard_buy_prisoners", [],
"Take a look at what we have.", "prison_guard_buy_prisoners_2",[
(assign, "$g_move_heroes", 0),
(party_clear, "p_temp_party"),
(call_script, "script_party_add_party_prisoners", "p_temp_party", "$g_encountered_party"),
(set_mercenary_source_party,"p_temp_party"),
[change_screen_buy_mercenaries]]],
[anyone, "prison_guard_buy_prisoners_2", [], "Come back if you wish to buy more.", "close_window",[]],
[(set_mercenary_source_party,"$g_encountered_party"),[change_screen_buy_mercenaries]]
drunk_player_high_renown