Puzzle Chain
Chain of puzzles -
Fields
| Field | Type | Default | Description |
|---|---|---|---|
puzzleEntryIds | List<String> | empty | List of puzzle entry IDs to chain in order. |
onChainComplete | Ref<TriggerableEntry> | — | Trigger fired when the entire chain is completed. |
onChainFail | Ref<TriggerableEntry> | — | Trigger fired when a puzzle in the chain fails. |
resetOnFail | Var<Boolean> | true | If true, failing any puzzle resets the entire chain. |
Common TypeWriter fields (criteria, modifiers)
| Field | Type | Default | Description |
|---|---|---|---|
criteria | List<Criteria> | empty | — |
modifiers | List<Modifier> | empty | — |
How to use it
A chain runs several puzzles one after the other. puzzleEntryIds lists the entry ids of the puzzles in order. Start it with /typewriter puzzle chain <id> (the entry id or the name of the chain): the player joins the first puzzle, and each solved puzzle starts the next one. onChainComplete runs after the last puzzle. When a puzzle fails (wrong reset, timeout, attempts or lifespan), onChainFail runs, and with resetOnFail on the chain is cancelled for the player. The chain refuses to start if one of the ids is not a registered puzzle. In this release, the command is the only way to start a chain.