# Offering ransom fees for player's prisoner heroes
(24,
[(neq, "$g_ransom_offer_rejected", 1),
(call_script, "script_offer_ransom_amount_to_player_for_prisoners_in_party", "p_main_party"),
(eq, reg0, 0),#no prisoners offered
(assign, ":end_cond", walled_centers_end),
(try_for_range, ":center_no", walled_centers_begin, ":end_cond"),
(party_slot_eq, ":center_no", slot_town_lord, "trp_player"),
(call_script, "script_offer_ransom_amount_to_player_for_prisoners_in_party", ":center_no"),
(eq, reg0, 1),#a prisoner is offered
(assign, ":end_cond", 0),#break
(try_end),
]),