Books are "item_readable". They support markup, pictures, multiple pages.
Specify the model, a typical model is "model" "models/books/book_old.md3" or specify a model.
The text can be in the readtext field or if it ends with .txt, it specifies an external .txt file like "books/map_hotel_directory.txt".
The use of an external file with a text editor with the .txt opened greatly speeds up tweaking as every time the map restarts it will reload the book from file.
When a player looks at a book, it will offer the player the option to read it.
When a book is opened, the player can flip through the pages if it is a multipage book.
The text for a book can be as a string like such where [p] specifies a newline. The "readtext" string is the following:
"readtext" "[h1][times][book2]Log Entries[p]Six days ago, enemies appeared out of nowhere and we lost the North Tower.[p]The South Tower is where most supplies are stored, we regrouped at that location. Heavy casualities. We are few in number.[p][pic books/quantum 200 85]"
Pictures. Pictures will take up their entire line:
- [pic books/quantum 200 85] This will use quake/quake3_quake1/books/quantum.png (or .jpg) as picture in the book with a in book width of 200 pixels wide and 85 pixels tall.
Supported tags:
- [p] This is considered a newline
- [h1] large heading
- [h2] small heading
Supported backgrounds:
- [book]
- [book2]
- [book3]
- [note]
- [note2]
- [screen]
Supported text styles. The entire book will use this font.
- [times] a font similar to Times Roman
- [arial] a font that looks like Arial
- [terminal] a fixed-width computer screen font
Supported text colors. The entire book will use this color.
- black, white, gray, red, green, blue, darkred, darkgreen, darkblue, darkgray
There are 3 alignment tags: left, right, center. These specify the alighment of the text or picture for the next time.