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 # Create a file named "pickpref.prf" or "pickpref-<<name>>.prf"
12 # (or move and rename this file) in the same directory as your
13 # user preference files. This will be ~/.angband/Hengband/
14 # for UNIX, or hengband/lib/user/ for other operating systems.
16 # The game will read the file "pickpref-<<current character
17 # name>>.prf" first and then read the file "pickpref.prf". The
18 # first-read file takes priority.
20 # You may use the '$' command within the game to reread auto-
24 # Maximum number of active lines is 1009.
25 # A line with a header '#' is a comment.
32 # Each line determines the actions taken when you step over a kind
33 # of object. Starting a line with '!' indicates that you wish to destroy
34 # this kind of object. Starting a line with '~' indicates that you wish
35 # to leave this kind of object on the floor. Otherwise, your character
36 # will automatically attempt to pick up the object.
39 # If you want to disable the effect of the '!' indicator temporally,
40 # use 'always_pickup' option.
44 # After the command letter may come one or more keywords. They are:
46 # all : All items match.
47 # collecting : Matches if you already have that same item.
48 # unidentified : Unidentified items match.
49 # identified : Identified items match.
50 # *identified* : *Identified* items match.
51 # nameless : Non ego/non artifact items match.
52 # unaware : Items with unknown effects match.
53 # worthless : Items which you cannot sell match.
54 # dice boosted : Weapons with boosted damage dice match.
55 # more than nn dice : Weapons with dice (dd * ds) better than nn match.
56 # wanted : Wanted monster's corpses or skeletons match.
57 # unique monster's : Unique monster's corpses, skeletons or statues match.
58 # human : Human corpses or skeletons match.
59 # unreadable : Spellbooks other than those you can read match.
60 # first realm's : Your first magic realm's spellbooks match.
61 # second realm's : Your second magic realm's spellbooks match.
62 # first : First one of four spellbooks in each realm match.
63 # second : Second one of four spellbooks in each realm match.
64 # third : Third one of four spellbooks in each realm match.
65 # fourth : Fourth one of four spellbooks in each realm match.
67 # items : All items match. Use it with an adjective for
68 # readability (i.e. "unaware items").
69 # artifacts : All artifacts match.
70 # weapons : All weapons including missile weapons match.
71 # armors : All armors match.
72 # missiles : Arrows, bolts, and shots match.
73 # magical devices : Wands, staffs and rods match.
74 # lights : Light sources match.
75 # junks : Junk items like Shard of Pottery or etc. match.
76 # spellbooks : All books match.
77 # hafted weapons : Hafted weapons match. For priests.
79 # You may also use keywords which match specified kinds of equipment:
80 # weapons, armors, missiles, magical devices, lights, junks, spellbooks,
81 # hafted weapons, shields, bows, rings, amulets, suits, cloaks, helms,
86 # After the keywords, you may write a character string. Only items
87 # whose name contains this character string as part of their name match.
88 # Upper or lower case makes no difference.
89 # You must insert a ':' between your special keywords and character
90 # string, if both exist in one line.
92 # Force start-of-line matching:
93 # If the first character in a character string is '^', then the
94 # character string must match the beginning of a line.
96 # !Mace // Destroy Maces and Lead-Filled Maces.
97 # !^Mace // Destroy only Maces.
103 # Meaning: "destroy all items that are worthless"
106 # Meaning: "pick up all unaware potions"
108 # ~unidentified lites
109 # Meaning: "leave all unidentified light sources on the ground"
111 # unidentified more than 25 dice weapons
112 # Meaning: "pick up all weapons with dice that total more than 25. A
113 # weapon that is 2d13 qualifies, a weapon that is 5d5 does not."
116 # Meaning: "pick up anything that includes in its name the word
119 # potion of Experience
120 # Meaning: "pick up anything named 'potion of experience'"
123 # Meaning: "Pick up light sources named stone"
126 # Meaning: "Pick up gauntlets of slaying. Not rings of slaying."
131 # Lines will be evaluated in order, and first matched line will be
132 # applied. So you can write names of specific excellent items to pick
133 # up, followed by a general item name with '!' to destroy useless items.
136 # ! In full map command ('M'), you can press 'M' again to
137 # ! display auto-pick items. The behavior of the display
138 # ! is changed by options in
139 # ! '(6) Object Auto-pick/Destroy Options'.
142 # If you begin the last string in a line with '#', this string will
143 # be automatically inscribed on the item.
146 # Strict syntax of each line is below.
148 # [[all] [collecting] [unidentified] [identified] [*identified*]
149 # [nameless] [unaware] [worthless] [dice boosted] [more than nn dice]
150 # [wanted] [unique monster's] [human] [unreadable]
151 # [first realm's] [second realm's] [first] [second] [third] [fourth]
152 # [items | artifacts | weapons | armors | missiles | magical devices |
153 # lights | junks | spellbooks | hafted weapons | shields | bows |
154 # rings | amulets | suits | cloaks | helms | gloves | boots] :]
155 # [[^]part-of-item-name] [#auto-inscription-string]
158 # ======= How to use Conditional Expressions ========
160 # The lines of pickpref.prf can be disabled/enabled using
161 # conditional expressions.
162 # The syntax is the same as that of other preference files.
164 # - usage of condition expressions
166 # If result of expr is "0", all lines below are disabled.
167 # If result of expr is "1", all lines below are enabled.
168 # Caution:It cannot be nested.
170 # - usage to include other file
172 # Read a file named 'filename' as a new pick-pref file. The file
173 # must be in the user directory.
174 # Caution: Avoid naming the parent file, or the game might freeze up.
176 # - usage of operators
177 # [EQU arg1 arg2 ...]
178 # If all args are same, returns "1", or else returns "0".
179 # [IOR arg1 arg2 ...]
180 # [AND arg1 arg2 ...]
181 # IOR evaluates and returns all args' logical OR. IAND is logical AND.
183 # Returns "0" if arg is "1", or else returns "1"
184 # [LEQ arg1 arg2 ...]
185 # [GEQ arg1 arg2 ...]
186 # Compare args as string. LEQ returns "1" if (arg1 <= arg2 <= ...) ,
187 # GEQ returns "1" if (arg1 >= arg2 >= ...) otherwise returns "0".
189 # - Special variables
191 # Returns name of player race. One of below:
192 # Human, Half-Elf, Elf, Hobbit, Gnome, Dwarf, Half-Orc, Half-Troll,
193 # Amberite, High-Elf, Barbarian, Half-Ogre, Half-Giant, Half-Titan,
194 # Cyclops, Yeek, Klackon, Kobold, Nibelung, Dark-Elf, Draconian,
195 # Mindflayer, Imp, Golem, Skeleton, Zombie, Vampire, Spectre, Sprite,
196 # Beastman, Ent, Archon, Balrog, Dunadan, Shadow-Fairy, Kutar, Android,
199 # Returns name of player class. One of below:
200 # Warrior, Mage, Priest, Rogue, Ranger, Paladin, Warrior-Mage,
201 # Chaos-Warrior, Monk, Mindcrafter, High-Mage, Tourist, Imitator,
202 # BeastMaster, Sorcerer, Archer, Magic-Eater, Bard, Red-Mage, Samurai,
203 # ForceTrainer, Blue-Mage, Cavalry, Berserker, Weaponsmith,
204 # Mirror-Master, Ninja
207 # Returns player name.
209 # Returns player's first magic realm
210 # Life, Sorcery, Nature, Chaos, Death, Trump
211 # Arcane, Craft, Daemon, Music, Kendo
213 # Returns player's second magic realm
215 # Returns player level as two-character string.
216 # Ex. "01","09","10","50" etc.
218 #------------------------------------------------------------------
220 # Below is an example 'pickpref.prf' file.
221 # You can copy this file to lib/user/ or ~/.angband/Hengband/.
222 # (UNIX user must copy to ~/.angband/Hengband/. Others must copy
225 #------------------------------------------------------------------
230 ?:[EQU $CLASS Berserker]
237 unidentified lites:^Jewel#!!
238 unidentified lites:^stone
239 unidentified lites:^star#!!
240 unidentified lites:^Incandescent Light
241 unidentified lites:^Phial#!!
243 # auto inscribe resistances...
244 ~*identified* weapons#%
245 ~*identified* armors#%
248 ~rod of Perception#!k!!
251 ~rod of Enlightenment#!k!!
252 ~rod of Detection#!k!d!!
254 potion of Invulnerability#!*
257 potion of Augmentation
264 potion of constitution
265 potion of intelligence
271 # pick all items which can stack your inventry
278 # Magic-Eaters pick up all magical device to absorb.
279 # Skeletons is material of missiles for Archers.
280 # Ninja needs lights of darkness.
281 # Vampire needs darkness.
283 ?:[EQU $CLASS Magic-Eater]
287 ?:[EQU $CLASS Archer]
292 ?:[EQU $RACE Vampire]
297 # Destroy unless very early stage.
300 !potion of Apple Juice
305 # These have some use at very early stage.
313 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life] [EQU $REALM2 Life] [EQU $REALM1 Nature] [EQU $REALM2 Nature] [EQU $REALM1 Craft] [EQU $REALM2 Craft]]]
322 # Destroy useless equipment at high level.
325 ~identified armors:dragon
326 ~nameless armors:Elven Cloak
327 ~nameless armors:Shadow Cloak
328 ~nameless weapons:Diamond Edge
329 ~nameless weapons:Mace of Disruption
330 ~nameless weapons:Shield of Deflection
335 !nameless weapons:) (+0,+0)
336 !nameless armors:,+0]
339 # higher rank of your spellbooks
340 first realm's fourth Book of Samurai Arts#!k
341 first realm's third Book of Samurai Arts#!k
342 first realm's fourth spellbooks#@md!k
343 first realm's third spellbooks#@mc!k
344 second realm's fourth spellbooks#@mh!k
345 second realm's third spellbooks#@mg!k
347 # unidentified equipment
348 unidentified dice boosted weapons
349 unidentified more than 25 dice weapons
352 ~unidentified missiles
354 # lower rank of your spellbooks
355 collecting spellbooks
356 ~first realm's second spellbooks#@mb!k
357 ~first realm's first spellbooks#@ma!k
358 ~second realm's second spellbooks#@mf!k
359 ~second realm's first spellbooks#@me!k
364 !unreadable first spellbooks
365 !unreadable second spellbooks
366 !unreadable third spellbooks:arcane
367 !unreadable fourth spellbooks:arcane
370 # pick up for experience
371 ?:[IOR [EQU $CLASS Warrior] [EQU $CLASS Berserker] [AND [EQU $CLASS Paladin] [EQU $REALM1 Life]]]
372 ~unreadable third spellbooks:arcane
373 ~unreadable fourth spellbooks:arcane
374 unreadable fourth spellbooks
375 unreadable third spellbooks
377 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
378 unreadable fourth spellbooks:life
379 unreadable third spellbooks:life
384 ~unreadable third spellbooks:arcane
385 ~unreadable fourth spellbooks:arcane
386 unreadable fourth spellbooks
387 unreadable third spellbooks