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. +