From 5dbf91800fdd6739148cf8c0d368d8ca2ce67acf Mon Sep 17 00:00:00 2001 From: Sokomine Date: Fri, 23 Sep 2022 23:24:06 +0200 Subject: [PATCH] explain how to use this mod in other NPC mods --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6309b5a..7af96a1 100644 --- a/README.md +++ b/README.md @@ -446,3 +446,15 @@ its dialog text. The chat command /npc_talk_generic (requires privs priv) is used to list, add or remove NPC from the list of generic dialog/behaviour providers. + +Integration into your own NPC/mob mods +====================================== +In order to talk to NPC, you need to call + if(minetest.global_exists("yl_speak_up") and yl_speak_up.talk) then + yl_speak_up.talk(self, clicker) + return + end +in the function that your NPC executes in on_rightclick. +Note that capturing and placing of your NPC is *not* handled by yl_speak_up! +Use i.e. the lasso that came with your NPC mod. +