1 # autopick.txt for Hengband
3 # The last part of this file is an example of 'pickpref.prf'.
4 # You can copy this file to lib\user\ or ~/.angband/Hengband/
5 # to use as preference of auto-picker.
6 # (UNIX user must copy to ~/.angband/Hengband/. Others must
9 # ===== How to use auto-picker/destroyer ========
11 # Press the _ in a game to enter editor mode for preference of
12 # auto-picker/destroyer. Basic usage of the editor is almost same
13 # as vi, and also have emacs like commands. Most commands is
14 # always displayed on the first line and the right half of the
18 # 'a', 'i' or ^Q : Enter insert mode from command mode
19 # ESC or ^Q : Return to command mode from insert mode
20 # 'q' : Quit the editor (command mode only)
21 # 'hjkl2468' : Move cursor (command mode only)
22 # ^B ^N ^P ^F : Move cursor (always)
23 # ^I : Choose an item from inventry/equipment, then insert its name
24 # ^S : Rotates action (pick up / destroy / leave on floor)
25 # ^U : Rotates identify state (identified / unidentified / ...)
26 # ^L : Insert name of the last auto-destroyed item.
27 # '/' : Search string, or search an item specified by ^I or ^L.
29 # 'N' : Search previous
31 # The preference will be saved in a file named
32 # "pickpref-<<name>>.prf" in your user directory; This will be
33 # ~/.angband/Hengband/ for UNIX, or hengband\lib\user\ for other
34 # operating systems. You may edit this file using any text
35 # editor, and may use the '$' command within the game to reread
36 # this file. When you don't use the in-game editor, you may use
37 # "pickpref.prf" as preference file.
39 # When there are both files, the game will read the file
40 # "pickpref-<<current character name>>.prf" first and then read
41 # the file "pickpref.prf". The first-read file takes priority.
44 # Maximum number of active lines is 1009.
45 # A line with a header '#' is a comment.
52 # Each line determines the actions taken when you step over
53 # a kind of object. Starting a line with '!' indicates that you
54 # wish to destroy this kind of object. Starting a line with '~'
55 # indicates that you wish to leave this kind of object on the
56 # floor. Starting a line with ';' indicates that you wish to
57 # force the game to ask you if you want to pick the item up or
58 # not. Otherwise, your character will automatically attempt to
60 # There is an additional command letter '('. It indicates that
61 # you don't wish this item to be displayed in full map. see below.
64 # If you want to disable the effect of the '!' indicator temporally,
65 # use 'always_pickup' option.
69 # After the command letter may come one or more keywords. They are:
71 # all : All items match.
72 # collecting : Matches if you already have that same item.
73 # unaware : Items with unknown effects match.
74 # unidentified : Unidentified items match.
75 # identified : Identified items match.
76 # *identified* : *Identified* items match.
77 # dice boosted : Weapons with boosted damage dice match.
78 # more than N dice : Weapons with dice (dd * ds) better than +N match.
79 # more bonus than N : Items which has more magical bonus than (+N) match.
80 # worthless : Items which you cannot sell match.
81 # artifacts : Artifact items match.
82 # ego : Ego items match.
83 # nameless : Non ego/non artifact items match.
84 # wanted : Wanted monster's corpses or skeletons match.
85 # unique monster's : Unique monster's corpses, skeletons or statues match.
86 # human : Human corpses or skeletons match.
87 # unreadable : Spellbooks other than those you can read match.
88 # first realm's : Your first magic realm's spellbooks match.
89 # second realm's : Your second magic realm's spellbooks match.
90 # first : First one of four spellbooks in each realm match.
91 # second : Second one of four spellbooks in each realm match.
92 # third : Third one of four spellbooks in each realm match.
93 # fourth : Fourth one of four spellbooks in each realm match.
95 # items : All items match. Use it with an adjective for
96 # readability (i.e. "unaware items").
97 # weapons : All weapons including missile weapons match.
98 # armors : All armors match.
99 # missiles : Arrows, bolts, and shots match.
100 # magical devices : Wands, staffs, rods and scrolls match.
101 # lights : Light sources match.
102 # junks : Junk items like Shard of Pottery or etc. match.
103 # spellbooks : All books match.
104 # hafted weapons : Hafted weapons match. For priests.
106 # You may also use keywords which match specified kinds of equipment:
107 # weapons, armors, missiles, magical devices, lights, junks, spellbooks,
108 # hafted weapons, shields, bows, rings, amulets, suits, cloaks, helms,
113 # After the keywords, you may write a character string. Only items
114 # whose name contains this character string as part of their name match.
115 # Upper or lower case makes no difference.
116 # You must insert a ':' between your special keywords and character
117 # string, if both exist in one line.
119 # Force start-of-line matching:
120 # If the first character in a character string is '^', then the
121 # character string must match the beginning of a line.
123 # !Mace // Destroy Maces and Lead-Filled Maces.
124 # !^Mace // Destroy only Maces.
130 # Meaning: "destroy all items that are worthless"
133 # Meaning: "pick up all unaware potions"
135 # ~unidentified lites
136 # Meaning: "leave all unidentified light sources on the ground"
138 # unidentified more than 25 dice weapons
139 # Meaning: "pick up all weapons with dice that total more than 25. A
140 # weapon that is 2d13 qualifies, a weapon that is 5d5 does not."
143 # Meaning: "pick up anything that includes in its name the word
146 # potion of Experience
147 # Meaning: "pick up anything named 'potion of experience'"
150 # Meaning: "Pick up light sources named stone"
153 # Meaning: "Pick up gauntlets of slaying. Not rings of slaying."
158 # Lines will be evaluated in order, and first matched line will be
159 # applied. So you can write names of specific excellent items to pick
160 # up, followed by a general item name with '!' to destroy useless items.
163 # ! In full map command ('M'), you can press M, N, K, or D to
164 # ! display locations of items for auto-pickup, leaving, auto-destroy
165 # ! or both auto-pickup and leaving.
166 # ! Additional command letter '(' prevents this display.
169 # If you begin the last string in a line with '#', this string will
170 # be automatically inscribed on the item.
173 # Strict syntax of each line is below.
176 # [[all] [collecting]
177 # [unaware] [unidentified] [identified] [*identified*]
178 # [dice boosted] [more than N dice] [more bonus than N]
179 # [worthless] [artifact] [ego] [nameless]
180 # [wanted] [unique monster's] [human] [unreadable]
181 # [first realm's] [second realm's] [first] [second] [third] [fourth]
182 # [items | weapons | armors | missiles | magical devices |
183 # lights | junks | spellbooks | hafted weapons | shields | bows |
184 # rings | amulets | suits | cloaks | helms | gloves | boots] :]
185 # [[^]part-of-item-name] [#auto-inscription-string]
188 # ======= How to use Conditional Expressions ========
190 # The lines of pickpref.prf can be disabled/enabled using
191 # conditional expressions.
192 # The syntax is the same as that of other preference files.
194 # - usage of condition expressions
196 # If result of expr is "0", all lines below are disabled.
197 # If result of expr is "1", all lines below are enabled.
198 # Caution:It cannot be nested.
200 # - usage to include other file
202 # Read a file named 'filename' as a new pick-pref file. The file
203 # must be in the user directory.
204 # Caution: Avoid naming the parent file, or the game might freeze up.
206 # - usage of operators
207 # [EQU arg1 arg2 ...]
208 # If all args are same, returns "1", or else returns "0".
209 # [IOR arg1 arg2 ...]
210 # [AND arg1 arg2 ...]
211 # IOR evaluates and returns all args' logical OR. AND is logical AND.
213 # Returns "0" if arg is "1", or else returns "1"
214 # [LEQ arg1 arg2 ...]
215 # [GEQ arg1 arg2 ...]
216 # Compare args as string. LEQ returns "1" if (arg1 <= arg2 <= ...) ,
217 # GEQ returns "1" if (arg1 >= arg2 >= ...) otherwise returns "0".
219 # - Special variables
221 # Returns name of player race. One of below:
222 # Human, Half-Elf, Elf, Hobbit, Gnome, Dwarf, Half-Orc,
223 # Half-Troll, Amberite, High-Elf, Barbarian, Half-Ogre,
224 # Half-Giant, Half-Titan, Cyclops, Yeek, Klackon, Kobold,
225 # Nibelung, Dark-Elf, Draconian, Mindflayer, Imp, Golem,
226 # Skeleton, Zombie, Vampire, Spectre, Sprite, Beastman, Ent,
227 # Archon, Balrog, Dunadan, Shadow-Fairy, Kutar, Android,
230 # Returns name of player class. One of below:
231 # Warrior, Mage, Priest, Rogue, Ranger, Paladin,
232 # Warrior-Mage, Chaos-Warrior, Monk, Mindcrafter, High-Mage,
233 # Tourist, Imitator, BeastMaster, Sorcerer, Archer,
234 # Magic-Eater, Bard, Red-Mage, Samurai, ForceTrainer,
235 # Blue-Mage, Cavalry, Berserker, Weaponsmith, Mirror-Master,
239 # Returns player name.
241 # Returns player's first magic realm
242 # none, Life, Sorcery, Nature, Chaos, Death, Trump, Arcane,
243 # Craft, Daemon, Crusade, Music, Kendo
245 # Returns player's second magic realm
247 # Returns player level as two-character string.
248 # Ex. "01","09","10","50" etc.
250 #------------------------------------------------------------------
252 # Below is an example 'pickpref.prf' file.
253 # You can copy this file to lib\user\ or ~/.angband/Hengband/.
254 # (UNIX user must copy to ~/.angband/Hengband/. Others must copy
257 #------------------------------------------------------------------
262 # Berserker cannot use magical devices; rods, wands, and scrolls.
263 ?:[EQU $CLASS Berserker]
270 unidentified lights:^Jewel#!!
271 unidentified lights:^levitation stone#!!
272 unidentified lights:^Palantir#!!
273 unidentified lights:^stone#@A0
274 unidentified lights:^star#!!
275 unidentified lights:^Incandescent Light
276 unidentified lights:^Phial#!!
278 # auto inscribe resistances (see lib/help/objects.txt#Inscriptions)
279 ~*identified* artifacts#%all
282 # pick all items which can stack your inventory without inscription.
293 ~rod of Perception#@z0!k!!
296 ~rod of Enlightenment#k!!
297 ~rod of Detection#!k!!
299 potion of Invulnerability#!k
302 potion of Augmentation
309 potion of constitution
310 potion of intelligence
317 # Magic-Eaters pick up all magical device to absorb.
318 # Skeletons is material of missiles for Archers.
319 # Ninja needs lights of darkness.
320 # Vampire needs darkness.
322 ?:[EQU $CLASS Magic-Eater]
326 ?:[EQU $CLASS Archer]
331 ?:[EQU $RACE Vampire]
336 # Destroy unless very early stage.
338 (!amulet of Adornment
339 (!potion of Apple Juice
344 # These worthless potions have some use at very early stage.
345 # Command letter '(' means, 'Don't display its location in full map command.'
352 # complex example; destroy needless food items.
353 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life] [EQU $REALM2 Life] [EQU $REALM1 Nature] [EQU $REALM2 Nature] [EQU $REALM1 Craft] [EQU $REALM2 Craft]]]
362 # Destroy useless equipment at high level.
365 # The line '!nameless armors' destroy all dragon armour!
366 # '~identified armors:dragon' will prevent this dangerous behavior.
370 ~identified armors:dragon
371 ~nameless armors:Elven Cloak
372 ~nameless armors:Shadow Cloak
373 ~nameless weapons:Diamond Edge
374 ~nameless weapons:Mace of Disruption
375 ~nameless weapons:Shield of Deflection
380 !nameless weapons:) (+0,+0)
381 !nameless armors:,+0]
384 # higher rank of your spellbooks
385 first realm's fourth Book of Kendo#!k
386 first realm's third Book of Kendo#!k
387 first realm's fourth spellbooks#@md!k
388 first realm's third spellbooks#@mc!k
389 second realm's fourth spellbooks#@mh!k
390 second realm's third spellbooks#@mg!k
392 # unidentified equipment
393 unidentified dice boosted weapons
394 unidentified more than 25 dice weapons
397 ~unidentified missiles
399 # lower rank of your spellbooks
400 collecting spellbooks
401 ~first realm's second spellbooks#@mb!k
402 ~first realm's first spellbooks#@ma!k
403 ~second realm's second spellbooks#@mf!k
404 ~second realm's first spellbooks#@me!k
409 (!unreadable first spellbooks
410 (!unreadable second spellbooks
411 (!unreadable third spellbooks:arcane
412 (!unreadable fourth spellbooks:arcane
415 # pick up for experience
416 ?:[IOR [EQU $CLASS Warrior] [EQU $CLASS Berserker] [AND [EQU $CLASS Paladin] [EQU $REALM1 Life]]]
417 (~unreadable third spellbooks:arcane
418 (~unreadable fourth spellbooks:arcane
419 unreadable fourth spellbooks
420 unreadable third spellbooks
422 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
423 unreadable fourth spellbooks:life
424 unreadable third spellbooks:life
429 (~unreadable third spellbooks:arcane
430 (~unreadable fourth spellbooks:arcane
431 unreadable fourth spellbooks
432 unreadable third spellbooks