Tasks:Schedules
Back to Task List
Overview
Character schedules give life to a NPC. They are implemented by Python scripts specifing movement and actions of each character.
Dependencies
none
Requirements
- a master schedule decides what activity schedule controls the character at any given time. This master schedule is only executed when no other schedule is active
- activity schedules let characters walk, talk, pick up, combine and drop items, etc. ...
- events (time, quest, etc.) can be used to stop the active schedule, thus triggering the master schedule.
- character activity can be paused and resumed
- generic activities written in python can be used to create individual activity schedules for characters.
- Schedules are event driven: schedule of player listens for keyboard events and reacts accordingly; other schedules are controlled by other types of events.
- schedule state must be saved and loaded (Persistance)
References
- Suggestions (take with a lump of salt)
- More suggestions (take with a grain of salt)
- Sample code