Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -rupN 1/module_dialogs.py 2/module_dialogs.py
- --- 1/module_dialogs.py 2013-07-23 19:04:22.000000000 -0400
- +++ 2/module_dialogs.py 2014-12-02 02:01:15.000000000 -0500
- @@ -1398,7 +1398,7 @@ dialogs = [
- [trp_nurse_for_lady, "start", [
- # (eq, "$talk_context", tc_garden),
- - ], "I humbly request that your lordship keeps his hands where I can see them.", "close_window",[]],
- + ], "I humbly request that your {lordship/ladyship} keeps {his/her} hands where I can see them.", "close_window",[]],
- ## [trp_tutorial_trainer, "start", [(eq, "$tutorial_1_state", 1),], "TODO: Watch me.", "tutorial_1_1_1",[]],
- ## [trp_tutorial_trainer, "tutorial_1_1_1", [], "TODO: This is up.", "tutorial_1_1_2",[(agent_set_attack_action, "$g_talk_agent", 3),]],
- @@ -5916,6 +5916,8 @@ dialogs = [
- [anyone ,"start", [(troop_slot_eq,"$g_talk_troop",slot_troop_met, 2),
- (gt, "$g_talk_troop_relation", 10),
- (gt, "$g_time_since_last_talk", 3),
- + (troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 0),
- (troop_get_type, ":is_female", "trp_player"),
- (eq, ":is_female", 1),
- (troop_slot_eq, "trp_player", slot_troop_spouse, -1),
- @@ -5961,7 +5963,10 @@ dialogs = [
- (gt, "$g_talk_troop_relation", 0),
- (troop_get_type, ":is_female", "trp_player"),
- (eq, ":is_female", 1),
- - (troop_slot_eq, "trp_player", slot_troop_spouse, -1),
- + (troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 0),
- +
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, -1),
- (troop_slot_eq, "trp_player", slot_troop_betrothed, -1),
- (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),
- (troop_slot_eq, "$g_talk_troop", slot_troop_betrothed, -1),
- @@ -5972,6 +5977,8 @@ dialogs = [
- [anyone ,"start", [(troop_slot_eq,"$g_talk_troop",slot_troop_met, 2),
- (gt, "$g_talk_troop_relation", 0),
- + (troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 0),
- (troop_get_type, ":is_female", "trp_player"),
- (eq, ":is_female", 1),
- ],
- @@ -7100,10 +7107,29 @@ dialogs = [
- (eq, "$g_romantic_comment_made", 0),
- (ge, "$g_talk_troop_relation", 20),
- (troop_slot_ge, "trp_player", slot_troop_renown, 250),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin),
- -
- - (troop_get_type, ":is_female", "trp_player"),
- - (eq, ":is_female", 0),
- +# (troop_get_type, ":is_female", "trp_player"),
- + (assign, ":is_male_spouse", -1),
- + (try_begin),
- + (troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
- + (gt,":player_spouse",0),
- + (troop_get_type, ":is_female", ":player_spouse"),
- + (neq, ":is_female", 1),
- + (assign, ":is_male_spouse", 1),
- + (try_end),
- + (eq, ":is_male_spouse", -1), #If player is not married to a man
- +
- + (assign, ":pushing_self", -1), #lords are by default straight - lords prefers to marry the player than introduce the girl, unless male player or either lord or player is already married to a lady
- + (try_begin),
- + (troop_get_type, ":is_female", "trp_player"),
- + (eq, ":is_female", 1),
- + (try_begin),
- + (assign, ":pushing_self", 1),
- + (this_or_next|troop_slot_ge, "$g_talk_troop", slot_troop_spouse, kingdom_ladies_begin),
- + (gt,":player_spouse",0),
- + (assign, ":pushing_self", -1),
- + (try_end),
- + (try_end),
- + (eq, ":pushing_self", -1),
- (assign, ":third_party_introduce", 0),
- @@ -7111,7 +7137,7 @@ dialogs = [
- (troop_slot_eq, ":lady", slot_troop_spouse, -1),
- (troop_slot_eq, ":lady", slot_troop_betrothed, -1),
- (troop_slot_eq, ":lady", slot_troop_cur_center, "$g_encountered_party"),
- - (neg|troop_slot_ge, ":lady", slot_troop_met, 4),
- +# (neg|troop_slot_ge, ":lady", slot_troop_met, 4),
- (call_script, "script_get_kingdom_lady_social_determinants", ":lady"),
- (eq, reg0, "$g_talk_troop"),
- @@ -7131,6 +7157,10 @@ dialogs = [
- "By the way, I hope you get a chance to meet my {s11}, {s14}. ", "lord_start",
- [
- (troop_set_slot, "$g_talk_troop", slot_lord_granted_courtship_permission, 1),
- + (try_begin),
- + (troop_slot_eq, "$marriage_candidate", slot_troop_met, 4),
- + (troop_set_slot, "$marriage_candidate", slot_troop_met, 2),
- + (try_end),
- (assign, "$g_romantic_comment_made", 1),
- ]],
- @@ -7141,15 +7171,37 @@ dialogs = [
- (troop_slot_ge, "trp_player", slot_troop_renown, 250),
- (assign, ":third_party_introduce", 0),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin),
- - (troop_get_type, ":is_female", "trp_player"),
- - (eq, ":is_female", 0),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin),
- +# (troop_get_type, ":is_female", "trp_player"),
- +# (eq, ":is_female", 0),
- + (assign, ":is_male_spouse", -1),
- + (try_begin),
- + (troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
- + (gt,":player_spouse",0),
- + (troop_get_type, ":is_female", ":player_spouse"),
- + (neq, ":is_female", 1),
- + (assign, ":is_male_spouse", 1),
- + (try_end),
- + (eq, ":is_male_spouse", -1), #If player is not married to a man
- +
- + (assign, ":pushing_self", -1), #lords are by default straight - lords prefers to marry the player than introduce the girl, unless male player or either lord or player is already married to a lady
- + (try_begin),
- + (troop_get_type, ":is_female", "trp_player"),
- + (eq, ":is_female", 1),
- + (try_begin),
- + (assign, ":pushing_self", 1),
- + (this_or_next|troop_slot_ge, "$g_talk_troop", slot_troop_spouse, kingdom_ladies_begin),
- + (gt,":player_spouse",0),
- + (assign, ":pushing_self", 1),
- + (try_end),
- + (try_end),
- + (eq, ":pushing_self", -1),
- (try_for_range, ":lady", kingdom_ladies_begin, kingdom_ladies_end),
- (troop_slot_eq, ":lady", slot_troop_spouse, -1),
- (troop_slot_eq, ":lady", slot_troop_betrothed, -1),
- (troop_slot_eq, ":lady", slot_troop_cur_center, "$g_encountered_party"),
- - (neg|troop_slot_ge, ":lady", slot_troop_met, 4),
- +# (neg|troop_slot_ge, ":lady", slot_troop_met, 4),
- (call_script, "script_get_kingdom_lady_social_determinants", ":lady"),
- (eq, reg0, "$g_talk_troop"),
- @@ -7176,6 +7228,10 @@ dialogs = [
- "By the way, I am sure that my {s11}, {s14}, would be delighted were you to pay her a visit. She awaits you in her chambers.", "lord_start",
- [
- (troop_set_slot, "$g_talk_troop", slot_lord_granted_courtship_permission, 1),
- + (try_begin),
- + (troop_slot_eq, "$marriage_candidate", slot_troop_met, 4),
- + (troop_set_slot, "$marriage_candidate", slot_troop_met, 2),
- + (try_end),
- (assign, "$g_romantic_comment_made", 1),
- ]],
- @@ -11362,7 +11418,7 @@ dialogs = [
- (neg|check_quest_failed, "qst_formal_marriage_proposal"),
- (neg|check_quest_succeeded, "qst_formal_marriage_proposal"),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- (quest_slot_eq, "qst_formal_marriage_proposal", slot_quest_target_troop, "$g_talk_troop"),
- (quest_get_slot, ":bride", "qst_formal_marriage_proposal", slot_quest_giver_troop),
- @@ -11445,7 +11501,7 @@ dialogs = [
- (quest_get_slot, ":bride", "qst_formal_marriage_proposal", slot_quest_giver_troop),
- (str_store_troop_name, s11, ":bride"),
- ],
- - "Splendid news, my young man -- I shall be proud to have you in our family. Now, let us talk the terms of the marriage. As per our custom, the two of us must make sure that {s11} has sufficient finances to support herself, in the event of any unforeseen circumstances..", "lord_marriage_permission_endowment",[
- + "Splendid news, my young {man/lady} -- I shall be proud to have you in our family. Now, let us talk the terms of the marriage. As per our custom, the two of us must make sure that {s11} has sufficient finances to support herself, in the event of any unforeseen circumstances..", "lord_marriage_permission_endowment",[
- (troop_get_slot, ":player_renown", "trp_player", slot_troop_renown),
- (troop_get_slot, ":guardian_renown", "$g_talk_troop", slot_troop_renown),
- @@ -11622,15 +11678,28 @@ dialogs = [
- "{s12}", "lord_pretalk",
- [
- (troop_set_slot, "$g_talk_troop", slot_lord_granted_courtship_permission, 1),
- + (try_begin),
- + (troop_slot_eq, "$marriage_candidate", slot_troop_met, 4),
- + (troop_set_slot, "$marriage_candidate", slot_troop_met, 2),
- + (try_end),
- ]],
- #Ask for marriage, following courtship, both with or against lady's wishes
- [anyone|plyr,"lord_talk_ask_something_2", [
- (neg|troop_slot_eq, "$g_talk_troop", slot_lord_granted_courtship_permission, 1),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- (troop_get_type, ":is_female", "$g_talk_troop"),
- (neq, ":is_female", 1),
- + (assign, ":is_male_spouse", -1),
- + (try_begin),
- + (troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
- + (gt,":player_spouse",0),
- + (troop_get_type, ":is_female", ":player_spouse"),
- + (neq, ":is_female", 1),
- + (assign, ":is_male_spouse", 1),
- + (try_end),
- + (eq, ":is_male_spouse", -1),
- ],
- "What would it take to cement a lasting alliance with your house?", "lord_talk_ask_marriage_1",[]],
- @@ -12479,31 +12548,31 @@ dialogs = [
- [anyone,"lord_talk_ask_marriage_1", [
- - (assign, "$marriage_candidate", -1),
- + (assign, "$marriage_candidate", -1),
- (try_begin),
- (troop_get_type, ":is_female", "trp_player"),
- (eq, ":is_female", 1),
- - (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),
- - (assign, "$marriage_candidate", "$g_talk_troop"),
- - (else_try),
- - (troop_get_type, ":is_female", "trp_player"),
- - (eq, ":is_female", 0),
- - (assign, "$marriage_candidate", -1),
- + (try_begin),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, -1),
- + (assign, "$marriage_candidate", "$g_talk_troop"),
- + (try_end),
- + (try_end),
- + (try_begin),
- + (neq, "$marriage_candidate", "$g_talk_troop"),
- (try_for_range, ":lady", kingdom_ladies_begin, kingdom_ladies_end),
- + (eq, "$marriage_candidate", -1),
- (troop_slot_eq, ":lady", slot_troop_spouse, -1),
- (troop_slot_eq, ":lady", slot_troop_betrothed, -1),
- (call_script, "script_get_kingdom_lady_social_determinants", ":lady"),
- -
- (eq, reg0, "$g_talk_troop"),
- -
- (call_script, "script_troop_get_family_relation_to_troop", ":lady", "$g_talk_troop"),
- (assign, "$marriage_candidate", ":lady"),
- (str_store_troop_name, s14, "$marriage_candidate"),
- -
- (str_store_string, s15, "str_it_is_our_custom_to_seal_any_such_alliances_with_marriage_and_in_fact_we_have_been_looking_for_a_suitable_groom_for_my_s11_s14"),
- -
- (try_end),
- (try_end),
- +
- (eq, "$marriage_candidate", -1),
- ],
- "It is our custom to seal any such alliances with marriage. Unfortunately, no one in my household is eligible to wed.",
- @@ -12511,8 +12580,9 @@ dialogs = [
- ]],
- [anyone,"lord_talk_ask_marriage_1", [
- - (troop_get_type, ":type", "trp_player"),
- - (eq, ":type", 0),
- +# (troop_get_type, ":type", "trp_player"),
- +# (eq, ":type", 0),
- + (neq, "$marriage_candidate", "$g_talk_troop"),
- ],
- "{s15}",
- "lord_courtship_pre_permission",[
- @@ -12529,11 +12599,11 @@ dialogs = [
- [anyone|plyr,"lord_courtship_pre_permission", [
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, 1),
- + #(neg|troop_slot_ge, "trp_player", slot_troop_spouse, 1),
- (neg|troop_slot_ge, "trp_player", slot_troop_betrothed, 1),
- - (troop_get_type, ":is_female", "trp_player"),
- - (eq, ":is_female", 0),
- +# (troop_get_type, ":is_female", "trp_player"),
- +# (eq, ":is_female", 0),
- (str_clear, s15),
- (try_begin),
- @@ -12572,6 +12642,7 @@ dialogs = [
- [anyone|plyr,"lord_marriage_proposal_female_pc_confirm", [
- + (troop_slot_eq, "trp_player", slot_troop_spouse, -1),
- ],
- "Yes. That is my proposal.",
- "lord_marriage_proposal_female_pc_reax",[
- @@ -14149,6 +14220,27 @@ Hand over my {reg19} denars, if you plea
- "{!}CHEAT: Raid a village.", "lord_suggest_raid_village",[]],
- [anyone|plyr,"lord_suggest_action", [],
- "{!}CHEAT: Like me.", "lord_pretalk",[(call_script,"script_change_player_relation_with_troop","$g_talk_troop",20)]],
- + [anyone|plyr,"lord_suggest_action", [(faction_slot_eq, "$g_talk_troop_faction", slot_faction_leader, "$g_talk_troop"),],
- + "{!}CHEAT: Make peace with me.", "lord_pretalk",[
- + (call_script, "script_diplomacy_start_peace_between_kingdoms", "$g_talk_troop_faction", "$players_kingdom", 1),
- + (store_relation, ":players_kingdom_relation", "$g_talk_troop_faction", "$players_kingdom"),
- +
- + (try_begin),
- + (this_or_next|eq, "$players_kingdom", 0),
- + (ge, ":players_kingdom_relation", 0),
- + (call_script, "script_set_player_relation_with_faction", "$g_talk_troop_faction", 0),
- + (else_try),
- + (call_script, "script_diplomacy_start_peace_between_kingdoms", "$g_talk_troop_faction", "$players_kingdom", 1),
- + (try_end),]],
- + [anyone|plyr,"lord_suggest_action", [(faction_slot_eq, "$g_talk_troop_faction", slot_faction_leader, "$g_talk_troop"),],
- + "{!}CHEAT: Make your faction like me.", "lord_pretalk",[
- + (store_relation, ":players_kingdom_relation", "$g_talk_troop_faction", "$players_kingdom"),
- + (val_add,":players_kingdom_relation",20),
- + (val_min,":players_kingdom_relation",100),
- + (call_script, "script_set_player_relation_with_faction", "$g_talk_troop_faction", ":players_kingdom_relation"),
- + ]],
- +
- +
- [anyone,"lord_suggest_lift_siege", [],
- "{!}As you wish, {playername}.", "close_window",[(call_script, "script_party_set_ai_state", "$g_talk_troop_party", spai_undefined),
- @@ -15707,18 +15799,100 @@ I suppose there are plenty of bounty hun
- [anyone,"start",
- [
- (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
- -# (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- - (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (neg|gt, "$g_talk_troop_effective_relation", 5),
- + (eq,"$talk_context", tc_garden),
- ],
- "Yes, my husband?", "spouse_talk",[
- ]],
- + [anyone,"start",
- + [
- + (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (gt, "$g_talk_troop_effective_relation", 5),
- + (lt, "$g_talk_troop_effective_relation", 20),
- + (eq,"$talk_context", tc_garden),
- + ],
- + "It is so delightful to have a chance to spend some time together, my husband. I am so glad you are able to come.", "spouse_talk",[
- + (store_current_hours, ":hours_since_last_visit"),
- + (troop_get_slot, ":last_visit_hours", "$g_talk_troop", slot_troop_last_talk_time),
- + (val_sub, ":hours_since_last_visit", ":last_visit_hours"),
- + (gt,":hours_since_last_visit",96),
- + (call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
- + ]],
- +
- +
- + [anyone,"start",
- + [
- + (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (eq,"$talk_context", tc_garden),
- + (ge, "$g_talk_troop_effective_relation", 20),
- + ],
- + "It is so delightful to have a chance to spend some time together, my love. How much good it does my heart to see you again!", "spouse_talk",[
- + (store_current_hours, ":hours_since_last_visit"),
- + (troop_get_slot, ":last_visit_hours", "$g_talk_troop", slot_troop_last_talk_time),
- + (val_sub, ":hours_since_last_visit", ":last_visit_hours"),
- + (gt,":hours_since_last_visit",96),
- + (call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 2),
- +
- + ]],
- +
- + [anyone,"start",
- + [
- + (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- + (eq,"$talk_context", tc_court_talk), #keeping postures in formal court settings
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + ],
- + "Yes, my husband?", "spouse_talk",[
- + ]],
- +
- + [anyone,"start",
- + [
- + (troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, "trp_player"),
- + (eq,"$talk_context", tc_back_alley), #keeping postures in formal court settings
- + ],
- + "I am glad that you have a chance to spend some time with us, my husband.", "spouse_talk",[
- +
- + (store_current_hours, ":hours_since_last_visit"),
- + (troop_get_slot, ":last_visit_hours", "$g_talk_troop", slot_troop_last_talk_time),
- + (val_sub, ":hours_since_last_visit", ":last_visit_hours"),
- + (gt,":hours_since_last_visit",96),
- + (call_script, "script_change_player_relation_with_troop", "$g_talk_troop", 1),
- +
- + ]],
- +
- +
- +
- [anyone|plyr,"spouse_talk",
- [
- (eq, "$g_player_minister", "$g_talk_troop"),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"), #only wife can be minister
- ],
- "As you are my chief minister, I wish to speak to about affairs of state", "minister_issues",[
- ]],
- + [anyone|plyr,"spouse_talk",
- + [
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (eq, "$public_harem",0),
- + ],
- + "I would like my consorts to greet my guests publicly next time I enter my court.", "spouse_pretalk",[
- + (assign, "$public_harem",1),
- + ]],
- + [anyone|plyr,"spouse_talk",
- + [
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- + (eq, "$public_harem",1),
- + ],
- + "I would like my consorts to wait for me in their chambers in private next time I enter my court.", "spouse_pretalk",[
- + (assign, "$public_harem",0),
- + ]],
- [anyone|plyr,"spouse_talk", [
- (check_quest_active, "qst_offer_gift"),
- @@ -15787,16 +15961,23 @@ I suppose there are plenty of bounty hun
- (assign, "$political_quest_target_troop", reg1),
- (assign, "$political_quest_object_troop", reg2),
- ]],
- + [anyone|plyr,"spouse_talk",
- + [(troop_slot_eq, "$g_talk_troop", slot_troop_occupation, slto_kingdom_lady),],
- + "I got new clothes for you.", "spouse_pretalk",[
- + (change_screen_equip_other)
- + ]],
- +
- [anyone|plyr, "spouse_talk",
- [
- (neg|check_quest_active, "qst_organize_feast"),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"), #only wife can be minister
- ],
- "I was thinking that perhaps we could host a feast", "spouse_organize_feast",[
- ]],
- [anyone|plyr, "spouse_talk",
- - [
- + [(troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"), #only wife can be minister
- ],
- "Let us take inventory of our household possessions", "spouse_household_possessions",[
- (change_screen_loot, "trp_household_possessions"),
- @@ -15810,8 +15991,23 @@ I suppose there are plenty of bounty hun
- [anyone|plyr,"spouse_talk",
- - [],
- - "We shall speak later, my {wife/husband}", "close_window",[
- + [(troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 0),],
- + "We shall speak later, my husband", "close_window",[
- + (assign, "$g_leave_encounter", 1),
- + ]],
- + [anyone|plyr,"spouse_talk",
- + [(troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 1),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),],
- + "We shall speak later, my consort", "close_window",[
- + (assign, "$g_leave_encounter", 1),
- + ]],
- + [anyone|plyr,"spouse_talk",
- + [(troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 1),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),],
- + "We shall speak later, my wife", "close_window",[
- (assign, "$g_leave_encounter", 1),
- ]],
- @@ -15860,10 +16056,16 @@ I suppose there are plenty of bounty hun
- #WEDDING CUTSCENE BEGINS HERE
- [anyone, "spouse_pretalk",
- - [],
- - "Is there anything else, my {husband/wife}?", "spouse_talk",[
- + [(troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 0),],
- + "Is there anything else, my wife?", "spouse_talk",[
- ]],
- -
- + [anyone, "spouse_pretalk",
- + [(troop_get_type, ":is_female", "$g_talk_troop"),
- + (eq, ":is_female", 1),],
- + "Is there anything else, my husband?", "spouse_talk",[
- + ]],
- +
- @@ -17035,17 +17237,16 @@ I suppose there are plenty of bounty hun
- ],
- "{s12}", "lady_pretalk",[]],
- -
- -
- +
- [anyone|plyr,"lady_talk",
- [
- - (troop_get_type, ":is_female", "trp_player"),
- - (eq, ":is_female", 0),
- +# (troop_get_type, ":is_female", "trp_player"),
- +# (eq, ":is_female", 0),
- (troop_slot_eq, "$g_talk_troop", slot_troop_met, 1),
- (troop_slot_eq, "$g_talk_troop", slot_troop_spouse, -1),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- -
- - (neq, "$lady_flirtation_location", "$g_encountered_party"),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- + (troop_slot_eq, "$g_talk_troop", slot_troop_met, 1),
- +# (neq, "$lady_flirtation_location", "$g_encountered_party"),
- ],
- "My lady, I would like to profess myself your most ardent admirer", "lady_profess_admiration",
- [
- @@ -17122,6 +17323,8 @@ I suppose there are plenty of bounty hun
- "{s9}", "lady_pretalk",
- []],
- + [anyone|plyr,"lady_talk", [(ge, "$cheat_mode", 1),],
- + "{!}CHEAT: Like me.", "lady_pretalk",[(call_script,"script_change_player_relation_with_troop","$g_talk_troop",20)]],
- [anyone,"lady_profess_admiration", [
- @@ -17264,7 +17467,7 @@ I suppose there are plenty of bounty hun
- [
- (neg|check_quest_active, "qst_formal_marriage_proposal"),
- (neg|troop_slot_ge, "trp_player", slot_troop_betrothed, active_npcs_begin),
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, active_npcs_begin),
- (troop_slot_eq, "$g_talk_troop", slot_troop_met, 2),
- @@ -18567,13 +18770,13 @@ I suppose there are plenty of bounty hun
- [(troop_remove_gold, "trp_player",100),(call_script, "script_enter_dungeon", "$current_town", "mt_visit_town_castle")]],
- [anyone|plyr,"prison_guard_visit_prison_4", [],
- - "Give me the keys to the cells -- now!", "prison_guard_visit_break",[
- + "Give me the keys to the cells -- now!", "prison_guard_visit_break",[(assign, "$talk_context", tc_prison_break),
- +
- ]],
- [anyone,"prison_guard_visit_break", [], "Help! Help! Prison break!", "close_window",[
- (call_script, "script_activate_town_guard"),
- (assign, "$g_main_attacker_agent", "$g_talk_agent"),
- - (assign, "$talk_context", tc_prison_break),
- # (try_begin),
- # (store_relation, ":relation", "fac_player_faction", "$g_encountered_party_faction"),
- # Reduce relation with town
- @@ -19463,7 +19666,7 @@ I suppose there are plenty of bounty hun
- []],
- [anyone,"political_quests_end", [
- - (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- +# (troop_slot_eq, "trp_player", slot_troop_spouse, "$g_talk_troop"),
- ],
- "Very well.", "spouse_pretalk",
- []],
- @@ -25820,7 +26023,7 @@ I suppose there are plenty of bounty hun
- #[
- #]],
- - [anyone,"start", [], "Surrender or die. Make your choice", "battle_reason_stated",[]],
- + [anyone,"start", [], "Surrender or die. Make your choice", "battle_reason_stated",[(display_message,"$talk_context"),]],
- [anyone|plyr,"battle_reason_stated", [], "I am not afraid of you. I will fight.", "close_window",[[encounter_attack]]],
- [anyone,"start", [], "Hello. What can I do for you?", "free",[]],
- diff -rupN 1/module_game_menus.py 2/module_game_menus.py
- --- 1/module_game_menus.py 2013-07-23 18:54:34.000000000 -0400
- +++ 2/module_game_menus.py 2014-12-01 09:38:11.000000000 -0500
- @@ -9517,7 +9517,7 @@ game_menus = [
- ("visit_lady",
- [
- - (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin),
- +# (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin), #For polygamy we want to be able to visit ladies even after player is married
- (assign, "$love_interest_in_town", 0),
- (assign, "$love_interest_in_town_2", 0),
- @@ -9581,6 +9581,34 @@ game_menus = [
- [
- (jump_to_menu, "mnu_lady_visit"),
- ], "Door to the garden."),
- +
- + ("visit_spouse",
- + [
- + (troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin), #After you get married you should be able to visit your spouse(s) ALONE
- + (assign, "$love_interest_page", 0),
- + ],
- + "Spend some time alone with one of your spouses",
- + [
- + (jump_to_menu, "mnu_spouse_visit"),
- + ], "Door to the garden."),
- + ("visit_harem",
- + [ (eq,"$public_harem",0),
- + (troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin), #After you get married you should be able to visit your spouse(s) ALONE
- + (assign,":concubine_count",0),
- + (try_for_range, ":lady_no", kingdom_ladies_begin, kingdom_ladies_end),
- + (troop_slot_eq, ":lady_no", slot_troop_spouse, "trp_player"),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, ":lady_no"),
- + (troop_slot_eq, ":lady_no", slot_troop_cur_center, "$current_town"),
- + (val_add,":concubine_count",1),
- + (try_end),
- + (gt,":concubine_count",0),
- +# (assign, "$love_interest_page", 0),
- + ],
- + "Spend some time in your harem",
- + [
- + (call_script, "script_enter_harem", "$current_town"),
- + ], "Door to the garden."),
- +
- ("trade_with_merchants",
- [
- @@ -9971,6 +9999,173 @@ game_menus = [
- ]
- ),
- + (
- + "spouse_visit",0,
- + "Whom do you wish to visit?",
- + "none",
- + [ (assign, "$love_interest_in_town", 0),
- + (assign, "$love_interest_in_town_2", 0),
- + (assign, "$love_interest_in_town_3", 0),
- + (assign, "$love_interest_in_town_4", 0),
- + (assign, "$love_interest_in_town_5", 0),
- + (assign, "$love_interest_in_town_6", 0),
- + (assign, "$love_interest_in_town_7", 0),
- + (assign, "$love_interest_in_town_8", 0),
- + (assign, "$lady_count", 0),
- + (try_for_range, ":lady_no", kingdom_ladies_begin, kingdom_ladies_end),
- + (troop_slot_eq, ":lady_no", slot_troop_cur_center, "$current_town"),
- +
- + (troop_slot_eq, ":lady_no", slot_troop_spouse, "trp_player"),
- + (try_begin),
- + (val_add, "$lady_count", 1),
- + (gt, "$lady_count", "$love_interest_page"),
- + (try_begin),
- + (eq, "$love_interest_in_town", 0),
- + (assign, "$love_interest_in_town", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_2", 0),
- + (assign, "$love_interest_in_town_2", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_3", 0),
- + (assign, "$love_interest_in_town_3", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_4", 0),
- + (assign, "$love_interest_in_town_4", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_5", 0),
- + (assign, "$love_interest_in_town_5", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_6", 0),
- + (assign, "$love_interest_in_town_6", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_7", 0),
- + (assign, "$love_interest_in_town_7", ":lady_no"),
- + (else_try),
- + (eq, "$love_interest_in_town_8", 0),
- + (assign, "$love_interest_in_town_8", ":lady_no"),
- + (try_end),
- + (try_end),
- + (try_end),],
- + [
- +
- + ("visit_lady_1", [
- + (gt, "$love_interest_in_town", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town"),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town"),
- + ],
- + "Visit {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town"),
- + (jump_to_menu, "mnu_garden_spouse"),
- + ]),
- +
- + ("visit_lady_1w", [
- + (gt, "$love_interest_in_town", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town"),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town"),
- +
- + ],
- + "Visit your wife, {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town"),
- + (jump_to_menu, "mnu_garden_spouse"),
- + ]),
- +
- +
- +
- + ("visit_lady_2", [
- + (gt, "$love_interest_in_town_2", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town_2"),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_2"),
- + ],
- + "Visit {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town_2"),
- + (jump_to_menu, "mnu_garden_spouse"),
- + ]),
- +
- + ("visit_lady_3", [
- + (gt, "$love_interest_in_town_3", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town_3"),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_3"),
- + ],
- + "Visit {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town_3"),
- + (jump_to_menu, "mnu_garden_spouse")], "Door to the garden."),
- +
- +
- + ("visit_lady_4", [(gt, "$love_interest_in_town_4", 0),(str_store_troop_name, s12, "$love_interest_in_town_4"), (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_4"),],
- + "Visit {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_4"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_5", [(gt, "$love_interest_in_town_5", 0),(str_store_troop_name, s12, "$love_interest_in_town_5"), (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_5"),],
- + "Visit {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_5"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_6",[(gt, "$love_interest_in_town_6", 0),(str_store_troop_name, s12, "$love_interest_in_town_6"), (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_6"),],
- + "Visit {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_6"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_7",[(gt, "$love_interest_in_town_7", 0),(str_store_troop_name, s12, "$love_interest_in_town_7"), (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_7"),],
- + "Visit {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_7"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_8",[(gt, "$love_interest_in_town_8", 0),(str_store_troop_name, s12, "$love_interest_in_town_8"), (neg|troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_8"),],
- + "Visit {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_8"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_2w", [
- + (gt, "$love_interest_in_town_2", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town_2"),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_2"),
- + ],
- + "Visit your wife, {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town_2"),
- + (jump_to_menu, "mnu_garden_spouse"),
- + ]),
- +
- + ("visit_lady_3w", [
- + (gt, "$love_interest_in_town_3", 0),
- + (str_store_troop_name, s12, "$love_interest_in_town_3"),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_3"),
- + ],
- + "Visit your wife, {s12}",
- + [
- + (assign, "$love_interest_in_town", "$love_interest_in_town_3"),
- + (jump_to_menu, "mnu_garden_spouse")], "Door to the garden."),
- +
- +
- + ("visit_lady_4w", [(gt, "$love_interest_in_town_4", 0),(str_store_troop_name, s12, "$love_interest_in_town_4"), (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_4"),],
- + "Visit your wife, {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_4"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_5w", [(gt, "$love_interest_in_town_5", 0),(str_store_troop_name, s12, "$love_interest_in_town_5"), (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_5"),],
- + "Visit your wife, {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_5"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_6w",[(gt, "$love_interest_in_town_6", 0),(str_store_troop_name, s12, "$love_interest_in_town_6"), (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_6"),],
- + "Visit your wife, {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_6"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_7w",[(gt, "$love_interest_in_town_7", 0),(str_store_troop_name, s12, "$love_interest_in_town_7"), (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_7"),],
- + "Visit your wife, {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_7"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- + ("visit_lady_8w",[(gt, "$love_interest_in_town_8", 0),(str_store_troop_name, s12, "$love_interest_in_town_8"), (troop_slot_eq, "trp_player", slot_troop_spouse, "$love_interest_in_town_8"),],
- + "Visit your wife, {s12}",[(assign, "$love_interest_in_town", "$love_interest_in_town_8"),(jump_to_menu, "mnu_garden_spouse"),]),
- +
- +
- + ("nextpage",
- + [(store_add,":endofnextpage","$love_interest_page",8),
- + (ge, "$lady_count", ":endofnextpage"),
- + ], "Next Page",[
- + (val_add, "$love_interest_page", 8),
- + (jump_to_menu, "mnu_spouse_visit"),
- + ]),
- + ("prevpage",
- + [(ge, "$love_interest_page",8),
- + ], "Previous Page",[
- + (val_sub, "$love_interest_page", 8),
- + (jump_to_menu, "mnu_spouse_visit"),
- + ]),
- +
- + ("leave",[], "Leave",[(jump_to_menu, "mnu_town")]),
- +
- + ]
- + ),
- (
- "town_tournament_lost",0,
- @@ -13867,10 +14062,29 @@ game_menus = [
- [(jump_to_menu, "mnu_town")]),
- ]
- -
- -
- ),
- + ( #pre lady visit
- + "garden_spouse",0,
- + "The guards open the door to her chambers for you. You might be imagining things, but you think one of them may have given you a wink",
- + "none",
- + [],
- + [
- +
- + ("enter",
- + [], "Enter",
- + [
- + (jump_to_menu, "mnu_town"),
- + (call_script, "script_setup_meet_spouse_alone", "$love_interest_in_town", "$g_encountered_party"),
- + ]
- + ),
- +
- + ("leave",
- + [],
- + "Leave",
- + [(jump_to_menu, "mnu_town")]),
- + ]
- + ),
- (
- "kill_local_merchant_begin",0,
- diff -rupN 1/module_scripts.py 2/module_scripts.py
- --- 1/module_scripts.py 2013-08-05 15:23:50.000000000 -0400
- +++ 2/module_scripts.py 2014-12-01 14:42:19.000000000 -0500
- @@ -1229,8 +1229,8 @@ scripts = [
- (item_set_slot, "itm_club_with_spike_head", slot_item_multiplayer_item_class, multi_item_class_type_war_picks),
- #Cleavers
- - (item_set_slot, "itm_falchion", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- - (item_set_slot, "itm_military_cleaver_b", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- + (item_set_slot, "itm_falchion", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- + (item_set_slot, "itm_military_cleaver_b", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- (item_set_slot, "itm_military_cleaver_c", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- (item_set_slot, "itm_two_handed_cleaver", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- (item_set_slot, "itm_hafted_blade_a", slot_item_multiplayer_item_class, multi_item_class_type_cleavers),
- @@ -4470,7 +4470,7 @@ scripts = [
- (assign, ":num_relations", 0),
- (try_begin),
- - (call_script, "script_troop_get_family_relation_to_troop", "trp_player", ":troop_no"),
- + (call_script, "script_troop_get_family_relation_to_troop", ":troop_no", "trp_player"),
- (gt, reg0, 0),
- (val_add, ":num_relations", 1),
- (try_end),
- @@ -25388,14 +25388,26 @@ scripts = [
- (neq, ":cur_troop", "trp_knight_1_1_wife"), #The one who should not appear in game
- #(troop_slot_eq, ":cur_troop", slot_troop_occupation, slto_kingdom_lady),
- (troop_slot_eq, ":cur_troop", slot_troop_cur_center, ":center_no"),
- -
- + (assign, ":on_feast", 0),
- + (try_begin),
- + (faction_slot_eq, ":center_faction", slot_faction_ai_state, sfai_feast),
- + (faction_slot_eq, ":center_faction", slot_faction_ai_object, ":center_no"),
- + (assign, ":on_feast", 1),
- + (try_end),
- (assign, ":lady_meets_visitors", 0),
- (try_begin),
- - (this_or_next|troop_slot_eq, "trp_player", slot_troop_spouse, ":cur_troop"), #player spouse goes in position of honor
- - (this_or_next|troop_slot_eq, "trp_player", slot_troop_betrothed, ":cur_troop"), #player spouse goes in position of honor
- - (this_or_next|troop_slot_eq, ":cur_troop", slot_troop_spouse, "trp_player"), #player spouse goes in position of honor
- - (troop_slot_eq, ":cur_troop", slot_troop_betrothed, "trp_player"),
- -
- + (assign, ":lady_is_wife", 0), #main spouse: bidirectional spousal relationships
- + (try_begin),
- + (troop_slot_eq, "trp_player", slot_troop_spouse, ":cur_troop"), #player spouse goes in position of honor
- + (troop_slot_eq, ":cur_troop", slot_troop_spouse, "trp_player"), #player spouse goes in position of honor
- + (assign, ":lady_is_wife", 1),
- + (try_end),
- +# (try_begin),
- +# (troop_slot_eq, "trp_player", slot_troop_betrothed, ":cur_troop"), #player spouse goes in position of honor
- +# (troop_slot_eq, ":cur_troop", slot_troop_betrothed, "trp_player"),
- +# (assign, ":lady_is_wife", 1),
- +# (try_end),
- + (eq, ":lady_is_wife", 1),
- (assign, ":lady_meets_visitors", 0), #She is already in the place of honor
- (try_begin),
- @@ -25403,7 +25415,18 @@ scripts = [
- (str_store_troop_name, s4, ":cur_troop"),
- (display_message, "str_s4_is_present_at_the_center_and_in_place_of_honor"),
- (try_end),
- -
- + (else_try), #lady is concubine - only show if it is not on feast and requested through talking to wife
- + (neg|eq, ":on_feast", 1),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, ":cur_troop"),
- + (troop_slot_eq, ":cur_troop", slot_troop_spouse, "trp_player"),
- + (assign, ":lady_meets_visitors", "$public_harem"),
- +
- + (try_begin),
- + (eq, "$cheat_mode", 1),
- + (str_store_troop_name, s4, ":cur_troop"),
- + (display_message, "str_s4_is_present_at_the_center_and_is_married"),
- + (try_end),
- +
- (else_try), #lady is troop
- (store_faction_of_troop, ":lady_faction", ":cur_troop"),
- (neq, ":lady_faction", ":center_faction"),
- @@ -25422,8 +25445,7 @@ scripts = [
- (try_begin),
- #married ladies at a feast will not mingle - this is ahistorical, as married women and widows probably had much more freedom than unmarried ones, at least in the West, but the game needs to leave slots for them to show off their unmarried daughters
- - (faction_slot_eq, ":center_faction", slot_faction_ai_state, sfai_feast),
- - (faction_slot_eq, ":center_faction", slot_faction_ai_object, ":center_no"),
- + (eq, ":on_feast", 1),
- (assign, ":lady_meets_visitors", 0),
- (try_begin),
- @@ -25523,7 +25545,62 @@ scripts = [
- (scene_set_slot, ":castle_scene", slot_scene_visited, 1),
- (change_screen_mission),
- ]),
- -
- +
- + ("setup_meet_spouse_alone",
- + [
- + (store_script_param_1, ":lady_no"),
- + (store_script_param_2, ":center_no"),
- +
- + #(mission_tpl_entry_set_override_flags, "mt_visit_town_castle", 0, af_override_horse),
- +# (troop_set_slot, ":lady_no", slot_lady_last_suitor, "trp_player"),
- +
- + (set_jump_mission,"mt_visit_town_castle"),
- + (party_get_slot, ":castle_scene", ":center_no", slot_town_castle),
- + (modify_visitors_at_site,":castle_scene"),
- + (reset_visitors),
- +
- +# (troop_set_age, "trp_nurse_for_lady", 100),
- +# (set_visitor, 7, "trp_nurse_for_lady"),
- +
- + (assign, ":cur_pos", 16),
- + (set_visitor, ":cur_pos", ":lady_no"),
- +
- + (assign, "$talk_context", tc_garden),
- +
- + (jump_to_scene,":castle_scene"),
- + (scene_set_slot, ":castle_scene", slot_scene_visited, 1),
- + (change_screen_mission),
- + ]),
- + ("enter_harem",
- + [
- + (store_script_param_1, ":center_no"),
- + (assign, "$talk_context", tc_garden),
- + #(mission_tpl_entry_set_override_flags, "mt_visit_town_castle", 0, af_override_horse),
- +# (troop_set_slot, ":lady_no", slot_lady_last_suitor, "trp_player"),
- +
- + (set_jump_mission,"mt_visit_town_castle"),
- + (party_get_slot, ":castle_scene", ":center_no", slot_town_castle),
- + (modify_visitors_at_site,":castle_scene"),
- + (reset_visitors),
- + (assign, ":cur_pos", 16), #populate wife
- + (troop_get_slot, ":player_spouse", "trp_player", slot_troop_spouse),
- + (set_visitor, ":cur_pos", ":player_spouse"),
- + (val_add,":cur_pos", 1),
- + (try_for_range, ":cur_troop", kingdom_ladies_begin, kingdom_ladies_end), #populate concubines
- + (troop_slot_eq, ":cur_troop", slot_troop_spouse, "trp_player"),
- + (neg|troop_slot_eq, "trp_player", slot_troop_spouse, ":cur_troop"),
- +# (troop_set_age, "trp_nurse_for_lady", 100),
- +# (set_visitor, 7, "trp_nurse_for_lady"),
- +# (lt, ":cur_pos", 32), #adding the line to cap spawn locations -- may or may not need
- + (set_visitor, ":cur_pos", ":cur_troop"),
- + (val_add,":cur_pos", 1),
- + (try_end),
- + (assign, "$talk_context", tc_back_alley), #not adding constants for the talk context used in only 1 place so far - will add to the list if that changes
- +
- + (jump_to_scene,":castle_scene"),
- + (scene_set_slot, ":castle_scene", slot_scene_visited, 1),
- + (change_screen_mission),
- + ]),
- # script_find_high_ground_around_pos1
- # Input: pos1 should hold center_position_no
- # arg1: team_no
- @@ -26708,21 +26785,21 @@ scripts = [
- (party_is_active, "$qst_follow_spy_spy_partners_party"),
- (remove_party, "$qst_follow_spy_spy_partners_party"),
- (try_end),
- - (else_try),
- - (eq, ":quest_no", "qst_capture_enemy_hero"),
- - (assign, ":quest_return_penalty", -3),
- - (assign, ":quest_expire_penalty", -4),
- - (else_try),
- - (eq, ":quest_no", "qst_lend_companion"),
- - (quest_get_slot, ":quest_target_troop", "qst_lend_companion", slot_quest_target_troop),
- - (troop_set_slot, ":quest_target_troop", slot_troop_current_mission, npc_mission_rejoin_when_possible),
- - (troop_set_slot, ":quest_target_troop", slot_troop_days_on_mission, 0),
- - (else_try),
- - (eq, ":quest_no", "qst_lend_surgeon"),
- - (quest_get_slot, ":quest_target_troop", "qst_lend_surgeon", slot_quest_target_troop),
- - (troop_set_slot, ":quest_target_troop", slot_troop_current_mission, npc_mission_rejoin_when_possible),
- - (troop_set_slot, ":quest_target_troop", slot_troop_days_on_mission, 0),
- -## (party_add_members, "p_main_party", ":quest_target_troop", 1),
- + (else_try),
- + (eq, ":quest_no", "qst_capture_enemy_hero"),
- + (assign, ":quest_return_penalty", -3),
- + (assign, ":quest_expire_penalty", -4),
- + (else_try),
- + (eq, ":quest_no", "qst_lend_companion"),
- + (quest_get_slot, ":quest_target_troop", "qst_lend_companion", slot_quest_target_troop),
- + (troop_set_slot, ":quest_target_troop", slot_troop_current_mission, npc_mission_rejoin_when_possible),
- + (troop_set_slot, ":quest_target_troop", slot_troop_days_on_mission, 0),
- + (else_try),
- + (eq, ":quest_no", "qst_lend_surgeon"),
- + (quest_get_slot, ":quest_target_troop", "qst_lend_surgeon", slot_quest_target_troop),
- + (troop_set_slot, ":quest_target_troop", slot_troop_current_mission, npc_mission_rejoin_when_possible),
- + (troop_set_slot, ":quest_target_troop", slot_troop_days_on_mission, 0),
- +## (party_add_members, "p_main_party", ":quest_target_troop", 1),
- ## (else_try),
- ## (eq, ":quest_no", "qst_capture_conspirators"),
- ## (else_try),
- @@ -27524,12 +27601,27 @@ scripts = [
- [
- (store_script_param_1, ":troop_1"),
- (store_script_param_2, ":troop_2"),
- -
- + (troop_get_type, ":gender_2", ":troop_2"),
- (troop_get_type, ":gender_1", ":troop_1"),
- (assign, ":relation_strength", 0),
- (troop_get_slot, ":spouse_of_1", ":troop_1", slot_troop_spouse),
- (troop_get_slot, ":spouse_of_2", ":troop_2", slot_troop_spouse),
- +# (try_begin),
- +# (eq, "$cheat_mode", 1),
- +# (try_begin),
- +# (gt, ":spouse_of_1", -1),
- +# (str_store_troop_name,s3,":troop_1"),
- +# (str_store_troop_name,s2,":spouse_of_1"),
- +# (display_message,"str_s3s_s2"),
- +# (try_end),
- +# (try_begin),
- +# (gt, ":spouse_of_2", -1),
- +# (str_store_troop_name,s3,":troop_2"),
- +# (str_store_troop_name,s2,":spouse_of_2"),
- +# (display_message,"str_s3s_s2"),
- +# (try_end),
- +# (try_end),
- (try_begin),
- (gt, ":spouse_of_1", -1),
- @@ -27582,13 +27674,35 @@ scripts = [
- (eq, ":troop_1", ":troop_2"),
- #self
- (else_try),
- - (eq, ":spouse_of_1", ":troop_2"),
- - (assign, ":relation_strength", 20),
- + (this_or_next|eq, ":spouse_of_2", ":troop_1"), #if one is married to another (wife/concubine)
- + (eq, ":spouse_of_1", ":troop_2"),
- + (assign, ":relation_strength", 20),
- (try_begin),
- - (eq, ":gender_1", 1),
- - (str_store_string, s11, "str_wife"),
- + (eq, ":spouse_of_1", ":troop_2"),
- + (eq, ":spouse_of_2", ":troop_1"), #Checking whether bidirectional, bidirectional = wife, otherwise concubine
- + (try_begin),
- + (eq, ":troop_1", "trp_player"),
- + (try_begin),
- + (eq, ":gender_2", 1),
- + (str_store_string, s11, "str_husband"),
- + (else_try),
- + (str_store_string, s11, "str_wife"),
- + (try_end),
- + (else_try),
- + (try_begin),
- + (eq, ":gender_1", 1),
- + (str_store_string, s11, "str_wife"),
- + (else_try),
- + (str_store_string, s11, "str_husband"),
- + (try_end),
- + (try_end),
- (else_try),
- - (str_store_string, s11, "str_husband"),
- + (try_begin),
- + (eq, ":troop_2", "trp_player"), #If not both of them are true then only one of them is as checked by the this_or_next
- + (str_store_string, s11, "str_concubine"),
- + (else_try),
- + (str_store_string, s11, "str_husband"),
- + (try_end),
- (try_end),
- (else_try),
- (eq, ":father_of_2", ":troop_1"),
- @@ -33555,7 +33669,7 @@ scripts = [
- (troop_set_slot, "trp_npc6", slot_troop_morality_value, 2), #beheshtur
- (troop_set_slot, "trp_npc6", slot_troop_2ary_morality_type, tmt_honest),
- (troop_set_slot, "trp_npc6", slot_troop_2ary_morality_value, 1),
- - (troop_set_slot, "trp_npc6", slot_troop_personalityclash_object, "trp_npc11"), #firenz
- + (troop_set_slot, "trp_npc6", slot_troop_personalityclash_object, "trp_npc11"), #firenz - katrin
- (troop_set_slot, "trp_npc6", slot_troop_personalityclash2_object, "trp_npc13"), #firenz - nizar
- (troop_set_slot, "trp_npc6", slot_troop_personalitymatch_object, "trp_npc12"), #firenz - jeremus
- (troop_set_slot, "trp_npc6", slot_troop_home, "p_town_4"), #Suno
- @@ -33572,7 +33686,7 @@ scripts = [
- (troop_set_slot, "trp_npc7", slot_troop_morality_value, 3), #beheshtur
- (troop_set_slot, "trp_npc7", slot_troop_2ary_morality_type, -1),
- (troop_set_slot, "trp_npc7", slot_troop_2ary_morality_value, 0),
- - (troop_set_slot, "trp_npc7", slot_troop_personalityclash_object, "trp_npc1"), #deshavi
- + (troop_set_slot, "trp_npc7", slot_troop_personalityclash_object, "trp_npc1"), #deshavi - borcha
- (troop_set_slot, "trp_npc7", slot_troop_personalityclash2_object, "trp_npc4"), #deshavi - rolf
- (troop_set_slot, "trp_npc7", slot_troop_personalitymatch_object, "trp_npc16"), #deshavi - klethi
- (troop_set_slot, "trp_npc7", slot_troop_home, "p_village_5"), #Kulum
- @@ -33589,7 +33703,7 @@ scripts = [
- (troop_set_slot, "trp_npc8", slot_troop_morality_value, 3), #beheshtur
- (troop_set_slot, "trp_npc8", slot_troop_2ary_morality_type, -1),
- (troop_set_slot, "trp_npc8", slot_troop_2ary_morality_value, 0),
- - (troop_set_slot, "trp_npc8", slot_troop_personalityclash_object, "trp_npc12"), #matheld
- + (troop_set_slot, "trp_npc8", slot_troop_personalityclash_object, "trp_npc12"), #matheld - jeremus
- (troop_set_slot, "trp_npc8", slot_troop_personalityclash2_object, "trp_npc3"), #matheld - ymira
- (troop_set_slot, "trp_npc8", slot_troop_personalitymatch_object, "trp_npc13"), #matheld - nizar
- (troop_set_slot, "trp_npc8", slot_troop_home, "p_sea_raider_spawn_point_2"), #Gundig's Point
- @@ -33654,7 +33768,7 @@ scripts = [
- (troop_set_slot, "trp_npc12", slot_troop_morality_value, 3),
- (troop_set_slot, "trp_npc12", slot_troop_2ary_morality_type, -1),
- (troop_set_slot, "trp_npc12", slot_troop_2ary_morality_value, 0),
- - (troop_set_slot, "trp_npc12", slot_troop_personalityclash_object, "trp_npc8"), #jerem
- + (troop_set_slot, "trp_npc12", slot_troop_personalityclash_object, "trp_npc8"), #jeremus - matheld
- (troop_set_slot, "trp_npc12", slot_troop_personalityclash2_object, "trp_npc15"), #jeremus - artimenner
- (troop_set_slot, "trp_npc12", slot_troop_personalitymatch_object, "trp_npc6"), #jeremus - firenz
- (troop_set_slot, "trp_npc12", slot_troop_home, "p_castle_16"), #undetermined #University
- @@ -33671,7 +33785,7 @@ scripts = [
- (troop_set_slot, "trp_npc13", slot_troop_morality_value, 3),
- (troop_set_slot, "trp_npc13", slot_troop_2ary_morality_type, -1),
- (troop_set_slot, "trp_npc13", slot_troop_2ary_morality_value, 0),
- - (troop_set_slot, "trp_npc13", slot_troop_personalityclash_object, "trp_npc9"), #nizar
- + (troop_set_slot, "trp_npc13", slot_troop_personalityclash_object, "trp_npc9"), #nizar - alayen
- (troop_set_slot, "trp_npc13", slot_troop_personalityclash2_object, "trp_npc6"), #nizar - firenz
- (troop_set_slot, "trp_npc13", slot_troop_personalitymatch_object, "trp_npc8"), #nizar - matheld
- (troop_set_slot, "trp_npc13", slot_troop_home, "p_castle_15"), #Ergellon Castle
- @@ -33688,7 +33802,7 @@ scripts = [
- (troop_set_slot, "trp_npc14", slot_troop_morality_value, 4),
- (troop_set_slot, "trp_npc14", slot_troop_2ary_morality_type, tmt_egalitarian),
- (troop_set_slot, "trp_npc14", slot_troop_2ary_morality_value, -1),
- - (troop_set_slot, "trp_npc14", slot_troop_personalityclash_object, "trp_npc3"), #lezalit
- + (troop_set_slot, "trp_npc14", slot_troop_personalityclash_object, "trp_npc3"), #lezalit - ymira
- (troop_set_slot, "trp_npc14", slot_troop_personalityclash2_object, "trp_npc10"), #lezalit - bunduk
- (troop_set_slot, "trp_npc14", slot_troop_personalitymatch_object, "trp_npc15"), #lezalit - artimenner
- (troop_set_slot, "trp_npc14", slot_troop_home, "p_castle_18"), #Ismirala Castle
- @@ -33719,7 +33833,7 @@ scripts = [
- (troop_set_slot, "trp_npc16", slot_troop_morality_value, 4),
- (troop_set_slot, "trp_npc16", slot_troop_2ary_morality_type, tmt_humanitarian),
- (troop_set_slot, "trp_npc16", slot_troop_2ary_morality_value, -1),
- - (troop_set_slot, "trp_npc16", slot_troop_personalityclash_object, "trp_npc15"), #klethi
- + (troop_set_slot, "trp_npc16", slot_troop_personalityclash_object, "trp_npc15"), #klethi - artimenner
- (troop_set_slot, "trp_npc16", slot_troop_personalityclash2_object, "trp_npc1"), #klethi - borcha
- (troop_set_slot, "trp_npc16", slot_troop_personalitymatch_object, "trp_npc7"), #deshavi - klethi
- (troop_set_slot, "trp_npc16", slot_troop_home, "p_village_20"), #Uslum
- @@ -40842,14 +40956,22 @@ scripts = [
- (display_message, "str_s3_marries_s4_at_s5"),
- (try_end),
- - (troop_set_slot, ":bride", slot_troop_spouse, ":groom"),
- - (troop_set_slot, ":groom", slot_troop_spouse, ":bride"),
- -
- + (try_begin),
- + (neg|eq, ":groom", "trp_player"),
- + (troop_set_slot, ":bride", slot_troop_spouse, ":groom"),
- + (troop_set_slot, ":groom", slot_troop_spouse, ":bride"),
- + (else_try),
- + (troop_set_slot, ":bride", slot_troop_spouse, "trp_player"),
- + (neg|troop_slot_ge, "trp_player", slot_troop_spouse, kingdom_ladies_begin),
- + (troop_set_slot, ":groom", slot_troop_spouse, ":bride"),
- + (try_end),
- #Break groom's romantic relations
- - (try_for_range, ":love_interest_slot", slot_troop_love_interest_1, slot_troop_love_interests_end),
- - (troop_set_slot, ":groom", ":love_interest_slot", 0),
- + (try_begin),
- + (neg|eq, ":groom", "trp_player"),
- + (try_for_range, ":love_interest_slot", slot_troop_love_interest_1, slot_troop_love_interests_end),
- + (troop_set_slot, ":groom", ":love_interest_slot", 0),
- + (try_end),
- (try_end),
- -
- #Break bride's romantic relations
- (try_for_range, ":active_npc", active_npcs_begin, active_npcs_end),
- (try_for_range, ":love_interest_slot", slot_troop_love_interest_1, slot_troop_love_interests_end),
- @@ -40900,16 +41022,16 @@ scripts = [
- (try_end),
- - (try_begin),
- - (eq, ":groom", "trp_player"),
- - (check_quest_active, "qst_visit_lady"),
- - (call_script, "script_abort_quest", "qst_visit_lady", 0),
- - (try_end),
- - (try_begin),
- - (eq, ":groom", "trp_player"),
- - (check_quest_active, "qst_duel_courtship_rival"),
- - (call_script, "script_abort_quest", "qst_duel_courtship_rival", 0),
- - (try_end),
- +# (try_begin),
- +# (eq, ":groom", "trp_player"),
- +# (check_quest_active, "qst_visit_lady"),
- +# (call_script, "script_abort_quest", "qst_visit_lady", 0),
- +# (try_end),
- +# (try_begin),
- +# (eq, ":groom", "trp_player"),
- +# (check_quest_active, "qst_duel_courtship_rival"),
- +# (call_script, "script_abort_quest", "qst_duel_courtship_rival", 0),
- +# (try_end),
- (try_begin),
- @@ -40946,6 +41068,10 @@ scripts = [
- (try_end),
- (try_end),
- + (try_begin),
- + (eq, ":groom", "trp_player"),
- + (troop_set_slot, ":bride", slot_troop_cur_center, "$g_player_court"),
- + (try_end),
- (try_begin),
- @@ -43634,10 +43760,11 @@ scripts = [
- (try_begin),
- (eq, "$cheat_mode", 2),
- - (gt, ":strongest_kingdom", 1),
- + (ge, ":strongest_kingdom", 1),
- (str_store_faction_name, s4, ":strongest_kingdom"),
- (assign, reg3, ":score_to_beat"),
- (display_message, "@{!}DEBUG - {s4} strongest kingdom with {reg3} strength"),
- + (display_message,s18),
- (try_end),
- diff -rupN 1/module_strings.py 2/module_strings.py
- --- 1/module_strings.py 2013-07-11 23:59:34.000000000 -0400
- +++ 2/module_strings.py 2014-12-01 00:35:27.000000000 -0500
- @@ -3594,7 +3594,7 @@ We apologize sincerely if you contribute
- ("i_do_so_enjoy_speaking_to_you_but_as_a_daughter_of_good_family_i_must_protect_my_reputation_", "I do so enjoy speaking to you. But as a daughter of good family, I must protect my reputation. "),
- ("although_it_is_kind_of_you_to_pay_me_such_attentions_i_suspect_that_you_might_find_other_ladies_who_may_be_more_inclined_to_return_your_affection", "Although it is kind of you to pay me such attentions, I suspect that you might find other ladies who may be more inclined to return your affection."),
- ("as_flattered_as_i_am_by_your_attentions_perhaps_you_should_seek_out_another_lady_of_somewhat_shall_we_say_different_tastes", "As flattered as I am by your attentions, perhaps you should seek out another lady of somewhat... shall we say... different tastes."),
- - ("as_flattered_as_i_am_by_your_attentions_i_am_a_daughter_of_good_family_and_must_be_aware_of_my_reputation_it_is_not_seemly_that_i_converse_too_much_at_one_time_with_one_man_i_am_sure_you_understand_now_if_you_will_excuse_me", "As flattered as I am by your attentions, I am a daughter of good family and must be aware of my reputation. It is not seemly that I converse too much at one time with one man. I am sure you understand. Now, if you will excuse me..."),
- + ("as_flattered_as_i_am_by_your_attentions_i_am_a_daughter_of_good_family_and_must_be_aware_of_my_reputation_it_is_not_seemly_that_i_converse_too_much_at_one_time_with_one_man_i_am_sure_you_understand_now_if_you_will_excuse_me", "As flattered as I am by your attentions, I am a daughter of good family and must be aware of my reputation. It is not seemly that I converse too much at one time with one suitor. I am sure you understand. Now, if you will excuse me..."),
- ("very_well__i_will_let_you_choose_the_time", "Very well -- I will let you choose the time."),
- ("good_i_am_glad_that_you_have_abandoned_the_notion_of_pushing_me_into_marriage_before_i_was_ready", "Good! I am glad that you have abandoned the notion of pushing me into marriage before I was ready."),
- ("rival_found_s4_reg0_relation", "{!}DEBUG : Rival found: {s4} ({reg0} relation)"),
- @@ -3611,7 +3611,7 @@ We apologize sincerely if you contribute
- ("hmm_youre_a_bold_one_but_i_like_that_", "Hmm. You're a bold one, but I like that. "),
- ("ah_well_they_all_say_that_but_no_matter_a_compliment_well_delivered_is_at_least_a_good_start_", "Ah, well, they all say that. But no matter. A compliment well delivered is at least a good start. "),
- ("oh_do_you_mean_that_such_a_kind_thing_to_say", "Oh! Do you mean that? Such a kind thing to say!"),
- - ("you_are_a_most_gallant_young_man_", "You are a most gallant young man. "),
- + ("you_are_a_most_gallant_young_man_", "You are a most gallant young {man/lady}. "),
- ("_do_come_and_see_me_again_soon", " Do come and see me again soon."),
- ("you_intend_to_ask_s12_for_permission_to_marry_s15", "You intend to ask {s12} for permission to marry {s15}."),
- ("you_intend_to_ask_s12_to_pressure_s10_to_marry_you", "You intend to ask {s12} to pressure {s10} to marry you."),
- @@ -4091,4 +4091,5 @@ We apologize sincerely if you contribute
- ("ranged_weapons_are_disallowed", "Ranged weapons are disallowed."),
- ("ranged_weapons_are_allowed", "Ranged weapons are allowed."),
- ("duel_starts_in_reg0_seconds", "Duel starts in {reg0} seconds..."),
- + ("concubine", "consort"),
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement