OSDN Git Service

Merge branch 'master' of https://github.com/hengband/hengband
[hengbandforosx/hengbandosx.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 #     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
15 #     screen.
16 #
17 #     Important commands 
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.
28 #      'n' : Search next
29 #      'N' : Search previous
30 #
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.
38 #
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.
42 #
43 #      Notes:
44 #      Maximum number of active lines is 1009.
45 #      A line with a header '#' is a comment.
46 #
47 #
48 #    Editing the file
49 #    ---------
50 #
51 #    Command letter:
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
59 #      pick up the object.
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.
62 #
63 #      Notes:
64 #      If you want to disable the effect of the '!' indicator temporally, 
65 #      use 'always_pickup' option.
66 #
67 #
68 #    Keywords:
69 #           After the command letter may come one or more keywords.  They are:
70 #
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 #      good              : {good} items match.
84 #      nameless          : Non ego/non artifact items match.
85 #      average           : {average} items match.
86 #      rare              : Rare equipment such as Dragon armors etc. match.
87 #      common            : Any equipments except 'rare' equipment match.
88 #      wanted            : Wanted monster's corpses or skeletons match.
89 #      unique monster's  : Unique monster's corpses, skeletons or statues match.
90 #      human             : Human corpses or skeletons match.
91 #      unreadable        : Spellbooks other than those you can read match.
92 #      first realm's     : Your first magic realm's spellbooks match.
93 #      second realm's    : Your second magic realm's spellbooks match.
94 #      first             : First one of four spellbooks in each realm match.
95 #      second            : Second one of four spellbooks in each realm match.
96 #      third             : Third one of four spellbooks in each realm match.
97 #      fourth            : Fourth one of four spellbooks in each realm match.
98 #
99 #      items             : All items match. Use it with an adjective for 
100 #                          readability (i.e. "unaware items").
101 #      weapons           : All weapons including missile weapons match.
102 #      armors            : All armors match.
103 #      missiles          : Arrows, bolts, and shots match.
104 #      magical devices   : Wands, staffs, rods and scrolls match.
105 #      lights            : Light sources match.
106 #      junks             : Junk items like Shard of Pottery or etc. match.
107 #      corpses or skeletons : Corpses or skeletons of monsters match.
108 #      spellbooks        : All books match.
109 #      favorite weapons  : Weapons suitable for your class (for Priest, Monk,
110 #                          BeastMaster, ForceTrainer, Cavalry, and Ninja)
111 #
112 #      You may also use keywords which match specified kinds of equipment:
113 #      weapons, armors, missiles, magical devices, lights, junks, spellbooks, 
114 #      hafted weapons, shields, bows, rings, amulets, suits, cloaks, helms, 
115 #      gloves, boots
116 #
117 #
118 #    Character strings:
119 #           After the keywords, you may write a character string. Only items 
120 #      whose name contains this character string as part of their name match. 
121 #      Upper or lower case makes no difference.
122 #           You must insert a ':' between your special keywords and character 
123 #      string, if both exist in one line.
124 #
125 #    Force start-of-line matching:
126 #      If the first character in a character string is '^', then the 
127 #      character string must match the beginning of a line.
128 #
129 #    !Mace           // Destroy Maces and Lead-Filled Maces.
130 #    !^Mace          // Destroy only Maces.
131 #
132 #
133 #    Examples:
134 #
135 #    !worthless items
136 #    Meaning:  "destroy all items that are worthless"
137 #
138 #    unaware potion
139 #    Meaning:  "pick up all unaware potions"
140 #
141 #    ~unidentified lites
142 #    Meaning:  "leave all unidentified light sources on the ground"
143 #
144 #    unidentified more than 25 dice weapons
145 #    Meaning:  "pick up all weapons with dice that total more than 25.  A 
146 #         weapon that is 2d13 qualifies, a weapon that is 5d5 does not."
147 #
148 #    Acquirement
149 #    Meaning:  "pick up anything that includes in its name the word 
150 #    'Acquirement'"
151 #
152 #    potion of Experience
153 #    Meaning:  "pick up anything named 'potion of experience'"
154 #
155 #    Lights:stone
156 #    Meaning:  "Pick up light sources named stone"
157 #
158 #    gloves:slaying
159 #    Meaning:  "Pick up gauntlets of slaying. Not rings of slaying."
160 #
161 #
162 #    Special Notes:
163 #    
164 #      Lines will be evaluated in order, and first matched line will be 
165 #      applied. So you can write names of specific excellent items to pick 
166 #      up, followed by a general item name with '!' to destroy useless items.
167 #    
168 #      ! Tips
169 #      !     In full map command ('M'), you can press M, N, K, or D to 
170 #      ! display locations of items for auto-pickup, leaving, auto-destroy 
171 #      ! or both auto-pickup and leaving.
172 #      !     Additional command letter '(' prevents this display.
173 #      !
174 #
175 #      If you begin the last string in a line with '#', this string will
176 #      be automatically inscribed on the item.
177 #
178 #
179 #      Strict syntax of each line is below.
180 #      
181 #      [! ~ ; (]
182 #      [[all] [collecting]
183 #       [unaware] [unidentified] [identified] [*identified*] 
184 #       [artifact] [ego] [good] [nameless] [average]
185 #       [worthless] [rare] [common]
186 #       [dice boosted] [more than N dice] [more bonus than N] 
187 #       [wanted] [unique monster's] [human] [unreadable] 
188 #       [first realm's] [second realm's] [first] [second] [third] [fourth] 
189 #       [items | weapons | favorite weapons | armors | missiles |
190 #        magical devices | lights | junks | corpses or skeletons | spellbooks |
191 #        hafted weapons | shields | bows | rings | amulets | suits | cloaks |
192 #        helms | gloves | boots] :]
193 #      [[^]part-of-item-name] [#auto-inscription-string]
194 #    
195 #    
196 #    =======  How to use Conditional Expressions  ========
197 #    
198 #      The lines of pickpref.prf can be disabled/enabled using 
199 #      conditional expressions. 
200 #      The syntax is the same as that of other preference files.
201 #    
202 #      - usage of condition expressions
203 #        ?:expr
204 #          If result of expr is "0", all lines below are disabled.
205 #          If result of expr is "1", all lines below are enabled.
206 #          Caution:It cannot be nested.
207 #    
208 #      - usage to include other file
209 #        %:filename
210 #          Read a file named 'filename' as a new pick-pref file. The file 
211 #          must be in the user directory.
212 #    
213 #      - usage of operators
214 #        [EQU arg1 arg2 ...]
215 #          If all args are the same as arg1, returns "1", or else returns "0".
216 #        [IOR arg1 arg2 ...]
217 #        [AND arg1 arg2 ...]
218 #          IOR evaluates and returns all args' logical OR. AND is logical AND.
219 #        [NOT arg]
220 #          Returns "0" if arg is "1", or else returns "1"
221 #        [LEQ arg1 arg2 ...]
222 #        [GEQ arg1 arg2 ...]
223 #          Compare args as string. LEQ returns "1" if (arg1 <= arg2 <= ...) ,
224 #          GEQ returns "1" if (arg1 >= arg2 >= ...) otherwise returns "0".
225 #    
226 #      - Special variables
227 #        $RACE
228 #         Returns name of player race. One of below:
229 #          Human, Half-Elf, Elf, Hobbit, Gnome, Dwarf, Half-Orc,
230 #          Half-Troll, Amberite, High-Elf, Barbarian, Half-Ogre,
231 #          Half-Giant, Half-Titan, Cyclops, Yeek, Klackon, Kobold,
232 #          Nibelung, Dark-Elf, Draconian, Mindflayer, Imp, Golem,
233 #          Skeleton, Zombie, Vampire, Spectre, Sprite, Beastman, Ent,
234 #          Archon, Balrog, Dunadan, Shadow-Fairy, Kutar, Android,
235 #          Merfolk
236 #
237 #        $CLASS
238 #         Returns name of player class. One of below:
239 #          Warrior, Mage, Priest, Rogue, Ranger, Paladin,
240 #          Warrior-Mage, Chaos-Warrior, Monk, Mindcrafter, High-Mage,
241 #          Tourist, Imitator, BeastMaster, Sorcerer, Archer,
242 #          Magic-Eater, Bard, Red-Mage, Samurai, ForceTrainer,
243 #          Blue-Mage, Cavalry, Berserker, Weaponsmith, Mirror-Master,
244 #          Ninja, Sniper, Elementalist
245 #
246 #        $PLAYER
247 #         Returns player name.
248 #        $REALM1
249 #         Returns player's first magic realm
250 #          none, Life, Sorcery, Nature, Chaos, Death, Trump, Arcane,
251 #          Craft, Daemon, Crusade, Music, Kendo, Hex
252 #        $REALM2
253 #         Returns player's second magic realm
254 #        $LEVEL
255 #         Returns player level as two-character string.
256 #          Ex. "01","09","10","50" etc.
257 #        $MONEY
258 #         Returns player money as 9 character string.
259 #         Ex. "000012345" etc.
260 #
261 #------------------------------------------------------------------
262 #
263 #    Below is an example 'pickpref.prf' file.
264 #    You can copy this file to lib\user\ or ~/.angband/Hengband/.
265 #    (UNIX user must copy to ~/.angband/Hengband/. Others must copy 
266 #    to  lib\user\ .)
267 #
268 #------------------------------------------------------------------
269
270 wanted corpse
271 wanted Skeleton
272
273 # Berserker cannot use magical devices; rods, wands, and scrolls.
274 ?:[EQU $CLASS Berserker]
275 !magical devices
276 ?:1
277
278 unaware items
279
280 #Artifact lights
281 unidentified lights:^Jewel#!!
282 unidentified lights:^levitation stone#!!
283 unidentified lights:^Palantir#!!
284 unidentified lights:^stone#@A0
285 unidentified lights:^star#!!
286 unidentified lights:^Incandescent Light
287 unidentified lights:^Phial#!!
288
289 # auto inscribe resistances (see lib/help/objects.txt#Inscriptions)
290 ~*identified* artifacts#%all
291
292 #
293 # pick all items which can stack your inventory without inscription.
294 #
295 collecting rod
296 collecting potion
297 collecting scroll
298 collecting missiles
299 (collecting items
300
301 #
302 # good items
303 #
304 ~rod of Perception#@z0!k!!
305 ~rod of speed#!k!!
306 ~rod of Healing#!k!!
307 ~rod of Enlightenment#k!!
308 ~rod of Detection#!k!!
309
310 potion of Invulnerability#!k
311 Acquirement#!k
312 potion of Experience
313 potion of Augmentation
314 *Destruction*
315 Genocide
316
317 potion of strength
318 potion of wisdom
319 potion of dexterity
320 potion of constitution
321 potion of intelligence
322 potion of Charisma
323
324 potion of life#!k
325 healing#!k
326
327 #
328 # Magic-Eaters pick up all magical device to absorb.
329 # Skeletons is material of missiles for Archers.
330 # Ninja needs lights of darkness.
331 # Vampire needs darkness.
332
333 ?:[EQU $CLASS Magic-Eater]
334 rod of 
335 staff of 
336 wand of 
337 ?:[EQU $CLASS Archer]
338 worthless skeleton
339 ?:[EQU $CLASS Ninja]
340 ~lights:darkness
341 Iron Spike#@v0
342 ?:[EQU $RACE Vampire]
343 (~scroll of darkness
344 (~staff of darkness
345 ?:1
346
347 # Destroy unless very early stage.
348 ?:[GEQ $LEVEL 10]
349 (!amulet of Adornment
350 (!potion of Apple Juice
351 (!Empty Bottle
352 (!potion of water
353 ?:1
354
355 # These worthless potions have some use at very early stage.
356 # Command letter '(' means, 'Don't display its location in full map command.'
357 ?:[LEQ $LEVEL 20]
358 (~potion of booze
359 (~potion of Slowness
360 (~potion of Sleep
361 ?:1
362
363 # complex example; destroy needless food items.
364 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life Nature Craft] [EQU $REALM2 Life Nature Craft]]]
365 (!food
366 (!Slime Mold
367 (!of Elvish Waybread
368 ?:1
369
370
371 #
372 # Destroy useless equipment at high level.
373 #
374 # Beware!!!!
375 #    The line '!nameless armors' destroy all dragon armour!
376 #    '~identified armors:dragon' will prevent this dangerous behavior.
377 #
378
379 ?:[GEQ $LEVEL 40]
380 ~identified armors:dragon
381 ~nameless armors:Elven Cloak
382 ~nameless armors:Shadow Cloak
383 ~nameless weapons:Diamond Edge
384 ~nameless weapons:Mace of Disruption
385 ~nameless weapons:Shield of Deflection
386 !nameless weapons
387 !nameless armors
388
389 ?:[GEQ $LEVEL 20]
390 !nameless weapons:) (+0,+0)
391 !nameless armors:,+0]
392 ?:1
393
394 # higher rank of your spellbooks
395 first realm's fourth Book of Kendo#!k
396 first realm's third Book of Kendo#!k
397 first realm's fourth spellbooks#@md!k
398 first realm's third spellbooks#@mc!k
399 second realm's fourth spellbooks#@mh!k
400 second realm's third spellbooks#@mg!k
401
402 # unidentified equipment
403 unidentified dice boosted weapons
404 unidentified more than 25 dice weapons
405 unidentified weapons
406 unidentified armors
407 ~unidentified missiles
408
409 # lower rank of your spellbooks
410 collecting spellbooks
411 ~first realm's second spellbooks#@mb!k
412 ~first realm's first spellbooks#@ma!k
413 ~second realm's second spellbooks#@mf!k
414 ~second realm's first spellbooks#@me!k
415
416 # other spellbooks
417
418 ?:[GEQ $LEVEL 30]
419 (!unreadable first spellbooks
420 (!unreadable second spellbooks
421 (!unreadable third spellbooks:arcane
422 (!unreadable fourth spellbooks:arcane
423 ?:1
424
425 # pick up for experience
426 ?:[EQU $CLASS Warrior Berserker]
427 (~unreadable fourth spellbooks:arcane
428 unreadable fourth spellbooks
429 (~unreadable third spellbooks:arcane
430 unreadable third spellbooks
431 ?:1
432 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Crusade] [GEQ $LEVEL 30]]
433 (~unreadable fourth spellbooks:life
434 (~unreadable third spellbooks:life
435 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Crusade]]
436 (~unreadable fourth spellbooks:arcane
437 unreadable fourth spellbooks
438 (~unreadable third spellbooks:arcane
439 unreadable third spellbooks
440 ?:1
441 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
442 unreadable fourth spellbooks:life
443 unreadable fourth spellbooks:crusade
444 unreadable third spellbooks:life
445 unreadable third spellbooks:crusade
446 ?:1
447
448 # pick up for money
449 ?:[LEQ $LEVEL 29]
450 (~unreadable third spellbooks:arcane
451 (~unreadable fourth spellbooks:arcane
452 unreadable fourth spellbooks
453 unreadable third spellbooks
454 ?:1
455