explain how to use this mod in other NPC mods

This commit is contained in:
Sokomine 2022-09-23 23:24:06 +02:00
parent 90dc2d34d5
commit 5dbf91800f

View File

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