Debian Codegraph @

docs/hacking/debug.rst

raw
1 ==========================
2 Debug Command Descriptions
3 ==========================
4
5 Item Creation
6 =============
7
8 Create an object ``c``
9 Provides a menu to let you create any object, and drops it on the floor.
10
11 Create an artifact ``C``
12 Provides a menu to let you create any artifact, and drops it on the floor.
13
14 Create a good object ``g``
15 Prompts for the number of objects to create and then creates that many
16 good objects nearby.
17
18 Create a very good object ``v``
19 Prompts for the number of objects to create and then creates that many
20 very good ("excellent") objects nearby.
21
22 Play with an object ``o``
23 Lets you modify an object by randomly rerolling it as a normal, good, or
24 excellent object or lets you edit its attributes, including quantity, ego
25 type, presence or absence of curses, combat values, and modifiers. There's
26 also a statistics option to evaluate how likely worse, better, or matching
27 objects of the same kind would be generated.
28
29 Test kind ``V``
30 Will prompt for a tval, as an integer. For that tval, creates one object
31 of each sval and drops it nearby. There is a similar option with the 'c'
32 command, but this one will generate any instant artifacts associated with
33 a tval and selects the tval by number rather than name.
34
35 Detection / Information
36 =======================
37
38 Detect all ``d``
39 Detects all traps, doors, stairs, treasure, and monsters nearby.
40
41 Magic Mapping ``m``
42 Maps the nearby dungeon.
43
44 Learn about objects ``l``
45 Makes you "aware" of all items with level less than or equal to 100.
46
47 Monster recall ``r``
48 Gives you full monster recall on all monsters or on a chosen monster.
49
50 Wipe recall ``W``
51 Resets monster recall on all monsters or on a chosen monster.
52
53 Unhide monsters ``u``
54 Reveals all monsters.
55
56 Wizard-light the level ``w``
57 Lights the entire level, as the Potion of Enlightenment.
58
59 Create spoilers ``"``
60 Lets you create a spoiler file for objects or monsters.
61
62 Teleportation
63 =============
64
65 Teleport level ``j``
66 Allows you to teleport to any dungeon level instantly.
67
68 Phase Door ``p``
69 Teleports you up to 10 spaces away.
70
71 Teleport ``t``
72 Teleports you up to 100 spaces away.
73
74 Teleport to target ``b``
75 Teleports you to the targeted grid (or close to it, if it is occupied).
76
77 Character Improvement
78 =====================
79
80 Cure all maladies ``a``
81 Removes all curses, restores all stats, xp, hp, and sp, cures all bad
82 effects, and satisfies your hunger.
83
84 Advance the character ``A``
85 Advances your character to level 50, maxes all stats, and gives you a
86 million gold.
87
88 Edit character ``e``
89 Lets you specify your base stats, xp, and gold.
90
91 Increase experience ``x``
92 Prompts for an amount, up to 9999, to add to your current experience.
93
94 Rerate hitpoints ``h``
95 Rerates your hitpoints.
96
97 Monsters
98 ========
99
100 Summon monster ``n``
101 Prompts you for the name or integer index of a monster, then summons that
102 monster nearby.
103
104 Summon random monster ``s``
105 Prompts for a number and then summons that many random monsters near you.
106
107 Zap monsters ``z``
108 Prompts for a distance, up to the maximum sight range, and deletes all
109 monsters within that distance.
110
111 Hit all in line of sight ``H``
112 Hits all monster in the line of sight for a large, 10000, amount of damage.
113
114 .. _DebugDungeon:
115
116 Dungeon
117 ========
118
119 Create a trap ``T``
120 Prompts for the type of trap to create and places it on your square.
121
122 Perform an effect ``E``
123 Prompts for an effect type and its parameters. Then executes that effect.
124
125 Quit without saving ``X``
126 Quits the game without saving (prompts first).
127
128 Query the dungeon ``q``
129 Light up all the grids with a given square flag
130 (see src/list-square-flags.h).
131
132 Query terrain ``F``
133 Light up all the grids with a given terrain type
134 (see lib/gamedata/terrain.txt).
135
136 Collect stats ``f`` or ``S``
137 Collects stats on monsters and objects present on level generation.
138 Requests number of runs, and whether diving or clearing levels, and
139 outputs the results into the file 'stats.log' in the user directory.
140 The comments in that file will be helpful for interpreting the
141 results; for more in-depth information, it's best to check the
142 implementation of stats_collect() in wiz-stats.c.
143
144 Collect disconnection stats ``D``
145 Generates several levels to collect statistics about how often all
146 down staircases are inaccessible to the player, how often the player's
147 starting location isn't valid, and how often a level has non-vault
148 areas that are inaccessible to the player. The results are written
149 to the message window, and maps of the levels that are disconnected or
150 have invalid starting locations are written to 'disconnect.html' in
151 the user directory. Also collects general statistics about the
152 layout of all the generated levels and writes them to
153 'disconnect_gstat.txt' in the user directory. For more in-depth
154 details about what's considered disconnected and what else is
155 summarized about level generation, check the implementation for
156 disconnect_stats() in wiz-stats.c.
157
158 Collect pit stats ``P``
159 Generates several pits of the room type you specify (pit, nest, or
160 other) and computes a histogram of the types of monsters involved.
161 The results are written to the message window.
162
163 Nick hack ``_``
164 Maps out the reachable grids (by the sound and scent algorithm) in
165 successive distances from the player grid.
166
167 Push objects ``>``
168 Pushes objects off the targeted grid as a way of exercising push_object().
169
170 Write a map of the current level ``M``
171 Writes out a map of the current level as an HTML file.
172
173 Miscellaneous
174 =============
175
176 Animations demo ``G``
177 Displays the graphics or characters used for animating projection effects.
178
179 Key log ``L``
180 Displays the recent keystrokes entered.