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