id: festival-winter initial: inactive states: - id: inactive - id: active onEnter: - action: give-item itemId: festival-snow-crystal qty: 1 - action: add path: player.gold value: 150 - action: set-state path: player.flag.festivalWinter value: true - action: play-bgm soundId: bgm-winter 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: 22 } - { op: eq, path: time.season, value: winter } - not: { op: exists, path: player.flag.festivalWinter } - from: active to: inactive2 on: day-start when: and: - { op: exists, path: player.flag.festivalWinter } - not: { op: eq, path: time.day, value: 22 } - from: inactive2 to: inactive2 on: day-start