id: festival-autumn initial: inactive states: - id: inactive - id: active onEnter: - action: give-item itemId: festival-harvest-charm qty: 1 - action: add path: player.gold value: 150 - action: set-state path: player.flag.festivalAutumn value: true - action: play-bgm soundId: bgm-autumn fadeMs: 800 - id: inactive2 onEnter: - action: stop-bgm fadeMs: 500 transitions: - from: inactive to: active on: day-start when: and: - { op: eq, path: time.day, value: 18 } - { op: eq, path: time.season, value: autumn } - not: { op: exists, path: player.flag.festivalAutumn } - from: active to: inactive2 on: day-start when: and: - { op: exists, path: player.flag.festivalAutumn } - not: { op: eq, path: time.day, value: 18 } - from: inactive2 to: inactive2 on: day-start