mayor.yaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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: "Happy Spring Festival!"
  21. to: festival-spring-wishes
  22. when:
  23. op: exists
  24. path: player.flag.festivalSpring
  25. - text: "Summer Market going well?"
  26. to: festival-summer-wishes
  27. when:
  28. op: exists
  29. path: player.flag.festivalSummer
  30. - text: "Cheers for the Autumn Harvest!"
  31. to: festival-autumn-wishes
  32. when:
  33. op: exists
  34. path: player.flag.festivalAutumn
  35. - text: "Winter Festival is magical this year."
  36. to: festival-winter-wishes
  37. when:
  38. op: exists
  39. path: player.flag.festivalWinter
  40. - text: "Got anything for me?"
  41. to: quest-reward
  42. when:
  43. op: exists
  44. path: player.questProgress.starter-quest
  45. - text: "Tell me about fishing."
  46. to: fishing-tip
  47. when:
  48. op: exists
  49. path: player.questProgress.mayor-talk-quest
  50. - text: "How do I restore the farm?"
  51. to: restoration-goal
  52. when:
  53. op: exists
  54. path: player.questProgress.mayor-talk-quest
  55. - text: "The farm is restored!"
  56. to: mayor-victory
  57. when:
  58. op: exists
  59. path: player.flag.victory
  60. - text: "I am just passing through."
  61. to: farewell
  62. - id: farming-tips
  63. text: "Mayor: Till a plot, sow parsnip seeds, and water them daily. A mature parsnip sells for 30g at the store."
  64. to: greeting
  65. - id: chicken-tips
  66. text: "Mayor: Build a coop on the grass, get a chicken, and feed it every day. A fed chicken lays eggs."
  67. to: greeting
  68. - id: quest-reward
  69. text: "Mayor: You harvested three parsnips! Here is a little something for the road."
  70. actions:
  71. - action: give-item
  72. itemId: egg
  73. qty: 2
  74. to: farewell
  75. - id: fishing-tip
  76. text: "Mayor: Fish the pond by interacting with the water. You look well-rested today — have an egg for the journey."
  77. actions:
  78. - action: give-item
  79. itemId: egg
  80. qty: 1
  81. to: greeting
  82. - id: restoration-goal
  83. 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."
  84. to: greeting
  85. - id: mayor-victory
  86. 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."
  87. actions:
  88. - action: give-item
  89. itemId: pumpkin
  90. qty: 2
  91. - action: play-sound
  92. sound: harvest
  93. to: farewell
  94. - id: festival-spring-wishes
  95. text: "Mayor: Ah yes, Spring Festival! The petals are falling everywhere. Take a walk down the riverbank and enjoy!"
  96. to: greeting
  97. - id: festival-summer-wishes
  98. text: "Mayor: Summer Market! Come get a fireworks ticket at the general store. Show starts at dusk."
  99. to: greeting
  100. - id: festival-autumn-wishes
  101. text: "Mayor: Happy Autumn Harvest! This year's crops were impressive thanks to you. Get a harvest charm as thanks."
  102. to: greeting
  103. - id: festival-winter-wishes
  104. text: "Mayor: Winter Festival magic is in the air! Take home a snow crystal before they melt."
  105. to: greeting
  106. - id: farewell
  107. text: "Mayor: Good luck, farmer!"