Skip to content

LSDE Dialog Engine / ConditionContext

Interface: ConditionContext

Defined in: types.ts:647

Context for CONDITION block handlers.

Extends

Properties

character

character: BlockCharacter | undefined

Defined in: types.ts:623

Character resolved by the onResolveCharacter callback for this block, or undefined if none.

Inherited from

BaseBlockContext.character


conditionGroups

conditionGroups: RuntimeConditionGroup[]

Defined in: types.ts:653

All condition groups with optional pre-evaluated results. When onResolveCondition() is configured, each group has result: true | false. Without a resolver, result is undefined.


preventGlobalHandler

preventGlobalHandler: () => void

Defined in: types.ts:625

Prevent the global (Tier 1) handler from executing after this scene handler.

Returns

void

Inherited from

BaseBlockContext.preventGlobalHandler


resolve

resolve: (result) => void

Defined in: types.ts:660

Resolve the condition evaluation result.

  • boolean: legacy single-group mode — true → port index 0, false → port index 1.
  • number: switch mode — >= 0 follows the matching case port, < 0 follows default.
  • number[]: dispatcher mode — all matching case indices fire as async tracks, default is the main track.

Parameters

result

number | boolean | number[]

Returns

void