OSDN Git Service

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