Crossfire Server, Trunk  R21024
GeneralMessage Struct Reference
+ Collaboration diagram for GeneralMessage:

Data Fields

int chance
 
unsigned int face
 
sstring identifier
 
sstring message
 
GeneralMessagenext
 
sstring quest_code
 
sstring title
 

Detailed Description

One general message, from the lib/messages file.

Definition at line 134 of file readable.c.

Field Documentation

◆ chance

int GeneralMessage::chance

Relative chance of the message appearing randomly. If 0 will never appear.

Definition at line 135 of file readable.c.

Referenced by init_msgfile(), and msgfile_msg().

◆ face

unsigned int GeneralMessage::face

Face the message displays at in the knowledge dialog, -1 if no face defined.

Definition at line 141 of file readable.c.

Referenced by get_message_face(), and init_msgfile().

◆ identifier

sstring GeneralMessage::identifier

Message identifier, can be NULL.

Definition at line 137 of file readable.c.

Referenced by free_all_readable(), get_message_from_identifier(), init_msgfile(), and msgfile_msg().

◆ message

sstring GeneralMessage::message

The message's body.

Definition at line 139 of file readable.c.

Referenced by free_all_readable(), get_message_body(), init_msgfile(), and msgfile_msg().

◆ next

GeneralMessage* GeneralMessage::next

Next message in the list.

Definition at line 142 of file readable.c.

Referenced by free_all_readable(), get_message_from_identifier(), init_msgfile(), and msgfile_msg().

◆ quest_code

sstring GeneralMessage::quest_code

Optional quest code and state this message will start.

Definition at line 140 of file readable.c.

Referenced by free_all_readable(), init_msgfile(), and msgfile_msg().

◆ title

sstring GeneralMessage::title

The message's title, only used for knowledge.

Definition at line 138 of file readable.c.

Referenced by free_all_readable(), get_message_title(), and init_msgfile().


The documentation for this struct was generated from the following file: