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