simple-ink/data/main_story.yaml

53 lines
1.2 KiB
YAML

story_id: demo_story
start: intro
nodes:
- id: intro
text: |
你在雨夜醒来,口袋里只有一枚旧硬币。
前方有一扇铁门和一条小巷。
effects:
- coins = 1
options:
- text: 推开铁门
target: gate
- text: 走进小巷
target: alley
- id: alley
text: 你在小巷尽头发现一盏油灯。
options:
- text: 拿起油灯
target: gate
effects:
- flags += lamp
- text: 原路返回
target: intro
- id: gate
text: 铁门上有投币孔,门旁贴着模糊告示。
options:
- text: 投入硬币开门
target: archive
condition: coins >= 1
effects:
- coins -= 1
- text: 用油灯照亮告示
target: clue
condition: "'lamp' in flags"
- text: 放弃并离开
target: bad_end
- id: clue
text: 告示写着:真正的门在你身后。
options:
- text: 回头寻找暗门
target: archive
- id: archive
text: 你进入档案室,找到了真相。
end: true
- id: bad_end
text: 你转身离开,故事在雨中结束。
end: true