If you want it to be just like the boo, you can use boo.lua.
npc-n.lua (this code does not need to be changed. NPC_ID is automatically filled in by the file name):
Code: Select all
local boo = require("npcs/ai/boo")
// npc initialization code
boo.register(NPC_ID, function() return true end)
The 2nd argument of boo.register is a function defining the condition under which it should chase. By just returning true, it will always chase.