From 292c299b5c5a463bdbc61b972dc36658df0d3bf8 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Mon, 25 Apr 2022 15:45:51 +0200 Subject: [PATCH] show the npc's start dialog instead of d_generic_start_dialog --- fs_talkdialog.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fs_talkdialog.lua b/fs_talkdialog.lua index b29aae7..63d4498 100644 --- a/fs_talkdialog.lua +++ b/fs_talkdialog.lua @@ -320,11 +320,12 @@ yl_speak_up.get_fs_talkdialog = function(player, n_id, d_id, alternate_text, rec ]]-- local c_d_id - - if d_id ~= nil then + -- the generic start dialog contains only those options that are generic; + -- choose the right start dialog of the NPC + if(d_id ~= nil and d_id ~= "d_generic_start_dialog") then active_dialog = dialog.n_dialogs[d_id] c_d_id = d_id - elseif yl_speak_up.speak_to[pname].d_id ~= nil then + elseif(d_id and d_id ~= "d_generic_start_dialog" and yl_speak_up.speak_to[pname].d_id ~= nil) then c_d_id = yl_speak_up.speak_to[pname].d_id active_dialog = dialog.n_dialogs[c_d_id] elseif dialog.n_dialogs ~= nil then