OSDN Git Service

5c5f44bc617d61d9987e1a28f3bad4644dc7606a
[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 #     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 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.
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 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.
59 #
60 #      Notes:
61 #      If you want to disable the effect of the '!' indicator temporally, 
62 #      use 'always_pickup' option.
63 #
64 #
65 #    Keywords:
66 #           After the command letter may come one or more keywords.  They are:
67 #
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.
91 #
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.
102 #
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, 
106 #      gloves, boots
107 #
108 #
109 #    Character strings:
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.
115 #
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.
119 #
120 #    !Mace           // Destroy Maces and Lead-Filled Maces.
121 #    !^Mace          // Destroy only Maces.
122 #
123 #
124 #    Examples:
125 #
126 #    !worthless items
127 #    Meaning:  "destroy all items that are worthless"
128 #
129 #    unaware potion
130 #    Meaning:  "pick up all unaware potions"
131 #
132 #    ~unidentified lites
133 #    Meaning:  "leave all unidentified light sources on the ground"
134 #
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."
138 #
139 #    Acquirement
140 #    Meaning:  "pick up anything that includes in its name the word 
141 #    'Acquirement'"
142 #
143 #    potion of Experience
144 #    Meaning:  "pick up anything named 'potion of experience'"
145 #
146 #    Lights:stone
147 #    Meaning:  "Pick up light sources named stone"
148 #
149 #    gloves:slaying
150 #    Meaning:  "Pick up gauntlets of slaying. Not rings of slaying."
151 #
152 #
153 #    Special Notes:
154 #    
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.
158 #    
159 #      ! Tips
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.
164 #      !
165 #
166 #      If you begin the last string in a line with '#', this string will
167 #      be automatically inscribed on the item.
168 #
169 #
170 #      Strict syntax of each line is below.
171 #      
172 #      [! ~ (]
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]
183 #    
184 #    
185 #    =======  How to use Conditional Expressions  ========
186 #    
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.
190 #    
191 #      - usage of condition expressions
192 #        ?:expr
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.
196 #    
197 #      - usage to include other file
198 #        %:filename
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.
202 #    
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.
209 #        [NOT arg]
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".
215 #    
216 #      - Special variables
217 #        $RACE
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,
225 #
226 #        $CLASS
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,
233 #          Ninja
234 #
235 #        $PLAYER
236 #         Returns player name.
237 #        $REALM1
238 #         Returns player's first magic realm
239 #          none, Life, Sorcery, Nature, Chaos, Death, Trump Arcane,
240 #          Craft, Daemon, Crusade, Music, Kendo
241 #        $REALM2
242 #         Returns player's second magic realm
243 #        $LEVEL
244 #         Returns player level as two-character string.
245 #          Ex. "01","09","10","50" etc.
246 #
247 #------------------------------------------------------------------
248 #
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 
252 #    to  lib\user\ .)
253 #
254 #------------------------------------------------------------------
255
256 wanted corpse
257 wanted Skeleton
258
259 # Berserker cannot use magical devices; rods, wands, and scrolls.
260 ?:[EQU $CLASS Berserker]
261 !magical devices
262 ?:1
263
264 unaware items
265
266 #Artifact lights
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#!!
274
275 # auto inscribe resistances (see lib/help/objects.txt#Inscriptions)
276 ~*identified* artifacts#%all
277
278 #
279 # pick all items which can stack your inventory without inscription.
280 #
281 collecting rod
282 collecting potion
283 collecting scroll
284 collecting missiles
285 (collecting items
286
287 #
288 # good items
289 #
290 ~rod of Perception#@z0!k!!
291 ~rod of speed#!k!!
292 ~rod of Healing#!k!!
293 ~rod of Enlightenment#k!!
294 ~rod of Detection#!k!!
295
296 potion of Invulnerability#!k
297 Acquirement#!k
298 potion of Experience
299 potion of Augmentation
300 *Destruction*
301 Genocide
302
303 potion of strength
304 potion of wisdom
305 potion of dexterity
306 potion of constitution
307 potion of intelligence
308 potion of Charisma
309
310 potion of life#!k
311 healing#!k
312
313 #
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.
318
319 ?:[EQU $CLASS Magic-Eater]
320 rod of 
321 staff of 
322 wand of 
323 ?:[EQU $CLASS Archer]
324 skeleton of 
325 ?:[EQU $CLASS Ninja]
326 ~lights:darkness
327 Iron Spike#@v0
328 ?:[EQU $RACE Vampire]
329 (~scroll of darkness
330 (~staff of darkness
331 ?:1
332
333 # Destroy unless very early stage.
334 ?:[GEQ $LEVEL 10]
335 (!amulet of Adornment
336 (!potion of Apple Juice
337 (!Empty Bottle
338 (!potion of water
339 ?:1
340
341 # These worthless potions have some use at very early stage.
342 # Command letter '(' means, 'Don't display its location in full map command.'
343 ?:[LEQ $LEVEL 20]
344 (~potion of booze
345 (~potion of Slowness
346 (~potion of Sleep
347 ?:1
348
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]]]
351 (!Satisfy Hunger
352 (!food
353 (!Slime Mold
354 (!of Elvish Waybread
355 ?:1
356
357
358 #
359 # Destroy useless equipment at high level.
360 #
361 # Beware!!!!
362 #    The line '!nameless armors' destroy all dragon armour!
363 #    '~identified armors:dragon' will prevent this dangerous behavior.
364 #
365
366 ?:[GEQ $LEVEL 40]
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
373 !nameless weapons
374 !nameless armors
375
376 ?:[GEQ $LEVEL 20]
377 !nameless weapons:) (+0,+0)
378 !nameless armors:,+0]
379 ?:1
380
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
388
389 # unidentified equipment
390 unidentified dice boosted weapons
391 unidentified more than 25 dice weapons
392 unidentified weapons
393 unidentified armors
394 ~unidentified missiles
395
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
402
403 # other spellbooks
404
405 ?:[GEQ $LEVEL 30]
406 (!unreadable first spellbooks
407 (!unreadable second spellbooks
408 (!unreadable third spellbooks:arcane
409 (!unreadable fourth spellbooks:arcane
410 ?:1
411
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
418 ?:1
419 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
420 unreadable fourth spellbooks:life
421 unreadable third spellbooks:life
422 ?:1
423
424 # pick up for money
425 ?:[LEQ $LEVEL 29]
426 (~unreadable third spellbooks:arcane
427 (~unreadable fourth spellbooks:arcane
428 unreadable fourth spellbooks
429 unreadable third spellbooks
430 ?:1
431