Pathfinder 1e for Foundry VTT
    Preparing search index...

    Class RollPF

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • formula: string

        The string formula to parse

      • Optionaldata: EmptyObject

        The data object against which to parse attributes within the formula (default: {})

      • Optionaloptions: Options

        (default: {})

      Returns RollPF

    Properties

    CHAT_TEMPLATE: string = "systems/pf1/templates/chat/roll.hbs"

    The HTML template path used to render a complete Roll object to the chat log

    "templates/dice/roll.html"

    Methods

    • Render the tooltip HTML for a RollPF instance

      Returns Promise<string>

      The rendered HTML tooltip as a string

    • Synced with Foundry v12.331

      Parameters

      • __namedParameters: { isPrivate?: boolean; template?: any } = {}

      Returns Promise<string>

    • Synchronous and thrown error consuming roll evaluation.

      Parameters

      • formula: string

        Roll formula

      • rollData: object = {}

        Data supplied to roll

      • context: object

        If error occurs, this will be included in the error message.

      • Optionaloptions: { suppressError?: boolean } = {}

        Additional options

        • OptionalsuppressError?: boolean

          If true, no error will be printed even if one occurs.

      • OptionalevalOpts: object = {}

        Additional options to pass to Roll.evaluate()

      Returns Promise<RollPF>

      • Evaluated roll, or placeholder if error occurred.
      • Returned roll has .err set if an error occurred during evaluation.
      • If error occurs, the returned roll will have its formula replaced.
    • Synchronous and thrown error consuming roll evaluation.

      Parameters

      • formula: string

        Roll formula

      • OptionalrollData: object = {}

        Data supplied to roll

      • Optionalcontext: any

        If error occurs, this will be included in the error message.

      • Optionaloptions: { suppressError?: boolean } = {}

        Additional options

        • OptionalsuppressError?: boolean

          If true, no error will be printed

      • OptionalevalOpts: object = {}

        Additional options to pass to Roll.evaluate()

      Returns RollPF

      • Evaluated roll
      • Returned roll has .err set if an error occurred during evaluation.
      • If error occurs, the returned roll will have its formula replaced.