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
pf1to namespace them. Each hook contains a remark denoting whether it is called withHooks.callAllorHooks.call. Only hooks that are called withHooks.callcan be stopped by returningfalsefrom the callback.Example
Registering callback
Example
Stopping a process by returning
false