starter-gift.yaml 699 B

12345678910111213141516171819202122232425
  1. # Starter gift trigger: on the first day-start of a fresh game the player
  2. # receives seeds and a flag is set, making the trigger single-shot (the flag
  3. # guard is the v1 re-arm pattern; the condition stays true while time runs).
  4. id: starter-gift
  5. when:
  6. and:
  7. - { op: gte, path: time.day, value: 1 }
  8. - not: { op: exists, path: player.flag.starter-gift }
  9. fire:
  10. - action: give-item
  11. itemId: parsnip-seed
  12. qty: 3
  13. - action: give-item
  14. itemId: carrot-seed
  15. qty: 2
  16. - action: play-sound
  17. sound: coin
  18. - action: emit-event
  19. event: particle
  20. payload:
  21. particleId: sparkle
  22. entityId: player
  23. - action: set-state
  24. path: player.flag.starter-gift
  25. value: given