McRoddy
Recruit

Hey all. I have been looking at python code forever now and am starting to get it. Can anyone tell me if there is a way to pull directly from the party being talked to when using the buy_mercenaries script? I am creating a new temp_party that is adding troops I list to. Was wondering if there was a way to pull from the party and not pull the entire party but just a random amount.
Thanks for any help.
[party_tpl|pt_manhunters,"start", [(eq,"$talk_context",tc_party_encounter)], "Hey, you there! You seen any outlaws around here?", "manhunter_talk_b",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "Yes, they went this way about an hour ago.", "manhunter_talk_b1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b1", [], "I knew it! Come on, lads, lets go get these bastards! Thanks a lot, friend. Did you need anything?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "No, haven't seen any outlaws lately.", "manhunter_talk_b2",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b2", [], "Bah. They're holed up in this country like rats, but we'll smoke them out yet. Sooner or later. Did you need anything?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "Do you have any men that I can contract?","manhunter_talk_d1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "Would you take some prisoners off my hands? I'm sure they are worth something to you, lads.", "manhunter_talk_c2",[[store_num_regular_prisoners,reg(0)],[ge,reg(0),1]]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "No thank you.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters,"manhunter_talk_c2", [], "Of course! The more of those bastards we get, the better our families will eat!", "manhunter_talk_c3",[[change_screen_trade_prisoners]]],
[party_tpl|pt_manhunters,"manhunter_talk_c3", [], "Thanks for catching this scum for us. Anything else?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_d1", [], "Sure. How much you got? They don't come cheap.", "manhunter_talk_d2",[
(assign, "$g_move_heroes", 1),
(call_script, "script_party_remove_all_companions", "p_temp_party_2"),
(call_script, "script_party_remove_all_prisoners", "p_temp_party_2"),
(store_random_in_range, reg(0), 0, 10),
(store_random_in_range, reg(1), 0, 5),
(store_random_in_range, reg(2), 0, 3),
(store_random_in_range, reg(3), 0, 2),
(store_random_in_range, reg(4), 0, 1),
(party_add_members,"p_temp_party_2","trp_manhunter",reg(0)),
(party_add_members,"p_temp_party_2","trp_bounty_hunter",reg(1)),
(party_add_members,"p_temp_party_2","trp_order_guard",reg(2)),
(party_add_members,"p_temp_party_2","trp_law_enforcer",reg(3)),
(party_add_members,"p_temp_party_2","trp_warrant_officer",reg(4)),
(set_mercenary_source_party,"p_temp_party_2"),
[change_screen_buy_mercenaries]]],
[party_tpl|pt_manhunters,"manhunter_talk_d2", [], "Treat them well. They're great at taking scum as prisoner. Anything else?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "Yes, they went this way about an hour ago.", "manhunter_talk_b1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b1", [], "I knew it! Come on, lads, lets go get these bastards! Thanks a lot, friend. Did you need anything?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_b", [], "No, haven't seen any outlaws lately.", "manhunter_talk_b2",[]],
[party_tpl|pt_manhunters,"manhunter_talk_b2", [], "Bah. They're holed up in this country like rats, but we'll smoke them out yet. Sooner or later. Did you need anything?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "Do you have any men that I can contract?","manhunter_talk_d1",[]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "Would you take some prisoners off my hands? I'm sure they are worth something to you, lads.", "manhunter_talk_c2",[[store_num_regular_prisoners,reg(0)],[ge,reg(0),1]]],
[party_tpl|pt_manhunters|plyr,"manhunter_talk_c1", [], "No thank you.", "close_window",[(assign, "$g_leave_encounter",1)]],
[party_tpl|pt_manhunters,"manhunter_talk_c2", [], "Of course! The more of those bastards we get, the better our families will eat!", "manhunter_talk_c3",[[change_screen_trade_prisoners]]],
[party_tpl|pt_manhunters,"manhunter_talk_c3", [], "Thanks for catching this scum for us. Anything else?", "manhunter_talk_c1",[]],
[party_tpl|pt_manhunters,"manhunter_talk_d1", [], "Sure. How much you got? They don't come cheap.", "manhunter_talk_d2",[
(assign, "$g_move_heroes", 1),
(call_script, "script_party_remove_all_companions", "p_temp_party_2"),
(call_script, "script_party_remove_all_prisoners", "p_temp_party_2"),
(store_random_in_range, reg(0), 0, 10),
(store_random_in_range, reg(1), 0, 5),
(store_random_in_range, reg(2), 0, 3),
(store_random_in_range, reg(3), 0, 2),
(store_random_in_range, reg(4), 0, 1),
(party_add_members,"p_temp_party_2","trp_manhunter",reg(0)),
(party_add_members,"p_temp_party_2","trp_bounty_hunter",reg(1)),
(party_add_members,"p_temp_party_2","trp_order_guard",reg(2)),
(party_add_members,"p_temp_party_2","trp_law_enforcer",reg(3)),
(party_add_members,"p_temp_party_2","trp_warrant_officer",reg(4)),
(set_mercenary_source_party,"p_temp_party_2"),
[change_screen_buy_mercenaries]]],
[party_tpl|pt_manhunters,"manhunter_talk_d2", [], "Treat them well. They're great at taking scum as prisoner. Anything else?", "manhunter_talk_c1",[]],
Thanks for any help.