Skip navigation links

See: Description

Packages 
Package Description
noppes.npcs.scripted  
noppes.npcs.scripted.constants  
noppes.npcs.scripted.roles  

Hook Params Description
Cancelable
Init event(ScriptEvent), world, npc Called when the npc spawns or respawns
Update event(ScriptEvent), world, npc Called as update tick (once every 10 ticks)
Interact event(ScriptEvent), world, npc, player Called when a player interacts with the npc yes
Dialog event(ScriptEvent), world, npc, player, dialog Called when a player opens a dialog from the npc
DialogClosed event(ScriptEvent), world, npc, player, dialog, option Called when a player selects a dialog option or closes a dialog
Damaged event(ScriptEventDamaged), world, npc Called when an npc gets attacked. Can be cancelled yes
Killed event(ScriptEventKilled), world, npc Called when an npc gets killed
Attack event(ScriptEventAttack), world, npc Called when an npc is going to attack yes
Target event(ScriptEventTarget), world, npc Called when an npc targets something yes
TargetLost event(ScriptEventTarget), world, npc
Called when an npc looses his target
Kills event(ScriptEvent), world, npc, target
Called when an npc kills something
Role event(ScriptEventRole), world, npc, player
Called by some roles
some
Collide event(ScriptEvent), world, npc, entity Called when an npc collides with an entity

Skip navigation links