gate
Attach a named availability condition to an exact dialogue option at any depth, without rewriting the graph manually.
story.gate
Attach a named availability condition to an exact dialogue option at any depth, without rewriting the graph manually.
Signature: gate(manifest: string, graph: string, node: string, option: string, condition: string, expectedRevision: number, lockedText: string?).
Returns {exitCode: 0, data: ...} on success or a nonzero exit code and message on failure. Use describe_tool for the live argument schema. See the package authoring guide for the content format and workflow.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2nocheck
gate(manifest: string, graph: string, node: string, option: string, condition: string, expectedRevision: number, lockedText: string?) → any
Attach a named availability condition to an exact dialogue option at any depth, without rewriting the graph manually.
| arg | type | description |
|---|---|---|
| manifest | string | Absolute path to the project's caller-chosen JSON manifest. |
| graph | string | Stable dialogue graph ID. |
| node | string | Stable node ID within the graph, independent of dialogue depth. |
| option | string | Stable option ID within the choice node. |
| condition | string | Existing named condition ID. |
| expectedRevision | number | Revision last read by the caller; 0 creates a new save slot. Content and save revisions are separate. |
| lockedText | string? | Optional player-facing explanation for an unavailable option. |
contentSub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.