Scope passed to actions that start or resume an opposed test.

interface ContextScope {
    askBreakTies?: boolean;
    breakTies?: boolean;
    noChat?: boolean;
    priorTestResult?: null | sohl.entity.result.OpposedTestResult;
    situationalModifier?: number;
    skipDialog?: boolean;
    sourceSuccessTestResult?: sohl.entity.result.SuccessTestResult;
    targetToken?: SohlTokenDocument;
    title?: string;
    type?: string;
}

Properties

askBreakTies?: boolean

Show the Break Ties checkbox on the initiator's pre-roll dialog.

breakTies?: boolean

Whether a tie in this contest should be broken (the dialog's answer).

noChat?: boolean

Suppress chat output when set.

priorTestResult?: null | sohl.entity.result.OpposedTestResult

The opposed test being resumed, if any.

situationalModifier?: number

A situational modifier to apply to the source's test.

skipDialog?: boolean

Skip the pre-roll dialog when set.

sourceSuccessTestResult?: sohl.entity.result.SuccessTestResult

A pre-rolled source success test to reuse.

targetToken?: SohlTokenDocument

The contest's target token.

title?: string

Override the result title.

type?: string

The test type to run.