welcome.yaml 989 B

12345678910111213141516171819202122232425262728293031
  1. # Example dialogue demonstrating branches, a condition-gated choice, and an
  2. # action (give-item). The 'returning' choice is gated on player.flag — which the
  3. # season-welcome trigger sets after the first summer/autumn welcome — so fresh
  4. # players never see it.
  5. id: welcome
  6. startNode: hello
  7. nodes:
  8. - id: hello
  9. text: Welcome to your farm! A new season is about to begin.
  10. choices:
  11. - text: Thanks! What should I plant first?
  12. to: seed-tip
  13. actions:
  14. - action: give-item
  15. itemId: parsnip-seed
  16. qty: 1
  17. - text: You remember me from last season?
  18. to: returning
  19. when:
  20. op: exists
  21. path: player.flag
  22. - text: I am just exploring today.
  23. to: farewell
  24. - id: seed-tip
  25. text: Parsnip seeds grow well in spring — here is one to start with.
  26. to: farewell
  27. - id: returning
  28. text: Of course! Welcome back to the farm.
  29. to: farewell
  30. - id: farewell
  31. text: See you around!