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 idendify 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 a kind
53 # of object. Starting a line with '!' indicates that you wish to destroy
54 # this kind of object. Starting a line with '~' indicates that you wish
55 # to leave this kind of object on the floor. Otherwise, your character
56 # will automatically attempt to pick up the object.
57 # There is an additional command letter '('. It indicates that
58 # you don't wish this item to be displayed in full map. see below.
61 # If you want to disable the effect of the '!' indicator temporally,
62 # use 'always_pickup' option.
66 # After the command letter may come one or more keywords. They are:
68 # all : All items match.
69 # collecting : Matches if you already have that same item.
70 # unaware : Items with unknown effects match.
71 # unidentified : Unidentified items match.
72 # identified : Identified items match.
73 # *identified* : *Identified* items match.
74 # dice boosted : Weapons with boosted damage dice match.
75 # more than N dice : Weapons with dice (dd * ds) better than +N match.
76 # more bonus than N : Items which has more magical bonus than (+N) match.
77 # worthless : Items which you cannot sell match.
78 # artifacts : Artifacts items match.
79 # ego : Ego items match.
80 # nameless : Non ego/non artifact items match.
81 # wanted : Wanted monster's corpses or skeletons match.
82 # unique monster's : Unique monster's corpses, skeletons or statues match.
83 # human : Human corpses or skeletons match.
84 # unreadable : Spellbooks other than those you can read match.
85 # first realm's : Your first magic realm's spellbooks match.
86 # second realm's : Your second magic realm's spellbooks match.
87 # first : First one of four spellbooks in each realm match.
88 # second : Second one of four spellbooks in each realm match.
89 # third : Third one of four spellbooks in each realm match.
90 # fourth : Fourth one of four spellbooks in each realm match.
92 # items : All items match. Use it with an adjective for
93 # readability (i.e. "unaware items").
94 # weapons : All weapons including missile weapons match.
95 # armors : All armors match.
96 # missiles : Arrows, bolts, and shots match.
97 # magical devices : Wands, staffs, rods and scrolls match.
98 # lights : Light sources match.
99 # junks : Junk items like Shard of Pottery or etc. match.
100 # spellbooks : All books match.
101 # hafted weapons : Hafted weapons match. For priests.
103 # You may also use keywords which match specified kinds of equipment:
104 # weapons, armors, missiles, magical devices, lights, junks, spellbooks,
105 # hafted weapons, shields, bows, rings, amulets, suits, cloaks, helms,
110 # After the keywords, you may write a character string. Only items
111 # whose name contains this character string as part of their name match.
112 # Upper or lower case makes no difference.
113 # You must insert a ':' between your special keywords and character
114 # string, if both exist in one line.
116 # Force start-of-line matching:
117 # If the first character in a character string is '^', then the
118 # character string must match the beginning of a line.
120 # !Mace // Destroy Maces and Lead-Filled Maces.
121 # !^Mace // Destroy only Maces.
127 # Meaning: "destroy all items that are worthless"
130 # Meaning: "pick up all unaware potions"
132 # ~unidentified lites
133 # Meaning: "leave all unidentified light sources on the ground"
135 # unidentified more than 25 dice weapons
136 # Meaning: "pick up all weapons with dice that total more than 25. A
137 # weapon that is 2d13 qualifies, a weapon that is 5d5 does not."
140 # Meaning: "pick up anything that includes in its name the word
143 # potion of Experience
144 # Meaning: "pick up anything named 'potion of experience'"
147 # Meaning: "Pick up light sources named stone"
150 # Meaning: "Pick up gauntlets of slaying. Not rings of slaying."
155 # Lines will be evaluated in order, and first matched line will be
156 # applied. So you can write names of specific excellent items to pick
157 # up, followed by a general item name with '!' to destroy useless items.
160 # ! In full map command ('M'), you can press M, N, K, or D to
161 # ! display locations of items for auto-pickup, leaving, auto-destroy
162 # ! or both auto-pickup and leaving.
163 # ! Additional command letter '(' prevents this display.
166 # If you begin the last string in a line with '#', this string will
167 # be automatically inscribed on the item.
170 # Strict syntax of each line is below.
173 # [[all] [collecting]
174 # [unaware] [unidentified] [identified] [*identified*]
175 # [dice boosted] [more than N dice] [more bonus than N]
176 # [worthless] [artifact] [ego] [nameless]
177 # [wanted] [unique monster's] [human] [unreadable]
178 # [first realm's] [second realm's] [first] [second] [third] [fourth]
179 # [items | weapons | armors | missiles | magical devices |
180 # lights | junks | spellbooks | hafted weapons | shields | bows |
181 # rings | amulets | suits | cloaks | helms | gloves | boots] :]
182 # [[^]part-of-item-name] [#auto-inscription-string]
185 # ======= How to use Conditional Expressions ========
187 # The lines of pickpref.prf can be disabled/enabled using
188 # conditional expressions.
189 # The syntax is the same as that of other preference files.
191 # - usage of condition expressions
193 # If result of expr is "0", all lines below are disabled.
194 # If result of expr is "1", all lines below are enabled.
195 # Caution:It cannot be nested.
197 # - usage to include other file
199 # Read a file named 'filename' as a new pick-pref file. The file
200 # must be in the user directory.
201 # Caution: Avoid naming the parent file, or the game might freeze up.
203 # - usage of operators
204 # [EQU arg1 arg2 ...]
205 # If all args are same, returns "1", or else returns "0".
206 # [IOR arg1 arg2 ...]
207 # [AND arg1 arg2 ...]
208 # IOR evaluates and returns all args' logical OR. IAND is logical AND.
210 # Returns "0" if arg is "1", or else returns "1"
211 # [LEQ arg1 arg2 ...]
212 # [GEQ arg1 arg2 ...]
213 # Compare args as string. LEQ returns "1" if (arg1 <= arg2 <= ...) ,
214 # GEQ returns "1" if (arg1 >= arg2 >= ...) otherwise returns "0".
216 # - Special variables
218 # Returns name of player race. One of below:
219 # Human, Half-Elf, Elf, Hobbit, Gnome, Dwarf, Half-Orc,
220 # Half-Troll, Amberite, High-Elf, Barbarian, Half-Ogre,
221 # Half-Giant, Half-Titan, Cyclops, Yeek, Klackon, Kobold,
222 # Nibelung, Dark-Elf, Draconian, Mindflayer, Imp, Golem,
223 # Skeleton, Zombie, Vampire, Spectre, Sprite, Beastman, Ent,
224 # Archon, Balrog, Dunadan, Shadow-Fairy, Kutar, Android,
227 # Returns name of player class. One of below:
228 # Warrior, Mage, Priest, Rogue, Ranger, Paladin,
229 # Warrior-Mage, Chaos-Warrior, Monk, Mindcrafter, High-Mage,
230 # Tourist, Imitator, BeastMaster, Sorcerer, Archer,
231 # Magic-Eater, Bard, Red-Mage, Samurai, ForceTrainer,
232 # Blue-Mage, Cavalry, Berserker, Weaponsmith, Mirror-Master,
236 # Returns player name.
238 # Returns player's first magic realm
239 # none, Life, Sorcery, Nature, Chaos, Death, Trump Arcane,
240 # Craft, Daemon, Crusade, Music, Kendo
242 # Returns player's second magic realm
244 # Returns player level as two-character string.
245 # Ex. "01","09","10","50" etc.
247 #------------------------------------------------------------------
249 # Below is an example 'pickpref.prf' file.
250 # You can copy this file to lib\user\ or ~/.angband/Hengband/.
251 # (UNIX user must copy to ~/.angband/Hengband/. Others must copy
254 #------------------------------------------------------------------
259 # Berserker cannot use magical devices; rods, wands, and scrolls.
260 ?:[EQU $CLASS Berserker]
267 unidentified lights:^Jewel#!!
268 unidentified lights:^levitation stone#!!
269 unidentified lights:^Palantir#!!
270 unidentified lights:^stone#@A0
271 unidentified lights:^star#!!
272 unidentified lights:^Incandescent Light
273 unidentified lights:^Phial#!!
275 # auto inscribe resistances (see lib/help/objects.txt#Inscriptions)
276 ~*identified* artifacts#%all
279 # pick all items which can stack your inventory without inscription.
290 ~rod of Perception#@z0!k!!
293 ~rod of Enlightenment#k!!
294 ~rod of Detection#!k!!
296 potion of Invulnerability#!k
299 potion of Augmentation
306 potion of constitution
307 potion of intelligence
314 # Magic-Eaters pick up all magical device to absorb.
315 # Skeletons is material of missiles for Archers.
316 # Ninja needs lights of darkness.
317 # Vampire needs darkness.
319 ?:[EQU $CLASS Magic-Eater]
323 ?:[EQU $CLASS Archer]
328 ?:[EQU $RACE Vampire]
333 # Destroy unless very early stage.
335 (!amulet of Adornment
336 (!potion of Apple Juice
341 # These worthless potions have some use at very early stage.
342 # Command letter '(' means, 'Don't display its location in full map command.'
349 # complex example; destroy needless food items.
350 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life] [EQU $REALM2 Life] [EQU $REALM1 Nature] [EQU $REALM2 Nature] [EQU $REALM1 Craft] [EQU $REALM2 Craft]]]
359 # Destroy useless equipment at high level.
362 # The line '!nameless armors' destroy all dragon armour!
363 # '~identified armors:dragon' will prevent this dangerous behavior.
367 ~identified armors:dragon
368 ~nameless armors:Elven Cloak
369 ~nameless armors:Shadow Cloak
370 ~nameless weapons:Diamond Edge
371 ~nameless weapons:Mace of Disruption
372 ~nameless weapons:Shield of Deflection
377 !nameless weapons:) (+0,+0)
378 !nameless armors:,+0]
381 # higher rank of your spellbooks
382 first realm's fourth Book of Kendo#!k
383 first realm's third Book of Kendo#!k
384 first realm's fourth spellbooks#@md!k
385 first realm's third spellbooks#@mc!k
386 second realm's fourth spellbooks#@mh!k
387 second realm's third spellbooks#@mg!k
389 # unidentified equipment
390 unidentified dice boosted weapons
391 unidentified more than 25 dice weapons
394 ~unidentified missiles
396 # lower rank of your spellbooks
397 collecting spellbooks
398 ~first realm's second spellbooks#@mb!k
399 ~first realm's first spellbooks#@ma!k
400 ~second realm's second spellbooks#@mf!k
401 ~second realm's first spellbooks#@me!k
406 (!unreadable first spellbooks
407 (!unreadable second spellbooks
408 (!unreadable third spellbooks:arcane
409 (!unreadable fourth spellbooks:arcane
412 # pick up for experience
413 ?:[IOR [EQU $CLASS Warrior] [EQU $CLASS Berserker] [AND [EQU $CLASS Paladin] [EQU $REALM1 Life]]]
414 (~unreadable third spellbooks:arcane
415 (~unreadable fourth spellbooks:arcane
416 unreadable fourth spellbooks
417 unreadable third spellbooks
419 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
420 unreadable fourth spellbooks:life
421 unreadable third spellbooks:life
426 (~unreadable third spellbooks:arcane
427 (~unreadable fourth spellbooks:arcane
428 unreadable fourth spellbooks
429 unreadable third spellbooks