DFTEXT - Documentation
                  Written by Dave Humphrey - 19 June 1998
   	               dave@uesp.net     www.uesp.net


   TEXT.RSC STRUCTURE
=======================================
The structure of the TEXT.RSC file is relatively simple. The first part of
the file is a group of headers, indicating the offset and type of the texts
contained.

     Bytes[0-1] (short)
	The length, in bytes, of the header, not counting these 2 bytes.

     Header Structure
	Bytes[0-1] (short)
	    The index of the text record. The index is used by the program
	    in order to tell which text is to be displayed when. IE, when it
	    wants to display an artifact text description it will look for
	    the index 8720 in the file.
	Bytes[2-5] (long)
	    Offset to the beginning of the text from the start of the file.
     End Header

There are a number of special indices used by the program.
	0x0F00 = Last dummy record in file, must be present.
	0xFFFF = Offset points to byte after last byte in file
When adding records it is advised to add them before the 0x0F00 record to
prevent any possible problems.  Similarily, do not delete these two special
records.

What follows the header is all the text data.  Very similar to the text data
contained in the QRC and book files, it contains special codes.

        0xFB (ASCII 251) = This character controls the display position of
                the text given by the following byte.  The byte gives the
                pixel position on the screen to print the next character at
                (this may be relative or absolute) (confirmed).
        0xFC = Carriage Return for a Left-justified line
        0xFD = Carriage Return for a centered line
        0xFE = End of Text Section
        0xFF = Multi-text seperation.  This seperates text parts in the same
               RSC record allowing random variations on a text. EX:
                        Greetings %pcn.[0xff]
                        Nice to meet you %pcn.[0xff]
                        How can I help you?



If you have any problems, suggestions or comments on this page or website, please feel free to use the Contact Form to send a message to the WebMaster.
This document was last modified on: Tuesday, 15 February 2011, at 20:25:32 and has been accessed 2521 times ( dagger/dftext.txt ).
/text.shtml