III. Adventure pdb data
Every adventure you build must have its own adventure pdb. Adventure pdb's contain all non-graphical data in the game and are built from a set of text and map files described below. For more information on how to build the adventure pdb, see Chapter II: Building a New Adventure.
You will need a good text editor program to edit the data files. Some of the files have lots of text on one row, so you should find a text editor that can go full screen and use a small font, if necessary -- otherwise, text may wrap around making the data difficult to read.
The following data types must be included with every adventure pdb. Each text file corresponds to a single data type, and the fields contained in the text file are described below:
- All files list data elements one per row.
- White space such as spaces, blank lines, and tabs are ignored.
- Each line must be numbered, starting with “0”, and there cannot be any omissions, out of order rows, or duplicate row numbers.
- Any line beginning with a ‘#’ pound character are ignored.
- In cases where a reserved enumerated type is required (such as “fruit”, “armor”, “potion”, etc) the spelling is case sensitive.
- In cases where strings (text data) is required, quotes should be used.
- In cases where the ‘#’ character is used inside a string (between quotation marks), it forces the game to print a hard carriage return at that point in the text.