show the npc's start dialog instead of d_generic_start_dialog

This commit is contained in:
Sokomine 2022-04-25 15:45:51 +02:00
parent 5c95c6ae6d
commit 292c299b5c

View File

@ -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