ActionTriggerFn: (item?: SohlItem, actor?: SohlActor) => boolean

Predicate deciding whether an action is currently available. Invoked programmatically with the owning item and actor documents; the compiled expression sees their logic layer as itemLogic / actorLogic. Returns true when the action may run/appear. Compiled from data.trigger by compileTrigger.

Type declaration

    • (item?: SohlItem, actor?: SohlActor): boolean
    • Parameters

      • Optionalitem: SohlItem
      • Optionalactor: SohlActor

      Returns boolean