Fandom

Wikihack

Source:SLASH'EM 0.0.7E7F2/quest.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 quest.h from the source code of SLASH'EM 0.0.7E7F2. To link to a particular line, write [[SLASH'EM 0.0.7E7F2/quest.h#line123]], for example.

The latest source code for vanilla NetHack is at Source code.


The NetHack General Public License applies to screenshots, source code and other content from NetHack.
1.    /*	SCCS Id: @(#)quest.h	3.4	1992/11/15	*/
2.    /* Copyright (c) Mike Stephenson 1991.				  */
3.    /* NetHack may be freely redistributed.  See license for details. */
4.    
5.    #ifndef QUEST_H
6.    #define QUEST_H
7.    
8.    struct q_score {			/* Quest "scorecard" */
9.    	Bitfield(first_start,1);	/* only set the first time */
10.   	Bitfield(met_leader,1);		/* has met the leader */
11.   	Bitfield(not_ready,3);		/* rejected due to alignment, etc. */
12.   	Bitfield(pissed_off,1);		/* got the leader angry */
13.   	Bitfield(got_quest,1);		/* got the quest assignment */
14.   
15.   	Bitfield(first_locate,1);	/* only set the first time */
16.   	Bitfield(met_intermed,1);	/* used if the locate is a person. */
17.   	Bitfield(got_final,1);		/* got the final quest assignment */
18.   
19.   	Bitfield(made_goal,3);		/* # of times on goal level */
20.   	Bitfield(met_nemesis,1);	/* has met the nemesis before */
21.   	Bitfield(killed_nemesis,1);	/* set when the nemesis is killed */
22.   	Bitfield(in_battle,1);		/* set when nemesis fighting you */
23.   
24.   	Bitfield(cheater,1);		/* set if cheating detected */
25.   	Bitfield(touched_artifact,1);	/* for a special message */
26.   	Bitfield(offered_artifact,1);	/* offered to leader */
27.   	Bitfield(got_thanks,1);		/* final message from leader */
28.   
29.   	/* keep track of leader presence/absence even if leader is
30.   	   polymorphed, raised from dead, etc */
31.   	Bitfield(leader_is_dead,1);
32.   	unsigned leader_m_id;
33.   };
34.   
35.   /* KMH, balance patch -- These were 7, 20, 14 for NetHack and 1, 20, 6 for Slash */
36.   #define MAX_QUEST_TRIES  7	/* exceed this and you "fail" */
37.   #define MIN_QUEST_ALIGN 20	/* at least this align.record to start */
38.     /* note: align 20 matches "pious" as reported by enlightenment (cmd.c) */
39.   #define MIN_QUEST_LEVEL	10	/* at least this u.ulevel to start */
40.     /* note: exp.lev. 14 is threshold level for 5th rank (class title, role.c) */
41.   
42.   #endif /* QUEST_H */

Also on Fandom

Random Wiki