[anyone|auto_proceed,"lord_request_mission_ask",
[(eq, "$players_kingdom", 0),
(ge, "$g_talk_troop_faction_relation", 0),
(ge, "$g_talk_troop_relation", 0),
(troop_slot_ge, "trp_player", slot_troop_renown, 30),
(neg|faction_slot_eq, "$g_talk_troop_faction", slot_faction_leader, "$g_talk_troop"),
(faction_get_slot, ":last_offer_time", "$g_talk_troop_faction", slot_faction_last_mercenary_offer_time),
(assign, ":num_enemies", 0),
(try_for_range, ":faction_no", kingdoms_begin, kingdoms_end),
(faction_slot_eq, "$g_talk_troop_faction", slot_faction_state, sfs_active),
(store_relation, ":reln", "$g_talk_troop_faction", ":faction_no"),
(lt, ":reln", 0),
(val_add, ":num_enemies", 1),
(try_end),
(ge, ":num_enemies", 1),
(store_current_hours, ":cur_hours"),
(store_add, ":week_past_last_offer_time", ":last_offer_time", 7 * 24),
(val_add, ":last_offer_time", 24),
(ge, ":cur_hours", ":last_offer_time"),
(store_random_in_range, ":rand", 0, 100),
(this_or_next|lt, ":rand", 20),
(ge, ":cur_hours", ":week_past_last_offer_time"),
(troop_get_type, ":type", "trp_player"),
(this_or_next|eq, ":type", 0),
(this_or_next|troop_slot_eq, "$g_talk_troop", slot_lord_reputation_type, lrep_cunning),
(troop_slot_eq, "$g_talk_troop", slot_lord_reputation_type, lrep_goodnatured),
],
"{!}Warning: This line should never display.", "lord_propose_mercenary",[(store_current_hours, ":cur_hours"),
(faction_set_slot, "$g_talk_troop_faction", slot_faction_last_mercenary_offer_time, ":cur_hours")]],
[anyone,"lord_propose_mercenary", [(call_script, "script_party_calculate_strength", "p_main_party", 0),
(assign, "
ffer_value", reg0),
(val_add, "
ffer_value", 100),
(call_script, "script_round_value", "
ffer_value"),
(assign, "
ffer_value", reg0),
(assign, "$temp", "
ffer_value"),
(faction_get_slot, ":faction_leader", "$g_talk_troop_faction", slot_faction_leader),
(neq, ":faction_leader", "$g_talk_troop"),
(str_store_faction_name, s9, "$g_talk_troop_faction"),
(str_store_troop_name, s10, ":faction_leader"),
(troop_get_type, ":is_female", "trp_player"),
(try_begin),
(eq, ":is_female", 3), #disabled
(troop_slot_eq, "$g_talk_troop", slot_lord_reputation_type, lrep_martial),
(str_store_string, s11, "str_now_some_might_say_that_women_have_no_business_leading_mercenary_companies_but_i_suspect_that_you_would_prove_them_wrong_what_do_you_say"),
(else_try),
(str_store_string, s11, "@What do you say to entering the service of {s9} as a mercenary captain?\
I have no doubt that you would be up to the task."),
(try_end)
],