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