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