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