Optionaldata: CreateDataInitial data from which to construct the Combat
Optionalcontext: ConstructionContextConstruction context options
Get current initiative.
InternalDetermine skipped turns
Origin combat time frame
From round
From turn
Update context
InternalHandle effects of skipped turns.
Combatant IDs of those whose turn was skipped.
Combat update context
Update data
Context options
Triggering user ID
InternalChanged data
Context
Triggering user
InternalHandle end of turn
Origin time frame
Round on which the turn ended
Turn that ended
Context
InternalProcess end of durations based on initiative.
Only active GM processes these to avoid conflicts and logic bloat.
Optionalcontext: object = {}Update context
Process current combatant: expire active effects & buffs.
Update data
Context options
Combatant IDs to roll initiative for.
Optionaloptions: {Additional options
Optionalbonus?: stringFormula for bonus to initiative
Optionald20?: stringd20 override. Passed to Combatant.getInitiativeRoll
Optionalformula?: stringFormula override. Passed to Combatant.getInitiativeRoll
OptionalmessageOptions?: objectAdditional data for created chat message
OptionalrollMode?: stringRoll mode override.
OptionalskipDialog?: booleanSkip roll dialog Synced with Foundry v12.331
OptionalupdateTurn?: booleanAdjust current turn if the new init would shift it
StaticshowOptionaloptions: { bonus?: string; check?: boolean; d20?: string; name: string } = {}Additional options
Optionalbonus?: stringBonus formula override
Optionalcheck?: booleanIf false, no base d20 check is provided
Optionald20?: stringFormula override
Name of the roller
Combat manager extension