OSDN Git Service

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