From fca1cf52519a630e9720f874c24528e0fc5cdb3d Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 14 May 2021 23:04:06 +0200 Subject: [PATCH] changed initial text in order to demonstrate how the replacements work --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index e5941fc..35bb3b3 100644 --- a/functions.lua +++ b/functions.lua @@ -2662,8 +2662,8 @@ minetest.register_on_player_receive_fields( -- create a new dialog f.d_id = yl_speak_up.text_new_dialog_id -- ...with this text - f.d_text = "Hi. I am "..tostring(fields.n_npc)..". I don't know much yet.\n".. - "Hopefully "..tostring(pname).." will teach me to talk soon." + f.d_text = "$GOOD_DAY$ $PLAYER_NAME$,\nI am $NPC_NAME$. I don't know much yet.\n".. + "Hopefully $OWNER_NAME$ will teach me to talk soon." -- it is the first, initial dialog f.d_sort = "0" f.n_npc = fields.n_npc