abstract
| - AUTOPICKUP_EXCEPTION is a configuration option that allows you to define what items are automatically picked up, with more precision than with pickup_types. You also need to have autopickup on and pickup_types match the AUTOPICKUP_EXCEPTION -lines. Highly recommended but not necessary is adapting pickup_burden. OPTIONS=autopickup OPTIONS=pickup_types:$?!/( OPTIONS=pickup_burden:unencumbered Note: This article is out of date. Not only does the default Windows build of NetHack 3.60 allow autopickup exceptions, but it's syntax now resembles a regular expression engine. The official guide is also out of date. The important thing, and the only thing that this editor has tested, is that ".*" must be used in place of "*". There is a wealth of information and tutorials on the internet about RegEx, but even a complete implementation has major limitations. In NetHack 3.4.3 autopickup exceptions are not compiled in by default, and they're marked as experimental, so most builds probably won't have them. NAO does, however. You can either define the exceptions in the options screen or in your configuration file by putting the following lines in it: AUTOPICKUP_EXCEPTION=">*chest*" This will make the hero always drop all items that match the string "*chest*" AUTOPICKUP_EXCEPTION="<*dagger" This will make the hero always pickup all items that match the string "*dagger" If the first character inside the quoted string is greater-than sign (>), then the matched items will be not be picked up, if it's less-than sign (<), the items will be picked up. The rest of the string defines what items will match for that rule. The string matching allows for basic wildcards, where asterisk (*) matches any number of characters and question mark (?) matches any one character. The object names to match are in the singular form without a leading "a ", "an ", etc. A "never pickup" rule takes precedence over an "always pickup" rule if both match an item.
|