diff --git a/functions.lua b/functions.lua index 7cfba62..70661ad 100644 --- a/functions.lua +++ b/functions.lua @@ -1903,8 +1903,9 @@ yl_speak_up.add_new_dialog = function(dialog, pname) d_sort = next_id } -- store that there have been changes to this npc - table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], - "Dialog "..future_d_id..": New dialog added.") + -- (better ask only when the new dialog is changed) +-- table.insert(yl_speak_up.npc_was_changed[ yl_speak_up.edit_mode[pname] ], +-- "Dialog "..future_d_id..": New dialog added.") return future_d_id end @@ -2169,7 +2170,6 @@ yl_speak_up.edit_mode_apply_changes = function(pname, fields) for k, v in pairs(dialog.n_dialogs[ d_id ].d_options) do if( fields[ "text_option_"..k ] and fields[ "text_option_"..k ] ~= v.o_text_when_prerequisites_met ) then - -- TODO: delete option if text is empty -- store that there have been changes to this npc table.insert(yl_speak_up.npc_was_changed[ n_id ], "Dialog "..d_id..": The text for option "..tostring(k)..