This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
---
|
||||
id: sample-action
|
||||
verbs: [use]
|
||||
requires:
|
||||
allVisibleOrHeld:
|
||||
- "[[sample-item]]"
|
||||
setsFlags:
|
||||
sampleActionDone: true
|
||||
---
|
||||
|
||||
## success
|
||||
The action succeeds.
|
||||
|
||||
## missingRequired
|
||||
You do not see what you need.
|
||||
@@ -0,0 +1,28 @@
|
||||
---
|
||||
id: sample-encounter
|
||||
startsIn: "[[sample-room]]"
|
||||
initialPhase: waiting
|
||||
aliases: [figure]
|
||||
onResolved:
|
||||
setFlags:
|
||||
sampleEncounterResolved: true
|
||||
defaultWrongVerbNarration: wrong-verb
|
||||
phases:
|
||||
waiting:
|
||||
description: waiting
|
||||
transitions:
|
||||
- verb: wait
|
||||
chipLabel: WAIT
|
||||
chipCommand: wait
|
||||
narration: waited
|
||||
to: resolved
|
||||
---
|
||||
|
||||
## waiting
|
||||
The figure waits.
|
||||
|
||||
## waited
|
||||
You wait. The figure is gone.
|
||||
|
||||
## wrong-verb
|
||||
That does not change what waits here.
|
||||
@@ -0,0 +1,29 @@
|
||||
---
|
||||
id: sample-game
|
||||
title: Sample Game
|
||||
description: A small text adventure.
|
||||
startingRoom: "[[sample-room]]"
|
||||
startingInventory: []
|
||||
endingPriority:
|
||||
- sample-ending
|
||||
transcriptCap: 200
|
||||
---
|
||||
|
||||
## opening-art
|
||||
SAMPLE GAME
|
||||
|
||||
## help
|
||||
Type short commands to act in the world.
|
||||
|
||||
Common commands:
|
||||
look
|
||||
n, s, e, w, u, d
|
||||
take item
|
||||
examine item
|
||||
inventory
|
||||
wait
|
||||
undo
|
||||
restart
|
||||
|
||||
## ended
|
||||
The story has ended. Type `restart` or `undo`.
|
||||
@@ -0,0 +1,9 @@
|
||||
---
|
||||
id: sample-item
|
||||
names: ["sample item", "item"]
|
||||
short: "a sample item"
|
||||
takeable: true
|
||||
initialState: {}
|
||||
---
|
||||
|
||||
Describe the item when the player examines it.
|
||||
@@ -0,0 +1,22 @@
|
||||
---
|
||||
id: sample-room
|
||||
title: "[ Sample Room ]"
|
||||
exitN: null
|
||||
exitS: null
|
||||
exitE: null
|
||||
exitW: null
|
||||
exitU: null
|
||||
exitD: null
|
||||
items: []
|
||||
encounter: null
|
||||
safe: false
|
||||
---
|
||||
|
||||
## first-visit
|
||||
Describe what the player notices the first time they enter.
|
||||
|
||||
## revisit
|
||||
Describe the room after it has already been seen.
|
||||
|
||||
## examined
|
||||
Describe closer inspection of the room.
|
||||
Reference in New Issue
Block a user