Update new_quest_lv7.quest

- Recompute new_quest_lv7_DestMapIndex in the goto_oldwomans_sister state based on the player’s empire.
- Restrict the 9006.chat handler in goto_oldwomans_sister with
  `pc.get_map_index() == new_quest_lv7_DestMapIndex`, so the bouquet
  can only be delivered to the sister in the correct second village
  (Jayang/Bokjung/Bakra) and not to the old woman in the first village.

This prevents completing the sister step by talking to the wrong 9006 NPC
after briefly entering and leaving the destination map, and aligns the
behavior with the intended narrative flow.
This commit is contained in:
ErLullo
2026-01-13 09:53:12 +01:00
committed by GitHub
parent bbc8ac9d8d
commit a1ea9e3174

View File

@@ -381,9 +381,19 @@ quest new_quest_lv7 begin
send_letter(gameforge.new_quest_lv7._020_say_title) send_letter(gameforge.new_quest_lv7._020_say_title)
q.start() q.start()
q.set_title(gameforge.new_quest_lv7._020_say_title) q.set_title(gameforge.new_quest_lv7._020_say_title)
-- FIX: recompute destination map index to ensure correct map for the sister
new_quest_lv7_DestMapIndex = 99
if pc.get_empire() == 1 then -- = Shinsoo
new_quest_lv7_DestMapIndex = 3 -- = Yayang
elseif pc.get_empire() == 2 then -- = Chunjo
new_quest_lv7_DestMapIndex = 23 -- = Bokjung
elseif pc.get_empire() == 3 then -- = Jinno
new_quest_lv7_DestMapIndex = 43 -- = Bakra
end
end end
when 9006.chat.gameforge.new_quest_lv7._020_say_title begin when 9006.chat.gameforge.new_quest_lv7._020_say_title with pc.get_map_index() == new_quest_lv7_DestMapIndex begin
if pc.count_item(30172) >= 1 then -- has flowers in inventory if pc.count_item(30172) >= 1 then -- has flowers in inventory
target.delete("__TARGET3__") target.delete("__TARGET3__")
say_title(gameforge.new_quest_lv7._020_say_title) -- yellow say_title(gameforge.new_quest_lv7._020_say_title) -- yellow