NarraLeaf

ChainedActions

The array type produced by chaining calls on a character, scene, or other game element into one action sequence.

type ChainedAction = Proxied<GameElement, Chained<LogicAction.Actions>>;
type ChainedActions = (Proxied<LogicAction.GameElement, Chained<LogicAction.Actions>> | LogicAction.Actions)[];

Example:

[
    character1
        .say("Hello")
        .say("World"),
    scene1
        .jumpTo(scene2),
    character2
        .say("World")
] satisfies ChainedActions;