This namespace contains hook events fired by the system.
All hooks introduced by the system are prefixed with pf1 to namespace them.
Each hook contains a remark denoting whether it is called with Hooks.callAll
or Hooks.call.
Only hooks that are called with Hooks.call can be stopped by returning false from the callback.
Example: Registering callback
Hooks.on("pf1PostReady", () => { console.log("The system is now ready."); });
Example: Stopping a process by returning `false`
Hooks.on("pf1PreActorRollSkill", () => { returnfalse; // No chat message will be posted });
This namespace contains hook events fired by the system. All hooks introduced by the system are prefixed with
pf1
to namespace them. Each hook contains a remark denoting whether it is called withHooks.callAll
orHooks.call
. Only hooks that are called withHooks.call
can be stopped by returningfalse
from the callback.Example: Registering callback
Example: Stopping a process by returning `false`