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