| 12345678910111213141516171819202122232425 |
- # Starter gift trigger: on the first day-start of a fresh game the player
- # receives seeds and a flag is set, making the trigger single-shot (the flag
- # guard is the v1 re-arm pattern; the condition stays true while time runs).
- id: starter-gift
- when:
- and:
- - { op: gte, path: time.day, value: 1 }
- - not: { op: exists, path: player.flag.starter-gift }
- fire:
- - action: give-item
- itemId: parsnip-seed
- qty: 3
- - action: give-item
- itemId: carrot-seed
- qty: 2
- - action: play-sound
- sound: coin
- - action: emit-event
- event: particle
- payload:
- particleId: sparkle
- entityId: player
- - action: set-state
- path: player.flag.starter-gift
- value: given
|