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, Half-Troll,
195 #          Amberite, High-Elf, Barbarian, Half-Ogre, Half-Giant, Half-Titan,
196 #          Cyclops, Yeek, Klackon, Kobold, Nibelung, Dark-Elf, Draconian,
197 #          Mindflayer, Imp, Golem, Skeleton, Zombie, Vampire, Spectre, Sprite,
198 #          Beastman, Ent, Archon, Balrog, Dunadan, Shadow-Fairy, Kutar, Android,
199 #
200 #        $CLASS
201 #         Returns name of player class. One of below:
202 #          Warrior, Mage, Priest, Rogue, Ranger, Paladin, Warrior-Mage,
203 #          Chaos-Warrior, Monk, Mindcrafter, High-Mage, Tourist, Imitator,
204 #          BeastMaster, Sorcerer, Archer, Magic-Eater, Bard, Red-Mage, Samurai,
205 #          ForceTrainer, Blue-Mage, Cavalry, Berserker, Weaponsmith, 
206 #          Mirror-Master, Ninja
207 #
208 #        $PLAYER
209 #         Returns player name.
210 #        $REALM1
211 #         Returns player's first magic realm
212 #          Life, Sorcery, Nature, Chaos, Death, Trump
213 #          Arcane, Craft, Daemon, Music, Kendo
214 #        $REALM2
215 #         Returns player's second magic realm
216 #        $LEVEL
217 #         Returns player level as two-character string.
218 #          Ex. "01","09","10","50" etc.
219 #
220 #------------------------------------------------------------------
221 #
222 #    Below is an example 'pickpref.prf' file.
223 #    You can copy this file to lib/user/ or ~/.angband/Hengband/.
224 #    (UNIX user must copy to ~/.angband/Hengband/. Others must copy 
225 #    to  lib/user/.)
226 #
227 #------------------------------------------------------------------
228
229 wanted corpse
230 wanted Skeleton
231
232 # Berserker cannot use magical devices; rods, wands, and scrolls.
233 ?:[EQU $CLASS Berserker]
234 !magical devices
235 ?:1
236
237 unaware items
238
239 #Artifact lights
240 unidentified lights:^Jewel#!!
241 unidentified lights:^levitatioin stone#!!
242 unidentified lights:^Palantir#!!
243 unidentified lights:^stone#@A0
244 unidentified lights:^star#!!
245 unidentified lights:^Incandescent Light
246 unidentified lights:^Phial#!!
247
248 # auto inscribe resistances...
249 ~*identified* artifacts#%
250
251 #
252 # pick all items which can stack your inventry without inscription.
253 #
254 collecting rod
255 collecting potion
256 collecting scroll
257
258 #
259 # good items
260 #
261 ~rod of Perception#@z0!k!!
262 ~rod of speed#!k!!
263 ~rod of Healing#!k!!
264 ~rod of Enlightenment#k!!
265 ~rod of Detection#!k!!
266
267 potion of Invulnerability#!k
268 Acquirement#!k
269 potion of Experience
270 potion of Augmentation
271 *Destruction*
272 Genocide
273
274 potion of strength
275 potion of wisdom
276 potion of dexterity
277 potion of constitution
278 potion of intelligence
279 potion of Charisma
280
281 potion of life#!k
282 healing#!k
283
284 #
285 # Magic-Eaters pick up all magical device to absorb.
286 # Skeletons is material of missiles for Archers.
287 # Ninja needs lights of darkness.
288 # Vampire needs darkness.
289
290 ?:[EQU $CLASS Magic-Eater]
291 rod of 
292 staff of 
293 wand of 
294 ?:[EQU $CLASS Archer]
295 skeleton of 
296 ?:[EQU $CLASS Ninja]
297 ~lights:darkness
298 Iron Spike#@v0
299 ?:[EQU $RACE Vampire]
300 (~scroll of darkness
301 (~staff of darkness
302 ?:1
303
304 # Destroy unless very early stage.
305 ?:[GEQ $LEVEL 10]
306 (!amulet of Adornment
307 (!potion of Apple Juice
308 (!Empty Bottle
309 (!potion of water
310 ?:1
311
312 # These worthless potions have some use at very early stage.
313 # Command letter '(' means, 'Don't display its location in full map command.'
314 ?:[LEQ $LEVEL 20]
315 (~potion of booze
316 (~potion of Slowness
317 (~potion of Sleep
318 ?:1
319
320 # complex example; destroy needless food items.
321 ?:[AND [GEQ $LEVEL 20] [IOR [EQU $REALM1 Life] [EQU $REALM2 Life] [EQU $REALM1 Nature] [EQU $REALM2 Nature] [EQU $REALM1 Craft] [EQU $REALM2 Craft]]]
322 (!Satisfy Hunger
323 (!food
324 (!Slime Mold
325 (!of Elvish Waybread
326 ?:1
327
328
329 #
330 # Destroy useless equipment at high level.
331 #
332 ?:[GEQ $LEVEL 40]
333 ~identified armors:dragon
334 ~nameless armors:Elven Cloak
335 ~nameless armors:Shadow Cloak
336 ~nameless weapons:Diamond Edge
337 ~nameless weapons:Mace of Disruption
338 ~nameless weapons:Shield of Deflection
339 !nameless weapons
340 !nameless armors
341
342 ?:[GEQ $LEVEL 20]
343 !nameless weapons:) (+0,+0)
344 !nameless armors:,+0]
345 ?:1
346
347 # higher rank of your spellbooks
348 first realm's fourth Book of Kendo#!k
349 first realm's third Book of Kendo#!k
350 first realm's fourth spellbooks#@md!k
351 first realm's third spellbooks#@mc!k
352 second realm's fourth spellbooks#@mh!k
353 second realm's third spellbooks#@mg!k
354
355 # unidentified equipment
356 unidentified dice boosted weapons
357 unidentified more than 25 dice weapons
358 unidentified weapons
359 unidentified armors
360 ~unidentified missiles
361
362 # lower rank of your spellbooks
363 collecting spellbooks
364 ~first realm's second spellbooks#@mb!k
365 ~first realm's first spellbooks#@ma!k
366 ~second realm's second spellbooks#@mf!k
367 ~second realm's first spellbooks#@me!k
368
369 # other spellbooks
370
371 ?:[GEQ $LEVEL 30]
372 (!unreadable first spellbooks
373 (!unreadable second spellbooks
374 (!unreadable third spellbooks:arcane
375 (!unreadable fourth spellbooks:arcane
376 ?:1
377
378 # pick up for experience
379 ?:[IOR [EQU $CLASS Warrior] [EQU $CLASS Berserker] [AND [EQU $CLASS Paladin] [EQU $REALM1 Life]]]
380 (~unreadable third spellbooks:arcane
381 (~unreadable fourth spellbooks:arcane
382 unreadable fourth spellbooks
383 unreadable third spellbooks
384 ?:1
385 ?:[AND [EQU $CLASS Paladin] [EQU $REALM1 Death]]
386 unreadable fourth spellbooks:life
387 unreadable third spellbooks:life
388 ?:1
389
390 # pick up for money
391 ?:[LEQ $LEVEL 29]
392 (~unreadable third spellbooks:arcane
393 (~unreadable fourth spellbooks:arcane
394 unreadable fourth spellbooks
395 unreadable third spellbooks
396 ?:1
397