OSDN Git Service

Initial revision
[hengband/hengband.git] / autopick_eng.txt
1 # autopick.txt for Hengband
2 #
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 
7 # copy to lib/user/.)
8 #
9 #    =====   How to use auto-picker/destroyer   ========
10 #    
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.
15 #      
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.
19 #
20 #      You may use the '$' command within the game to reread auto-
21 #      picker files.
22 #
23 #      Notes:
24 #      Maximum number of active lines is 1009.
25 #      A line with a header '#' is a comment.
26 #
27 #
28 #    Editing the file
29 #    ---------
30 #
31 #    Command letter:
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.
37 #
38 #      Notes:
39 #      If you want to disable the effect of the '!' indicator temporally, 
40 #      use 'always_pickup' option.
41 #
42 #
43 #    Keywords:
44 #           After the command letter may come one or more keywords.  They are:
45 #
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.
66 #
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.
78 #
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, 
82 #      gloves, boots
83 #
84 #
85 #    Character strings:
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.
91 #
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.
95 #
96 #    !Mace           // Destroy Maces and Lead-Filled Maces.
97 #    !^Mace          // Destroy only Maces.
98 #
99 #
100 #    Examples:
101 #
102 #    !worthless items
103 #    Meaning:  "destroy all items that are worthless"
104 #
105 #    unaware potion
106 #    Meaning:  "pick up all unaware potions"
107 #
108 #    ~unidentified lites
109 #    Meaning:  "leave all unidentified light sources on the ground"
110 #
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."
114 #
115 #    Acquirement
116 #    Meaning:  "pick up anything that includes in its name the word 
117 #    'Acquirement'"
118 #
119 #    potion of Experience
120 #    Meaning:  "pick up anything named 'potion of experience'"
121 #
122 #    Lights:stone
123 #    Meaning:  "Pick up light sources named stone"
124 #
125 #    gloves:slaying
126 #    Meaning:  "Pick up gauntlets of slaying. Not rings of slaying."
127 #
128 #
129 #    Special Notes:
130 #    
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.
134 #    
135 #      ! Tips
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'.
140 #      !
141 #
142 #      If you begin the last string in a line with '#', this string will
143 #      be automatically inscribed on the item.
144 #
145 #
146 #      Strict syntax of each line is below.
147 #      
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]
156 #    
157 #    
158 #    =======  How to use Conditional Expressions  ========
159 #    
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.
163 #    
164 #      - usage of condition expressions
165 #        ?:expr
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.
169 #    
170 #      - usage to include other file
171 #        %:filename
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.
175 #    
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.
182 #        [NOT arg]
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".
188 #    
189 #      - Special variables
190 #        $RACE
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,
197 #
198 #        $CLASS
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
205 #
206 #        $PLAYER
207 #         Returns player name.
208 #        $REALM1
209 #         Returns player's first magic realm
210 #          Life, Sorcery, Nature, Chaos, Death, Trump
211 #          Arcane, Craft, Daemon, Music, Kendo
212 #        $REALM2
213 #         Returns player's second magic realm
214 #        $LEVEL
215 #         Returns player level as two-character string.
216 #          Ex. "01","09","10","50" etc.
217 #
218 #------------------------------------------------------------------
219 #
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 
223 #    to  lib/user/.)
224 #
225 #------------------------------------------------------------------
226
227 wanted corpse
228 wanted Skeleton
229
230 ?:[EQU $CLASS Berserker]
231 !magical devices
232 ?:1
233
234 unaware items
235
236 #Artifact lights
237 unidentified lites:^Jewel#!!
238 unidentified lites:^stone
239 unidentified lites:^star#!!
240 unidentified lites:^Incandescent Light
241 unidentified lites:^Phial#!!
242
243 # auto inscribe resistances...
244 ~*identified* weapons#%
245 ~*identified* armors#%
246
247 # good items
248 ~rod of Perception#!k!!
249 ~rod of speed#!k!!
250 ~rod of Healing#!k!!
251 ~rod of Enlightenment#!k!!
252 ~rod of Detection#!k!d!!
253
254 potion of Invulnerability#!*
255 Acquirement#!k
256 potion of Experience
257 potion of Augmentation
258 *Destruction*
259 Genocide
260
261 potion of strength
262 potion of wisdom
263 potion of dexterity
264 potion of constitution
265 potion of intelligence
266 potion of Charisma
267
268 potion of life#!*
269 healing#!k
270
271 # pick all items which can stack your inventry
272
273 collecting rod
274 collecting potion
275 collecting scroll
276
277 #
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.
282
283 ?:[EQU $CLASS Magic-Eater]
284 rod of 
285 staff of 
286 wand of 
287 ?:[EQU $CLASS Archer]
288 skeleton of 
289 ?:[EQU $CLASS Ninja]
290 ~lights:darkness
291 Iron Spike#@v0
292 ?:[EQU $RACE Vampire]
293 ~scroll of darkness
294 ~staff of darkness
295 ?:1
296
297 # Destroy unless very early stage.
298 ?:[GEQ $LEVEL 10]
299 !amulet of Adornment
300 !potion of Apple Juice
301 !Empty Bottle
302 !potion of water
303 ?:1
304
305 # These have some use at very early stage.
306 ?:[LEQ $LEVEL 20]
307 ~potion of booze
308 ~potion of Slowness
309 ~potion of Sleep
310 ?:1
311
312 # complex example
313 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life] [EQU $REALM2 Life] [EQU $REALM1 Nature] [EQU $REALM2 Nature] [EQU $REALM1 Craft] [EQU $REALM2 Craft]]]
314 !Satisfy Hunger
315 !food
316 !Slime Mold
317 !of Elvish Waybread
318 ?:1
319
320
321 #
322 # Destroy useless equipment at high level.
323 #
324 ?:[GEQ $LEVEL 40]
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
331 !nameless weapons
332 !nameless armors
333
334 ?:[GEQ $LEVEL 20]
335 !nameless weapons:) (+0,+0)
336 !nameless armors:,+0]
337 ?:1
338
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
346
347 # unidentified equipment
348 unidentified dice boosted weapons
349 unidentified more than 25 dice weapons
350 unidentified weapons
351 unidentified armors
352 ~unidentified missiles
353
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
360
361 # other spellbooks
362
363 ?:[GEQ $LEVEL 30]
364 !unreadable first spellbooks
365 !unreadable second spellbooks
366 !unreadable third spellbooks:arcane
367 !unreadable fourth spellbooks:arcane
368 ?:1
369
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
376 ?:1
377 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
378 unreadable fourth spellbooks:life
379 unreadable third spellbooks:life
380 ?:1
381
382 # pick up for money
383 ?:[LEQ $LEVEL 29]
384 ~unreadable third spellbooks:arcane
385 ~unreadable fourth spellbooks:arcane
386 unreadable fourth spellbooks
387 unreadable third spellbooks
388 ?:1