indexAction
interface Action
import { type Action } from ".";

An Action a Character can pursue

See ./action-example.ts for examples of how to author Actions.

Properties

reference: ActionReference

An unique identifier for the Action

title: string

The title as it appears in the UI

description: string

The description as it appears in the UI

defaultWeight: number

A number specifying the default weight of the Action – the initial value passed into PossibilityModifiers

possibilityModifiers: readonly PossibilityModifier[]

A list of modifiers which determine whether an action is possible

probabilityModifiers: readonly ProbabilityModifier[]

A list of modifiers which determine how likely the choice of a possible Action is

paths: readonly [Path, ...Path[]]

A list of paths a chosen Action may take