>B1014 <Someone> [reported] change request - disclosure default
> > I'd like the default for "Would you like to see your <whatever>" > at the end of a game to be "y" instead of "n". I haven't asked > for full disclosure in order to have it skipped if I press the > space bar once too often by mistake. This changes the way the flags.end_disclose array is used to allow what this request is asking for. It should be backward compatible with previous "disclose" options. The order that the end_disclore options are stored: inventory, attribs, vanquished, genocided, conduct There is an array in flags: end_disclose[NUM_DISCLOSURE_OPT]; with option settings for the each of the following: iagvc [see disclosure_options in decl.c]: Legal setting values in that array are: DISCLOSE_PROMPT_DEFAULT_YES ask with default answer yes DISCLOSE_PROMPT_DEFAULT_NO ask with default answer no DISCLOSE_YES_WITHOUT_PROMPT always disclose and don't ask DISCLOSE_NO_WITHOUT_PROMPT never disclose and don't ask Those setting values can be used in the option string as a prefix to each disclosure option to get the desired behaviour for that option. For backward compatibility, no prefix is actually required, and the presence of a i,a,g,v, or c without a prefix sets the corresponding value to DISCLOSE_YES_WITHOUT_PROMPT; The actual prefixes used are controlled by the following in flag.h: #define DISCLOSE_PROMPT_DEFAULT_YES 'y' #define DISCLOSE_PROMPT_DEFAULT_NO 'n' #define DISCLOSE_YES_WITHOUT_PROMPT '+' #define DISCLOSE_NO_WITHOUT_PROMPT '-' As far as the docs go, I don't know if I've got the *roff stuff right. The TeX stuff looks okay when I converted it to .pdf. This increments EDITLEVEL. If that is a problem, I can add a routine to restore.c to perform a conversion of the old values in flags. Let me know.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
.ds vr "NetHack 3.3
|
||||
.ds f0 "\*(vr
|
||||
.ds f1
|
||||
.ds f2 "January 22, 2002
|
||||
.ds f2 "January 26, 2002
|
||||
.mt
|
||||
A Guide to the Mazes of Menace
|
||||
(Guidebook for NetHack)
|
||||
@@ -1646,13 +1646,41 @@ This option also sets up proper handling of graphics
|
||||
characters for such terminals, so you should specify it when appropriate
|
||||
even if you override the selections with your own graphics strings.
|
||||
.lp disclose
|
||||
Offer to disclose various information when the game ends (default all).
|
||||
The possibilities are identifying your inventory ('i'),
|
||||
disclosing your attributes ('a'), summarizing monsters that have been
|
||||
vanquished ('v'), listing monster species that have been genocided ('g'),
|
||||
and displaying your conduct ('c').
|
||||
Controls options for disclosing various information when the game ends (defaults
|
||||
to all possibilities being disclosed).
|
||||
The possibilities are:
|
||||
.sd
|
||||
.si
|
||||
i - disclose your inventory.
|
||||
a - disclose your attributes.
|
||||
v - summarizing monsters that have been vanquished.
|
||||
g - listing monster species that have been genocided.
|
||||
c - displaying your conduct.
|
||||
.ei
|
||||
.ed
|
||||
Each disclosure possibility can optionally be preceded by a prefix which
|
||||
let you refine how it behaves. Here are some of the prefixes:
|
||||
.sd
|
||||
.si
|
||||
y - prompt you and default to yes on the prompt.
|
||||
n - prompt you and default to no on the prompt.
|
||||
+ - disclose it without prompting.
|
||||
- - do not disclose it and do not prompt.
|
||||
.ei
|
||||
.ed
|
||||
Note that the vanquished monsters list includes all monsters killed by
|
||||
traps and each other as well as by you.
|
||||
traps and each other as well as by you.(ex. ``disclose:yina+v-g-c'')
|
||||
The example sets
|
||||
.op inventory
|
||||
to prompt and default to yes,
|
||||
.op attributes
|
||||
to prompt and default to no,
|
||||
.op vanquished
|
||||
to disclose without prompting,
|
||||
.op genocided
|
||||
to not disclose and not to prompt,
|
||||
.op conduct
|
||||
to not disclose and not to prompt.
|
||||
.lp dogname
|
||||
Name your starting dog (ex. ``dogname:Fang'').
|
||||
Cannot be set with the `O' command.
|
||||
|
||||
Reference in New Issue
Block a user