# Quest prototype (D20): harvest three parsnips. Activates on the first # day-start at day >= 2 (after the starter gift), completes on a crop-harvest # event once player.inventory.parsnip >= 3, and pays a seed restock on enter. # questProgress. is the conventions quest-state slot from boundaries.md. id: starter-quest initial: inactive states: - id: inactive - id: active - id: complete onEnter: - action: give-item itemId: parsnip-seed qty: 2 - action: play-sound sound: harvest - action: set-state path: player.questProgress.starter-quest value: complete transitions: - from: inactive to: active on: day-start when: and: - { op: gte, path: time.day, value: 2 } - not: { op: exists, path: player.questProgress.starter-quest } - from: active to: complete on: crop-harvest when: op: gte path: player.inventory.parsnip value: 3