| 1234567891011121314151617181920 |
- # NPC daily routine (D20 onSchedule): the mayor's day pattern, driven by the
- # day-start event. From day 25 onward it is a market day; otherwise strolling.
- # The sample-game mod reads this machine's state (a world entity) each
- # day-start to decide where the mayor walks.
- id: mayor-routine
- initial: sleeping
- states:
- - id: sleeping
- - id: strolling
- - id: market-day
- transitions: []
- onSchedule:
- - at: day-start
- to: market-day
- when:
- op: gte
- path: payload.day
- value: 25
- - at: day-start
- to: strolling
|