From fab531683735cd0e7b00dbca844764b98e907c5f Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 22 Mar 2024 19:47:27 +0100 Subject: [PATCH] fixed error message when no dialog is found --- fs/fs_talkdialog.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/fs_talkdialog.lua b/fs/fs_talkdialog.lua index 18ac510..e6115c6 100644 --- a/fs/fs_talkdialog.lua +++ b/fs/fs_talkdialog.lua @@ -480,8 +480,10 @@ yl_speak_up.get_fs_talkdialog = function(player, n_id, d_id, alternate_text, rec -- do not crash in case of error if(not(active_dialog)) then - return "size[6,2]".. - "label[0.2,0.5;Ups! Something went wrong. Please try again.]" + return "size[10,3]".. + "label[0.2,0.5;Ups! Something went wrong. No dialog found.\n".. + "Please talk to the NPC by right-clicking again.]".. + "button_exit[4.5,1.6;1,0.9;exit;Exit]" end -- how often has the player visted this dialog?