Fandom

Wikihack

Source:NetHack 3.2.0/qtext.h

2,034pages on
this wiki
Add New Page
Talk0

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Below is the full text to qtext.h from the source code of NetHack 3.2.0. To link to a particular line, write [[NetHack 3.2.0/qtext.h#line123]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)qtext.h	3.2	92/01/22	*/
2.    /* Copyright (c) Mike Stephenson 1991.				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef QTEXT_H
6.    #define QTEXT_H
7.    
8.    #define N_HDR	13		/* number of classes + 1 */
9.    #define COMMON_ID	'-'	/* common message id value */
10.   
11.   struct qtmsg {
12.   	int	msgnum;
13.   	char	delivery;
14.   	long	offset,
15.   		size;
16.   };
17.   
18.   #ifdef MAKEDEFS_C
19.   
20.   #define N_MSG	100		/* arbitrary */
21.   
22.   struct msghdr {
23.   	int	n_msg;
24.   	struct	qtmsg	qt_msg[N_MSG];
25.   };
26.   
27.   struct	qthdr {
28.   	int	n_hdr;
29.   	char	id[N_HDR];
30.   	long	offset[N_HDR];
31.   };
32.   
33.   /* Error message macros */
34.   #define CREC_IN_MSG	"Control record encountered during message - line %d\n"
35.   #define DUP_MSG		"Duplicate message number at line %d\n"
36.   #define END_NOT_IN_MSG	"End record encountered before message - line %d\n"
37.   #define UNREC_CREC	"Unrecognized Control record at line %d\n"
38.   #define OUT_OF_HEADERS	"Too many message types (line %d)\nAdjust N_HDR in qtext.h and recompile.\n"
39.   #define OUT_OF_MESSAGES	"Too many messages in class (line %d)\nAdjust N_MSG in qtext.h and recompile.\n"
40.   
41.   #else	/* !MAKEDEFS_C */
42.   
43.   struct	qtlists {
44.   	struct	qtmsg	*common,
45.   			*chclass;
46.   };
47.   
48.   
49.   /*
50.    *	Quest message defines.  Used in quest.c to trigger off "realistic"
51.    *	dialogue to the player.
52.    */
53.   #define QT_FIRSTTIME	 1
54.   #define QT_NEXTTIME	 2
55.   #define QT_OTHERTIME	 3
56.   
57.   #define QT_GUARDTALK	 5	/* 5 random things for guards to say */
58.   
59.   #define QT_FIRSTLEADER	10
60.   #define QT_NEXTLEADER	11
61.   #define QT_OTHERLEADER	12
62.   #define QT_LASTLEADER	13
63.   #define QT_BADLEVEL	14
64.   #define QT_BADALIGN	15
65.   #define QT_ASSIGNQUEST	16
66.   
67.   #define QT_ENCOURAGE	20	/* 1-10 random encouragement messages */
68.   
69.   #define QT_FIRSTLOCATE	30
70.   #define QT_NEXTLOCATE	31
71.   
72.   #define QT_FIRSTGOAL	40
73.   #define QT_NEXTGOAL	41
74.   
75.   #define QT_FIRSTNEMESIS	50
76.   #define QT_NEXTNEMESIS	51
77.   #define QT_OTHERNEMESIS	52
78.   #define QT_NEMWANTSIT	53	/* you somehow got the artifact */
79.   
80.   #define QT_DISCOURAGE	60	/* 1-10 random maledictive messages */
81.   
82.   #define QT_GOTIT	70
83.   
84.   #define QT_KILLEDNEM	80
85.   #define QT_OFFEREDIT	81
86.   
87.   #define QT_POSTHANKS	90
88.   #define QT_HASAMULET	91
89.   
90.   /*
91.    *	Message defines for common text used in maledictions.
92.    */
93.   #define QT_ANGELIC	10
94.   #define QTN_ANGELIC	10
95.   
96.   #define QT_DEMONIC	30
97.   #define QTN_DEMONIC	20
98.   
99.   #endif	/* MAKEDEFS_C */
100.  
101.  #endif /* QTEXT_H */

Also on Fandom

Random Wiki