(
"flee_to_the_wall_12",menu_text_color(0xFF000000)|mnf_disable_all_keys,
"Entering the yard, you see a few men of the Night's Watch training, but Castle Black seems almost abandoned.",
"none",
[(set_background_mesh, "mesh_pic_game_event_snow"),],
[
("choice_10_1",[],"Leave.",[
(troop_set_note_available, "trp_kingdom_nights_watch_lord", 0),
(troop_set_slot, "trp_kingdom_nights_watch_lord", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_kingdom_nights_watch_lord", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_kingdom_nights_watch_lord", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_kingdom_2_lord", 0),
(troop_set_slot, "trp_kingdom_2_lord", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_kingdom_2_lord", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_kingdom_2_lord", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_26", 0),
(troop_set_slot, "trp_knight_2_26", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_26", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_26", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_4", 0),
(troop_set_slot, "trp_knight_2_4", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_4", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_4", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_5", 0),
(troop_set_slot, "trp_knight_2_5", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_5", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_5", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_13", 0),
(troop_set_slot, "trp_knight_2_13", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_13", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_13", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_15", 0),
(troop_set_slot, "trp_knight_2_15", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_15", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_15", slot_troop_original_faction, "fac_no_faction"),
(troop_set_note_available, "trp_knight_2_21", 0),
(troop_set_slot, "trp_knight_2_21", slot_troop_occupation, slto_dead),
(troop_set_slot, "trp_knight_2_21", slot_troop_change_to_faction, "fac_no_faction"),
(troop_set_slot, "trp_knight_2_21", slot_troop_original_faction, "fac_no_faction"),
#MORMONT
(try_begin),
# make them king
(faction_set_slot, "fac_kingdom_nights_watch", slot_faction_leader, "trp_knight_nights_watch_5"),
# announce it!
#TODO: generate a presentation for this! (start_presentation, "prsnt_enemy_succession"),
(str_store_troop_name, s1, "trp_knight_nights_watch_5"),
(str_store_faction_name, s2, "fac_kingdom_nights_watch"),
(display_message, "@{s1} is the new ruler of {s2}.", 0xFFFF2222),
#TODO: update the game log for this event
(try_end),
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_kingdom_nights_watch_lord"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_nights_watch_5", 0),
(try_end),
#STARK
(try_begin),
# no longer our prisoner
# make them king
(faction_set_slot, "fac_kingdom_2", slot_faction_leader, "trp_knight_2_3"),
# announce it!
#TODO: generate a presentation for this! (start_presentation, "prsnt_enemy_succession"),
(str_store_troop_name, s1, "trp_knight_2_3"),
(str_store_faction_name, s2, "fac_kingdom_2"),
(display_message, "@{s1} is the new ruler of {s2}.", 0xFFFF2222),
#TODO: update the game log for this event
(try_end),
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_kingdom_2_lord"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#NEW
#HORNWOOD
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_26"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#FLINT
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_4"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#CERWYN
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_5"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#UMBER
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_13"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#MANDERLY
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_15"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
#TALLHART
# free up the deceased's fief
(try_for_range, ":fief", centers_begin, centers_end),
(party_get_slot, ":lord", ":fief", slot_town_lord),
(eq, ":lord", "trp_knight_2_21"),
(call_script, "script_give_center_to_lord", ":fief", "trp_knight_2_3", 0),
(try_end),
(call_script, "script_diplomacy_start_peace_between_kingdoms", "fac_kingdom_2", "fac_kingdom_9", 1),
(call_script, "script_dplmc_start_defensive_between_kingdoms", "fac_kingdom_2", "fac_kingdom_9", 1),
(remove_party, "$g_robb_stark"),
(remove_party, "$g_jeor_mormont"),
(remove_party, "$g_donelle_hornwood"),
(remove_party, "$g_benfred_tallhart"),
(remove_party, "$g_medger_cerwyn"),
(remove_party, "$g_robin_flint"),
(remove_party, "$g_smalljon_umber"),
(remove_party, "$g_wendel_manderly"),
(leave_encounter),
(change_screen_return),
]
),
]
),