Fandom

The Codex of Editable Wisdom

Ultima VII Internal Formats - SCHEDULE.DAT

2,975pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

The Ultima VII schedule file is "STATIC\SCHEDULE.DAT". It contains the different schedules that the non-player characters (NPCs) have in the game. This is an introduction to the structure of this file.

HeaderEdit

Offset Length Description
00H 4 256 in Ultima 7. NPC number. (Next header item size is affected by this.)
04H NUM*2 Same as the SUM of each NPC's schedule amount. (Because NUM is 256 in Ultima 7, the size if 512 bytes.

BodyEdit

Each schedule size is 4 bytes.

XX XX XX XX
Schedule number & Match time X Coordinate in SuperChunk Y Coordinate in SuperChunk

See the real X, Y location in cheat mode. SuperChunk Number = (Real-Y / 256) * 12 + (Real-X / 256)

X = (Real-X % 256)
Y = (Real-Y % 256)
*. '%' is the same keyword as in C.

Get them (SuperChunk Number, X, and Y) easily by hex.

The followings are about Schedule number & Match time byte.

7  6  5  4  3  2  1  0 Bit

  +--+--+--+--+--+--+--+--+

  |  |  |  |  |  |  |  |  |

  +--+--+--+--+--+--+--+--+

   [============] [======] 
 
    Schedule num   Match time

     ( 5 bit )     ( 3 bit )
Match time:
000= 0 AM, 100= 0 PM
001= 3 AM, 101= 3 PM
010= 6 AM, 110= 6 PM
011= 9 AM, 111= 9 PM

Schedule num:

0= Combat 9= Hound 18= Bake
1= Hor. Pace 10= Stand 19= Sew
2= Ver. Pace 11= Loiter 20= Shy
3= Talk 12= Wander 21= Lab
4= Dance 13= Blacksmith 22= Thief
5= Eat 14= Sleep
6= Farm 15= Wait
7= Tend Shop 16= Major Sit
8= Miner 17= Graze

The Avatar has no schedule, and each NPC must have at least one schedule. Eight is the max amount for one NPC.

To better understand the above information, run Ultima 7 or Serpent Isle in cheat mode and check the NPC schedule.

Also on Fandom

Random Wiki