mayor.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Mayor dialogue: choices, a condition-gated branch, and action nodes.
  2. # The "Got anything for me?" choice only appears once the starter quest is
  3. # complete (player.questProgress.starter-quest exists); choosing it enters a
  4. # node that grants eggs. The "Fishing tip" branch (D29) only appears once the
  5. # mayor-talk-quest is complete (player.questProgress.mayor-talk-quest exists).
  6. id: mayor
  7. startNode: greeting
  8. nodes:
  9. - id: greeting
  10. text: "Mayor: Welcome to Pinefield Valley! How can I help?"
  11. choices:
  12. - text: "Any farming tips?"
  13. to: farming-tips
  14. actions:
  15. - action: give-item
  16. itemId: parsnip-seed
  17. qty: 1
  18. - text: "Tell me about chickens."
  19. to: chicken-tips
  20. - text: "Got anything for me?"
  21. to: quest-reward
  22. when:
  23. op: exists
  24. path: player.questProgress.starter-quest
  25. - text: "Tell me about fishing."
  26. to: fishing-tip
  27. when:
  28. op: exists
  29. path: player.questProgress.mayor-talk-quest
  30. - text: "I am just passing through."
  31. to: farewell
  32. - id: farming-tips
  33. text: "Mayor: Till a plot, sow parsnip seeds, and water them daily. A mature parsnip sells for 30g at the store."
  34. to: greeting
  35. - id: chicken-tips
  36. text: "Mayor: Build a coop on the grass, get a chicken, and feed it every day. A fed chicken lays eggs."
  37. to: greeting
  38. - id: quest-reward
  39. text: "Mayor: You harvested three parsnips! Here is a little something for the road."
  40. actions:
  41. - action: give-item
  42. itemId: egg
  43. qty: 2
  44. to: farewell
  45. - id: fishing-tip
  46. text: "Mayor: Fish the pond by interacting with the water. You look well-rested today — have an egg for the journey."
  47. actions:
  48. - action: give-item
  49. itemId: egg
  50. qty: 1
  51. to: greeting
  52. - id: farewell
  53. text: "Mayor: Good luck, farmer!"