Crossfire Server, Trunk
book.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GeneralMessage
 
struct  readable_message_type
 

Macros

#define BASE_BOOK_BUF   700
 
#define BOOK_BUF   HUGE_BUF-10
 
#define BOOKSIZE(xyz)
 

Detailed Description

Describes fundental parameters of 'books' - objects with type==BOOK

Definition in file book.h.

Macro Definition Documentation

◆ BASE_BOOK_BUF

#define BASE_BOOK_BUF   700

Defines the base value that BOOKSIZE should return for books with no weight.

Note
If little books arent getting enough text generated, enlarge this.

Definition at line 23 of file book.h.

◆ BOOK_BUF

#define BOOK_BUF   HUGE_BUF-10

Maximum message buf size for books. If this is changed, keep in mind that big strings may be unreadable by the player as the tail of the message can scroll over the beginning (as of v0.92.2).

Note
Note that the book messages are stored in the msg buf, which is limited by 'HUGE_BUF' in the loader.

Definition at line 16 of file book.h.

◆ BOOKSIZE

#define BOOKSIZE (   xyz)
Value:
BASE_BOOK_BUF+((xyz)->weight/10) > BOOK_BUF ? \
BOOK_BUF : BASE_BOOK_BUF+((xyz)->weight/10);

Get the book buffer size for an individual book object. Make heavy books hold more text but never let a book msg buffer exceed the max. size (BOOK_BUF)

Parameters
xyzThe book object to calculate the buffer size for.

Definition at line 31 of file book.h.

weight
TIPS on SURVIVING Crossfire is populated with a wealth of different monsters These monsters can have varying immunities and attack types In some of them can be quite a bit smarter than others It will be important for new players to learn the abilities of different monsters and learn just how much it will take to kill them This section discusses how monsters can interact with players Most monsters in the game are out to mindlessly kill and destroy the players These monsters will help boost a player s after he kills them When fighting a large amount of monsters in a single attempt to find a narrower hallway so that you are not being attacked from all sides Charging into a room full of Beholders for instance would not be open the door and fight them one at a time For there are several maps designed for them Find these areas and clear them out All throughout these a player can find signs and books which they can read by stepping onto them and hitting A to apply the book sign These messages will help the player to learn the system One more always keep an eye on your food If your food drops to your character will soon so BE CAREFUL ! NPCs Non Player Character are special monsters which have intelligence Players may be able to interact with these monsters to help solve puzzles and find items of interest To speak with a monster you suspect to be a simply move to an adjacent square to them and push the double ie Enter your and press< Return > You can also use say if you feel like typing a little extra Other NPCs may not speak to but display intelligence with their movement Some monsters can be and may attack the nearest of your enemies Others can be in that they follow you around and help you in your quest to kill enemies and find treasure SPECIAL ITEMS There are many special items which can be found in of these the most important may be the signs all a player must do is apply the handle In the case of the player must move items over the button to hold it down Some of the larger buttons may need very large items to be moved onto before they can be activated Gates and locked but be for you could fall down into a pit full of ghosts or dragons and not be able to get back out Break away sometimes it may be worth a player s time to test the walls of a map for secret doors Fire such as missile weapons and spells you will notice them going up in smoke ! So be careful not to destroy valuable items Spellbooks sometimes a player can learn the other times they cannot There are many different types of books and scrolls out there Improve item have lower weight
Definition: survival-guide.txt:100
BASE_BOOK_BUF
#define BASE_BOOK_BUF
Definition: book.h:23
BOOK_BUF
#define BOOK_BUF
Definition: book.h:16