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