grailknighthero
Sergeant Knight

Lumos 说:
The script and dialogue in question doesn't do this correctly though. The script sets the troop type to reg4 and ":relation_strength" to reg0, and then the dialogue displays this:
"I received the gift, presented to me through my {s11} {s10}. As dear as {reg?she:he} is to me, however, I cannot forget our differences."
Dialogue in question is:
[anyone,"lord_start",[
(check_quest_active, "qst_offer_gift"),
(quest_slot_eq, "qst_offer_gift", slot_quest_target_troop, "$g_talk_troop"),
(quest_slot_eq, "qst_offer_gift", slot_quest_current_state, 2),
(quest_get_slot, ":giver_troop", "qst_offer_gift", slot_quest_giver_troop),
(str_store_troop_name, s10, ":giver_troop"),
(call_script, "script_troop_get_family_relation_to_troop", ":giver_troop", "$g_talk_troop"),
],
"I received the gift, presented to me through my {s11} {s10}. As dear as {reg?she:he} is to me, however, I cannot forget our differences.", "close_window",
[
(assign, "$g_leave_encounter", 1),
(call_script, "script_end_quest", "qst_offer_gift"),
]],
A few dialogues above this they have it correct:
[anyone,"lord_start",[
(check_quest_active, "qst_offer_gift"),
(quest_slot_eq, "qst_offer_gift", slot_quest_target_troop, "$g_talk_troop"),
(quest_slot_eq, "qst_offer_gift", slot_quest_current_state, 2),
(store_random_in_range, ":random", 3),
(neq, ":random", 0),
(quest_get_slot, ":giver_troop", "qst_offer_gift", slot_quest_giver_troop),
(str_store_troop_name, s10, ":giver_troop"),
(call_script, "script_troop_get_family_relation_to_troop", ":giver_troop", "$g_talk_troop"),
],
"I received the gift, presented to me through my {s11} {s10}. For {reg4?her:his} sake, I am willing to let bygones be bygones.", "close_window", [
(call_script, "script_troop_get_relation_with_troop", "$g_talk_troop", "trp_player"),
(store_sub, ":difference", 0, reg0),
(val_max, ":difference", 2),
(call_script, "script_troop_change_relation_with_troop", "$g_talk_troop", "trp_player", ":difference"),
(call_script, "script_end_quest", "qst_offer_gift"),
(assign, "$g_leave_encounter", 1),
]],
Nit picky bug that I doubt anyone will ever run into while playing native because there aren't any lords that are female in native. If someone sets a troop occupation slot to slto_kingdom_hero then there will be an issue.









