scheduling
Posted: 15 Feb 2005, 17:46
Hi again!
I have the idea of a global schedule that affects the npcs and other things in the world.
This might my not very realistic but it would bring real life into The Mana World:
The schedule would include events(these arrive or last for a defined time span) which have targets(these could be a creature, all creatures in a special area, or other things like the "weather", in general what ever you want).
I imagine a schedule file looking like the following (just a plan)
it would also be possible with this to change the weather and/or the seasons...
Okay as I said its just an idea, maybe you can somehow benefit from it.
Oh about the jobs: A very simple plan for a jobscript could look like that:
What first would be needed where special areas that are related to character (he owns his homeplace-area, there it is furthermore easier to him to fulfill his needs).
[9:00] go_to_area("workplace")
[9:30] work()
[18:00] go_to_area("homeplace")
...all the unassigned time he would use to fulfill his needs.
I have the idea of a global schedule that affects the npcs and other things in the world.
This might my not very realistic but it would bring real life into The Mana World:
The schedule would include events(these arrive or last for a defined time span) which have targets(these could be a creature, all creatures in a special area, or other things like the "weather", in general what ever you want).
I imagine a schedule file looking like the following (just a plan)
Code: Select all
// general stuff:
year * // the "*" means that every year will be affected
|_ month *
|_ week *
|_ day *
|_ hour *
|_ minute *: all_creatures->fulfill_needs() // every living creature not controlled by the player has the task to fulfill its needs, if not specialized further
// now the specialization is following:
year *
|_ month *
|_ week *
|_ day 0-4 // all_npcs->do_your_job() // npcs do their daily job (appropriate job script are called) in the week, otherwise they just fulfill their needs)
// and now something different
year *
|_ month 12 // if you let the following "week" out it will take all the days of the month, instead the days of a week, in account
|_ day 24: set_special_day("christmas") // xmas time...
Okay as I said its just an idea, maybe you can somehow benefit from it.
Oh about the jobs: A very simple plan for a jobscript could look like that:
What first would be needed where special areas that are related to character (he owns his homeplace-area, there it is furthermore easier to him to fulfill his needs).
[9:00] go_to_area("workplace")
[9:30] work()
[18:00] go_to_area("homeplace")
...all the unassigned time he would use to fulfill his needs.