git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@916 c06c8d41-db1a-0410-9941-cceddc491573
E5GFDGV5XJVVDZGWFQIIZ47FGGF7AEJLGGBWRUZ34HPLNFJTNLLQC
2ZFV5PKZU3HDHMLJWVWPPFV43NUNUON6YSAITHB26D7L4XIVWUHQC
GPAORIQMQKY5BGXIEXFAZ6FE4L224H3APV3IGANSDAZZ2KR2JVWQC
RREJL4WZKWFEMA62AC5G5UDTOXMW4UULIQXVA5RPFASPODMHQZ7AC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
EHSY6DVGUMI6C67WKET3GDJVLWJWGYBYQONNDK5JVT7BCTHBEZVAC
CAHE52HL2ZGRJPBYZ3DS4BVKUD2XC7N3SG25TGG7JGHGJDST4P3QC
L5FV5JNA7JXT2P2VGR6PLUW55MKAUQSOELPWBK3QFKDZOBCSCT3AC
Allow individual interrupts to be disabled for an activity using -=. For
instance, interrupt_rest -= message will disable the
stop-resting-for-any-silly-message behaviour (and also make stop_travel
relevant to resting).
What are the possible values for xxx and yyy in
interrupt_xxx -= yyy?
----------------
Crawl directory (the directory containing crawl.exe on Windows and DOS). On Unix
systems, you need to set options in the ~/.crawlrc file (a file named .crawlrc
in your home directory).
Crawl directory (the directory containing crawl.exe on Windows and DOS). On
Unix systems, you need to set options in the ~/.crawlrc file (a file named
.crawlrc in your home directory).
numbers, and lists. An option is most often specified with its default value (if
there is one); this should also explain which of the above-mentioned types it
is. Each option should have some remarks on how it's typically used - beware
numbers, and lists. An option is most often specified with its default value
(if there is one); this should also explain which of the above-mentioned types
it is. Each option should have some remarks on how it's typically used - beware
Note that the init.txt coming with regular distributions has all boolean options
commented out. The commented-out values are always the _non-defaults_, so you
can toggle boolean options by just uncommenting them.
Note that the init.txt coming with regular distributions has all boolean
options commented out. The commented-out values are always the _non-defaults_,
so you can toggle boolean options by just uncommenting them.
If you get stuck or some things just won't seem to work properly, please ask for
help on the newsgroup rec.games.roguelike.misc. Flag queries with '-crawl-', as
other roguelikes are also discussed there.
If you get stuck or some things just won't seem to work properly, please ask
for help on the newsgroup rec.games.roguelike.misc. Please flag queries with
'-crawl-', as other roguelikes are also discussed there.
autopickup_exceptions = <(poisoned|curare-tipped) needle
Forces autopickup to grab all poisoned and curare-tipped needles, even
if missiles are not set in the "autopickup" option.
autopickup_exceptions = <curare-tipped needle
Forces autopickup to grab all curare-tipped needles, even if missiles
are not set in the "autopickup" option.
You can use multiple autopickup_exceptions lines.
You can use multiple autopickup_exceptions lines. Some examples:
autopickup_exceptions = degeneration, decay, confusion,
autopickup_exceptions = potions? of slowing, potions? of paralysis
autopickup_exceptions = potions? of strong poison,potions? of poison
autopickup_exceptions = inaccuracy
autopickup_exceptions = scrolls? of paper, immolation, curse armour,
autopickup_exceptions = curse weapon, forgetfulness, uselessness,
autopickup_exceptions = noise, torment
ban_pickup = <regex>
List of item name regexes for items which autopickup will never touch.
You can use multiple ban_pickup lines. Some typical examples are
ban_pickup = degeneration, decay, confusion, potions? of slowing
ban_pickup = potions? of strong poison,potions? of poison
ban_pickup = inaccuracy
ban_pickup = scrolls? of paper, immolation, curse armour, curse weapon
ban_pickup = forgetfulness, uselessness, noise, torment
See also autopickup_exceptions, which is a superset of ban_pickup.
Using a Lua script, you can define a function "ch_autopickup" to select
additional items for autopickup. Let's say you want autopickup to only grab food
if your character can eat it (let's say you're playing a kobold and you want to
stop picking up vegetables). You could use the following (if '%' is not in the
autopickup option):
{
function ch_autopickup(it)
-- The "false" suppresses hunger checks to see if your character is hungry
-- enough to eat food/chunks.
return food.can_eat(it, false)
end
}
Here's a ch_autopickup that a mummy might find useful:
{
-- The mummy special. Remove % and ! from your autopickup option if you use
-- this.
function ch_autopickup(it)
return food.can_eat(it, false)
or ( item.class(it) == "Potions" and you.race() ~= "Mummy" )
end
}
{
function ch_stop_run(mons)
local name = mons.name
-- Stop running only if these monsters get closer than 3 squares
if name == "swamp worm" or name == "big fish"
or name == "giant goldfish" or name == "lava worm"
or name == "butterfly" then
-- mons.x and y coords are relative to the player.
local dist = mons.x * mons.x + mons.y * mons.y
if dist >= 9 then return false end
end
return true
end
}