# "$g_move_heroes" : controls if heroes will also be added.
("party_prisoners_add_party_companions",
[ (store_script_param_1, ":target_party"), #Target Party_id
(store_script_param_2, ":source_party"), #Source Party_id
(party_get_num_companion_stacks, ":num_stacks",":source_party"),
(try_for_range, ":stack_no", 0, ":num_stacks"),
(party_stack_get_troop_id, ":stack_troop",":source_party",":stack_no"),
(this_or_next|neg|troop_is_hero, ":stack_troop"),
(eq, "$g_move_heroes", 1),
(neq, ":stack_troop", "trp_ben_bushy"),
(neq, ":stack_troop", "trp_hyle_hunt"),
(neq, ":stack_troop", "trp_alyn_hunt"),
(neq, ":stack_troop", "trp_edmund_ambrose"),
(neq, ":stack_troop", "trp_richard_farrow"),
(neq, ":stack_troop", "trp_will_the_stork"),
(neq, ":stack_troop", "trp_hugh_beesbury"),
(neq, ":stack_troop", "trp_raymond_nayland"),
(neq, ":stack_troop", "trp_harry_sawyer"),
(neq, ":stack_troop", "trp_owen_inchfield"),
(neq, ":stack_troop", "trp_robin_potter"),
(party_stack_get_size, ":stack_size",":source_party",":stack_no"),
(party_add_prisoners, ":target_party", ":stack_troop", ":stack_size"),
(try_end),
]),