[anyone|plyr,"prisoner_chat", [
#saving vars
(store_conversation_troop, "$g_talk_troop"),
(store_troop_faction, "$g_talk_troop_faction", "$g_talk_troop"),
], "Don't even try to run from me!", "prisoner_chat_oim",[]],
[anyone,"prisoner_chat_oim", [], "And what do you want?", "prisoner_chat_oim_2",[]],
[anyone|plyr,"prisoner_chat_oim_2", [
(is_between, "$g_talk_troop", kingdom_heroes_begin, kingdom_heroes_end),
# (neq, "$g_talk_troop", "trp_kingdom_2_lord"),
# (neg|quest_slot_eq, "qst_oim_getman_capture_tatarin", slot_quest_target_troop, "$g_talk_troop"),
# (neq, "trp_knight_2_16", 1),
# #(neq, "$g_talk_troop", "trp_knight_2_14"),
], "I think you should be set free...", "prisoner_chat_oim_3",[]],
[anyone|plyr,"prisoner_chat_oim_2", [], "Never mind.", "close_window",[]],
[anyone,"prisoner_chat_oim_3", [], "And what is it you want?", "prisoner_chat_oim_5",[]],
[anyone|plyr,"prisoner_chat_oim_5", [], "Release for ransom...", "prisoner_chat_oim_5_money",[]],
[anyone,"prisoner_chat_oim_5_money", [
#code calculate prise
(call_script, "script_calculate_ransom_amount_for_troop", "$g_talk_troop"),
(assign, reg12, reg0),
(val_mul, reg12, 3),
(val_div, reg12, 5),
(assign, reg0, reg12),
(assign, "$temp", reg12),
], "I can pay {reg0} thaler for my freedom.", "prisoner_chat_oim_5_money_goon",[]],
[anyone|plyr,"prisoner_chat_oim_5_money_goon", [], "Well then, you are free.", "close_window",[
#code
(call_script, "script_troop_add_gold", "trp_player", "$temp"),
(party_remove_prisoners, "p_main_party", "$g_talk_troop", 1),
(call_script, "script_remove_troop_from_prison", "$g_talk_troop"),
]],
[anyone|plyr,"prisoner_chat_oim_5_money_goon", [], "Your offer is not good enough for me.", "close_window",[]],
[anyone|plyr,"prisoner_chat_oim_5", [], "Free the prisoner unconditionally...", "prisoner_chat_oim_5_honor1",[]],
[anyone,"prisoner_chat_oim_5_honor1", [], "Well, if you would let me go for free, then you are truly a friend to our people.", "prisoner_chat_oim_5_honor",[]],
[anyone|plyr,"prisoner_chat_oim_5_honor", [], "Well then, you are free.", "prisoner_chat_oim_5_honor_goon",[]],
[anyone,"prisoner_chat_oim_5_honor_goon", [], "You are a {man/woman} of honor. You have my gratitude.", "close_window",[
(party_remove_prisoners, "p_main_party", "$g_talk_troop", 1),
(call_script, "script_remove_troop_from_prison", "$g_talk_troop"),
(call_script, "script_change_player_honor", 1),
(call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 20),
(call_script, "script_change_player_relation_with_faction_ex", "$g_talk_troop_faction", 10),
]],
[anyone|plyr,"prisoner_chat_oim_5_honor", [], "Never mind.", "close_window",[]],
[anyone|plyr,"prisoner_chat_oim_5", [], "I'll be watching you.", "close_window",[]],