| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- # 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: "Happy Spring Festival!"
- to: festival-spring-wishes
- when:
- op: exists
- path: player.flag.festivalSpring
- - text: "Summer Market going well?"
- to: festival-summer-wishes
- when:
- op: exists
- path: player.flag.festivalSummer
- - text: "Cheers for the Autumn Harvest!"
- to: festival-autumn-wishes
- when:
- op: exists
- path: player.flag.festivalAutumn
- - text: "Winter Festival is magical this year."
- to: festival-winter-wishes
- when:
- op: exists
- path: player.flag.festivalWinter
- - 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: "How do I restore the farm?"
- to: restoration-goal
- when:
- op: exists
- path: player.questProgress.mayor-talk-quest
- - text: "The farm is restored!"
- to: mayor-victory
- when:
- op: exists
- path: player.flag.victory
- - 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: restoration-goal
- text: "Mayor: The old farm was abandoned for years. Restore it — earn 500 gold from your harvests and husbandry, and Pinefield Valley will live again. Mia the merchant should be passing through soon; she knows these lands well."
- to: greeting
- - id: mayor-victory
- text: "Mayor: Look at it — fields tilled and planted, animals fed, the coop and barn full. You've restored Pinefield Valley! The valley is yours, farmer. Well done."
- actions:
- - action: give-item
- itemId: pumpkin
- qty: 2
- - action: play-sound
- sound: harvest
- to: farewell
- - id: festival-spring-wishes
- text: "Mayor: Ah yes, Spring Festival! The petals are falling everywhere. Take a walk down the riverbank and enjoy!"
- to: greeting
- - id: festival-summer-wishes
- text: "Mayor: Summer Market! Come get a fireworks ticket at the general store. Show starts at dusk."
- to: greeting
- - id: festival-autumn-wishes
- text: "Mayor: Happy Autumn Harvest! This year's crops were impressive thanks to you. Get a harvest charm as thanks."
- to: greeting
- - id: festival-winter-wishes
- text: "Mayor: Winter Festival magic is in the air! Take home a snow crystal before they melt."
- to: greeting
- - id: farewell
- text: "Mayor: Good luck, farmer!"
|