carrot-quest.yaml 950 B

12345678910111213141516171819202122232425262728293031323334
  1. # Quest chain 2 (D29): activated on the day-start after the starter-quest
  2. # completes, completes on the first carrot harvest (the crop-harvest event's
  3. # cropItemId is the crop def id, not the seed item), pays a seed restock +
  4. # questProgress slot on completion.
  5. id: carrot-quest
  6. initial: inactive
  7. states:
  8. - id: inactive
  9. - id: active
  10. - id: complete
  11. onEnter:
  12. - action: give-item
  13. itemId: carrot-seed
  14. qty: 2
  15. - action: play-sound
  16. sound: harvest
  17. - action: set-state
  18. path: player.questProgress.carrot-quest
  19. value: complete
  20. transitions:
  21. - from: inactive
  22. to: active
  23. on: day-start
  24. when:
  25. and:
  26. - { op: eq, path: player.questProgress.starter-quest, value: complete }
  27. - not: { op: exists, path: player.questProgress.carrot-quest }
  28. - from: active
  29. to: complete
  30. on: crop-harvest
  31. when:
  32. op: eq
  33. path: payload.cropItemId
  34. value: carrot