changed initial text in order to demonstrate how the replacements work

This commit is contained in:
Sokomine 2021-05-14 23:04:06 +02:00
parent d1e53e949f
commit fca1cf5251

View File

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