| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- # Mayor dialogue: choices, a condition-gated branch, and action nodes.
- # The "Got anything for me?" choice only appears once the starter quest is
- # complete (player.questProgress.starter-quest exists); choosing it enters a
- # node that grants eggs. The "Fishing tip" branch (D29) only appears once the
- # mayor-talk-quest is complete (player.questProgress.mayor-talk-quest exists).
- id: mayor
- startNode: greeting
- nodes:
- - id: greeting
- text: "Mayor: Welcome to Pinefield Valley! How can I help?"
- choices:
- - text: "Any farming tips?"
- to: farming-tips
- actions:
- - action: give-item
- itemId: parsnip-seed
- qty: 1
- - text: "Tell me about chickens."
- to: chicken-tips
- - text: "Got anything for me?"
- to: quest-reward
- when:
- op: exists
- path: player.questProgress.starter-quest
- - text: "Tell me about fishing."
- to: fishing-tip
- when:
- op: exists
- path: player.questProgress.mayor-talk-quest
- - text: "I am just passing through."
- to: farewell
- - id: farming-tips
- text: "Mayor: Till a plot, sow parsnip seeds, and water them daily. A mature parsnip sells for 30g at the store."
- to: greeting
- - id: chicken-tips
- text: "Mayor: Build a coop on the grass, get a chicken, and feed it every day. A fed chicken lays eggs."
- to: greeting
- - id: quest-reward
- text: "Mayor: You harvested three parsnips! Here is a little something for the road."
- actions:
- - action: give-item
- itemId: egg
- qty: 2
- to: farewell
- - id: fishing-tip
- text: "Mayor: Fish the pond by interacting with the water. You look well-rested today — have an egg for the journey."
- actions:
- - action: give-item
- itemId: egg
- qty: 1
- to: greeting
- - id: farewell
- text: "Mayor: Good luck, farmer!"
|