mayor-routine.yaml 535 B

1234567891011121314151617181920
  1. # NPC daily routine (D20 onSchedule): the mayor's day pattern, driven by the
  2. # day-start event. From day 25 onward it is a market day; otherwise strolling.
  3. # The sample-game mod reads this machine's state (a world entity) each
  4. # day-start to decide where the mayor walks.
  5. id: mayor-routine
  6. initial: sleeping
  7. states:
  8. - id: sleeping
  9. - id: strolling
  10. - id: market-day
  11. transitions: []
  12. onSchedule:
  13. - at: day-start
  14. to: market-day
  15. when:
  16. op: gte
  17. path: payload.day
  18. value: 25
  19. - at: day-start
  20. to: strolling