# TEAMCAPTAIN FiftyNine
: local dmg_old_hp = 0
<
function ready()
DmgTrack()
end
>
: function DmgTrack()
: local bot_hp, bot_mhp = you.hp()
: local dmg_inturn = 0
: local huge_int = 0
: local percent_hp = 0
: local percent_old_hp = 0
: local percent_hp_txt = "--%"
: if dmg_old_hp > 0 then
: if bot_hp < dmg_old_hp then
: dmg_inturn = dmg_old_hp - bot_hp
: percent_old_hp = math.ceil((dmg_old_hp*100)/bot_mhp)
: percent_hp = math.ceil((bot_hp*100)/bot_mhp)
: percent_hp_txt = percent_hp .. "%"
: if percent_hp < 30 then
: percent_hp_txt = "" .. percent_hp_txt .. ""
: elseif percent_hp < 55 then
: percent_hp_txt = "" .. percent_hp_txt .. ""
: elseif percent_hp < 75 then
: percent_hp_txt = "" .. percent_hp_txt .. ""
: end
: percent_hp_txt = percent_hp_txt .. "(" .. bot_hp .. "hp)"
: if dmg_inturn > (bot_hp*0.25) then
: huge_dmg_note(dmg_inturn)
: crawl.mpr("Huge Dmg: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt)
: dmg_old_hp = bot_hp
: crawl.flush_prev_message()
: crawl.more()
: crawl.more_autoclear(true)
: else
: if dmg_inturn > (bot_hp*0.15) then
: crawl.mpr("Damage: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt)
: else
: crawl.mpr("Damage: -" .. (percent_old_hp-percent_hp) .. "%(-" .. dmg_inturn .. "hp)" .. " hp: " .. percent_hp_txt)
: end
: end
: crawl.flush_prev_message()
: end
: end
: dmg_old_hp = bot_hp
: end
: function huge_dmg_note(x)
: crawl.take_note("Huge Dmg: " .. x .. " dmg")
: end
more += You are smited.*
more += You feel less protected from missiles.
more += Something smites you.*
note_chat_messages = true
show_more = false
auto_sacrifice = true
view_delay = 150
#############
# Autofight #
#############
# Don't throw stuff for no reason
autofight_throw = false
autofight_throw_nomove = false
# Read messages and watch HP instead of having the game not let me tab
autofight_stop = 40
##############
# Autopickup #
##############
autopickup = $?!:"/%|
drop_filter += useless_item
drop_mode = multi
pickup_mode = multi
default_friendly_pickup = none
ae := autopickup_exceptions
ae += useless_item, dangerous_item, evil_item
ae += (amulet|ring|staff|rod) of
ae += scrolls? of (detect|holy|unholy|torment|vorpal)
ae += potions? of (levitation|water)
ae += wand of (confusion|polymorph|enslavement|fireball|flame|frost|invisibility)
ae += wand of (lightning|magic darts|random effects|slowing)
ae += top_ranged_skill / 3 then
if name:find("stone") then return true end
if name:find("bullet") then return true end
end
if you.skill("Bows") > top_ranged_skill / 3 then
if name:find("arrow") then return true end
end
if you.skill("Crossbows") > top_ranged_skill / 3 then
if name:find("bolt") then return true end
end
end
end
if pickup_sandblast then
if sp["Sticks to Snakes"] and it.snakable then
if name:find("arrow") then
return true
end
end
end
if pickup_snakable then
if sp["Sandblast"] then
if name:find("stone") then
return true
end
end
end
return false
end
add_autopickup_func(ammo_pickup)
}
###############
# Spell slots #
###############
# Disabled.
# slot := spell_slot
# In alphabetical order by primary slot letter
# Lower case stuff
# slot += spider form:c
# slot += ice form:d
# slot += blade hands:e
# slot += control tele:w
# Upper case stuff
# slot += ^blink:B
# slot += death's door:D
# slot += haste:H
# slot += summon butterflies:P
# slot += borgnjor's revivification:RK
# slot += refrigeration:RE
# slot += controlled blink:V
##########
# Travel #
##########
travel_delay = -1
explore_delay = 3
show_travel_trail = true
explore_stop = items,greedy_items,greedy_pickup,greedy_pickup_gold
explore_stop += greedy_visited_item_stack,stairs,shops,altars,gates,greedy_sacrificeable
auto_exclude += oklob,statue,curse skull,roxanne,hyperactive
trapwalk_safe_hp = dart:20,needle:15,arrow:35,bolt:45,spear:40,axe:45,blade:95
stop := runrest_stop_message
ignore := runrest_ignore_message
# Annoyances
: if you.god() == "Jiyva" then
ignore += Jiyva gurgles merrily
ignore += Jiyva appreciates your sacrifice
ignore += Jiyva says: Divide and consume
ignore += You hear.*splatter
: end
ignore += You feel.*sick
ignore += disappears in a puff of smoke
ignore += engulfed in a cloud of smoke
ignore += standing in the rain
ignore += engulfed in white fluffiness
ignore += safely over a trap
ignore += A.*toadstool withers and dies
ignore += toadstools? grow
ignore += You walk carefully through the
ignore += grinding sound
ignore += chunks of flesh in your inventory.*rotted away
runrest_ignore_poison = 2:10
runrest_ignore_monster += butterfly:1
# Bad things
stop += You fall through a shaft
stop += An alarm trap emits a blaring wail
stop += (blundered into a|invokes the power of) Zot
stop += A huge blade swings out and slices into you!
stop += sense of stasis
stop += flesh start
stop += (starving|devoid of blood)
stop += wrath finds you
stop += lose consciousness
stop += watched by something
# Expiring effects
stop += You feel yourself slow down
stop += less insulated
stop += You are starting to lose your buoyancy
stop += You lose control over your flight
stop += Your hearing returns
#stop += Your transformation is almost over
stop += back to life
stop += uncertain
stop += time is quickly running out
stop += life is in your own hands
stop += is no longer charmed
stop += You start to feel a little slower
: if you.race() == "Ghoul" then
stop += smell.*(rott(ing|en)|decay)
stop += something tasty in your inventory
: end
stop += grants you a gift
ignore += god:
ignore += pray:
ignore += .*poisons you.*
ignore += talk:
ignore += talk_visual:
ignore += friend_spell:
ignore += friend_enchant:
ignore += friend_action:
ignore += sound:
###########
# Prompts #
###########
more := force_more_message
# Important features
: if you.god() == "Ashenzari" then
more += You have a vision of.*gates?
: else
more += interdimensional caravan
more += distant snort
more += Found a gateway leading out of the Abyss
: end
more += Found .* abyssal rune of Zot
more += .* Deeper .* abyss
# Interrupts
more += You don't.* that spell
more += You miscast (Controlled Blink|Blink|Death's|Borg|Necromutation)
more += You can't (read|drink) that
more += That item cannot be evoked
more += This wand has no charges
more += You have disarmed
more += Something interferes with your magic
more += You enter a teleport trap
# OUTRIGHT DEATH HAZARDS
more += .* Giant eyeball comes into view.*
more += .* Lich comes into view.*
# Disable (set # at the start) as you progress (for the bumrushing player)
# Disabled by default.
#more += .* Ogre comes into view.*
#more += .* Priest comes into view.*
#more += .* Sigmund comes into view.*
#more += .* Grinder comes into view.*
#more += .* Centaur comes into view.*
#more += .* Rupert comes into view.*
# Bad things
#more += Low.* Warning
#getting real tired of your shit
more += Your surroundings flicker
more += sense of stasis
more += Your amulet of stasis
more += You cannot teleport right now
more += The writing blurs in front of your eyes
more += You fall through a shaft
more += A huge blade swings out and slices into you!
more += (blundered into a|invokes the power of) Zot
more += Ouch! That really hurt!
more += dispelling energy hits you
more += You convulse
more += You are (blasted|electrocuted)!
more += You are.*(confused)
more += flesh start
more += (starving|devoid of blood)
more += wrath finds you
more += lose consciousness
more += You are too injured to fight blindly
more += calcifying dust hits
more += Space warps horribly around you
more += hits you.*distortion
more += Space bends around you\.
more += watched by something
# Hell effects
# Disabled for now, maybe removed in the future
#more = "You will not leave this place."
#more = "Die, mortal!"
#more = "We do not forgive those who trespass against us!"
#more = "Trespassers are not welcome here!"
#more = "You do not belong in this place!"
#more = "Leave now, before it is too late!"
#more = "We have you now!"
#more = You smell brimstone.
#more = Brimstone rains from above.
#more = You feel lost and a long, long way from home...
#more = You shiver with fear.
#more = You feel a terrible foreboding...
#more = Something frightening happens.
#more = You sense an ancient evil watching you...
#more = You suddenly feel all small and vulnerable.
#more = You sense a hostile presence.
#more = A gut-wrenching scream fills the air!
#more = You hear words spoken in a strange and terrible language...
#more = You hear diabolical laughter!
# Expiring effects
more += You feel yourself slow down
more += less insulated
more += You are starting to lose your buoyancy
more += You lose control over your flight
more += Your hearing returns
#more += Your transformation is almost over
more += You have a feeling this form
more += You feel yourself come back to life
more += uncertain
more += time is quickly running out
more += life is in your own hands
more += is no longer charmed
more += shroud falls apart
more += You start to feel a little slower
# Others
more += You have reached level
more += Your scales start
more += You feel monstrous
more += Jiyva alters your body
# : if you.god() == "Xom" then
# more += god:
# : end
#############
# Interface #
#############
equip_unequip = true
allow_self_target = ask
#confirm_butcher = always
: if you.race() ~= "Ghoul" then
auto_eat_chunks = true
easy_eat_chunks = true
easy_eat_contaminated = true
: end
sort_menus = inv: true : equipped, freshness, charged
hp_warning = 50
hp_colour = 100:green, 90:lightgray, 75:yellow, 50:lightred, 25:red
mp_colour = 100:green, 90:lightgray, 75:yellow, 50:lightred, 25:red
stat_colour = 3:red, 7:lightred
show_inventory_weights = true
show_gold_turns = true
show_game_turns = true
default_manual_training = true
###################
# Message colours #
###################
#The most important setting
# clear_messages = true
msc := message_colour
menu := menu_colour
# Clear defaults ##############################################################
msc =
channel.plain = plain
channel.prompt = cyan
channel.god = plain
channel.pray = mute
channel.duration = plain
channel.danger = plain
channel.food = plain
channel.warning = plain
channel.recovery = plain
channel.talk = mute
channel.talk_visual = mute
channel.intrinsic_gain = lightcyan
channel.mutation = magenta
channel.monster_spell = plain
channel.monster_enchant = plain
channel.friend_spell = plain
channel.friend_enchant = plain
channel.monster_damage = plain
channel.rotten_meat = plain
channel.equipment = plain
channel.floor = plain
channel.multiturn = mute
channel.examine = plain
channel.examine_filter = plain
channel.error = red
channel.tutorial = white
# HELP I DONT KNOW WHY I NEED TO FIX THIS #####################################
msc += lightgrey:your.*is stuck to your body
# Duration channel stuff ######################################################
msc += lightblue:break out of your daze
msc += red:you feel yourself slow down
msc += green:your transformation is almost over
# Notes #######################################################################
msc += white:enter note
# Allies ######################################################################
msc += mute:returns to your side
msc += mute:a demon appears
msc += mute:puff of smoke
msc += mute:carefully avoids
msc += mute:is recalled
msc += mute:wall.*burn.*your
msc += mute:dissolves? into (sparkling lights|shadows)
msc += mute:you swap places
msc += mute:your.*(looks stronger|shudders|resist)
msc += mute:(stumbles backwards|holds.*ground)
msc += mute:(something|your).*(misses|does no damage)
msc += mute:your.*(blinks|safely over|gestures)
msc += mute:(phases out.*|misses) (your|something).*
msc += mute:your.*but does no damage
msc += mute:your.*(picks up|drops)
msc += mute:your.*basks in the mutagenic energy
# Things to note in combat ####################################################
# Don't use lightmagenta for anything else
msc += lightmagenta:LOW HITPOINT WARNING
# White is kind of interesting but not important
msc += white:reels? from the noise
# Yellow is usually important
msc += yellow:looks slightly unstable
msc += yellow:you feel.*nervous
msc += yellow:you feel.*better
# Lightred to go with other warnings
msc += lightred:you convulse
# Red for definitely bad things
msc += red:hellfire engulfs you\!
msc += red:flesh.*rotting
# Cyan for things I want to note but might be ignorable
msc += cyan:comes? into view
msc += cyan:you are engulfed
# Magenta for bad things that aren't red
msc += magenta:your body is wracked with pain
# Enemy HP #
msc += green:is (moderately|heavily) (wounded|damaged)
msc += lightgreen:is severely (wounded|damaged)
msc += lightgreen:is almost (dead|destroyed)
msc += lightgreen:you (kill|destroy)
# Cantrips ####################################################################
msc += darkgrey:you feel troubled
# Enemy spells ################################################################
# White
msc += white:you feel haunted
# Yellow
msc += yellow:something smites you
# Lightred
msc += lightred:bolt of dispelling energy hits you
# Red
msc += red:the hellfire explodes
# Magenta
msc += magenta:calls on the powers of darkness
msc += magenta:kneels in prayer.*energy
# Gods ########################################################################
# Jiyva #
: if you.god() == "Jiyva" then
msc += mute:slurping|squelching
msc += mute:splits in two
: end
# Interface ###################################################################
msc += mute:Confirm with \. or Enter, or press \? or \* to list all spells\.
msc += mute:Press\: \? - help, Shift-Dir - straight line, f - you
msc += mute:for a list of commands and other information
msc += mute:melds.*
msc += mute:Switching to.*
msc += mute:Switching back.*
# Other #######################################################################
msc += mute:This raw flesh tastes terrible
msc += mute:melds into your body
msc += mute:begins to bleed from.*wounds
msc += mute:writhes in agony as.*flesh
msc += mute:An air elemental.*itself.*the air
msc += mute:found.*web
# Gong messages #
$gong := brown
msc += $gong:SHORANNG
msc += $gong:BONNNG
msc += $gong:PANG
msc += $gong:PTOANNNG
msc += $gong:GONNNNG
msc += $gong:BOUMMMMG
# All default colourings ######################################################
$danger := lightred
$warning := yellow
$boring := darkgrey
$item_dmg := magenta
# DANGER #
msc += $danger:drains you
msc += $danger:feel drained
msc += $danger:strangely unstable
msc += $danger:curare-tipped.*hits you
msc += $danger:Space warps.* around you
msc += $danger:Space bends around you
msc += $danger:sense of stasis
msc += $danger:clumsily bash
msc += $danger:goes berserk!
msc += $danger:The blast of calcifying dust hits you!
msc += $danger:You are engulfed in calcifying dust
#msc += $danger:is moving more slowly
msc += $danger:^It .* you
msc += $danger:You block its attack
msc += $danger:constricts you
msc += $danger:visions of slaying.*flood into your mind
# Item destruction #
msc += $item_dmg:acid corrodes
msc += $item_dmg:catch(es)? fire
msc += $item_dmg:freezes? and shatters?
msc += $item_dmg:covered with spores
msc += $item_dmg:devours some of your food
msc += $item_dmg:rots? away
# Warnings #
msc += $warning:Forgetting.* will destroy the book
msc += $warning:ticking.*clock
msc += $warning:dying ticks
msc += $warning:distant snort
msc += $warning:coins.*counted
msc += $warning:tolling.*bell
msc += $warning:fails to return
msc += $warning:no longer ripe
msc += lightcyan:LOW MAGIC WARNING
# Boring #
msc += $boring:You start (resting|searching)
msc += $boring:Unknown command
msc += $boring:disappears? in a puff of smoke
msc += $boring:dissolves? into (sparkling lights|shadows)
msc += $boring:plain:miss(es)? (the|you|it)
msc += $boring:but (do no|doesn't do any) damage
msc += $boring:(prevent|prevents) you from hitting
##################
# Item colouring #
##################
# Clear defaults #
menu =
# Variables #
$tele := lightgreen
$haste := cyan
$enchant := cyan
$buff := lightcyan
$heal := yellow
$good := yellow
$rod := lightmagenta
$supergood := lightmagenta
# General #
menu += darkgrey:(melded)
menu += darkgrey:.*useless_item.*
menu += blue:.*evil_item.*
# Equipment #
menu += brown:shield of the gong
menu += red:.*artefact.* cursed
menu += lightred: cursed
menu += lightcyan:.*artefact.*equipped.*
menu += lightgreen:.*equipped.*
menu += white:.*artefact.*
menu += lightblue:^unidentified .*(potion|scroll|wand|jewellery).*
menu += lightblue:^unidentified .*weapon.*(runed|glowing)
menu += lightblue:^unidentified .*armour.*(runed|glowing|embroidered)
menu += lightblue:^unidentified .*armour.*(shiny|dyed)
# Wands #
menu += $heal:wand of heal
menu += $haste:wand of hasting
menu += $tele:wand of teleportation
menu += darkgrey:wand of (magic dart|flame|frost)
menu += white:wand of (fire|cold)
# Food #
menu += $heal:royal jell
menu += darkgrey:.*inedible.*
menu += red:.*evil_eating.*
menu += white:.*preferred.*
menu += lightred:.*rot-inducing.*
menu += magenta:.*mutagenic.*
menu += lightgreen:.*poisonous.*
menu += brown:.*contaminated.*
# Scrolls #
menu += yellow:scrolls? of fog
menu += lightcyan:blinking
menu += white:holy word
menu += red:scrolls? of torment
menu += $enchant:recharging
menu += $enchant:vorpalise weapon
menu += $enchant:enchant (weapon|armour)
menu += $tele:scrolls? of teleportation
menu += $supergood:acquirement
# Potions #
menu += yellow:potions? of (curing|heal wounds|magic)
menu += $haste:potions? of speed
menu += $buff:potions? of (might|agility|brilliance|resistance)
menu += red:potions? of berserk
menu += $supergood:potions? of (experience|cure mutation|gain)
menu += magenta:potions? of mutation
# Misc items #
menu += $rod:tome of Destruction
menu += lightcyan:disc of storms
menu += white:crystal ball of energy
menu += $supergood:.*misc.*rune( of Zot)?
menu += $supergood:.*orb.*Zot
# Rods and staves #
menu += $rod:rod of
menu += magenta:[^r]staff of
# Deck colouring #
menu += lightmagenta:deck of wonders
menu += yellow:deck of escape
menu += cyan:deck of summoning
menu += lightred:deck of destruction
menu += lightblue:deck of dungeon
menu += lightgrey:deck of cards
menu += white:deck of
###########################
# Monster and item glyphs #
###########################
char_set = ascii
mon_glyph = redback : lightred
mon_glyph = giant mite : lightblue
mon_glyph = greater mummy : green
#mon_glyph = deep dwarf necromancer : lightblue
cset = cloud:xa4
cset_ascii=item_orb:0
use_fake_player_cursor = true
####################
# Autoinscriptions #
####################
ai := autoinscribe
# Overwrite annoying inscriptions with your own
ai += (distortion|vampiric):!w
ai += (bad|dangerous)_item.*potion:!q
ai += (bad|dangerous)_item.*scroll:!r
ai += of faith:!P
ai += rod of:!a
ai += [^r]staff of:!a
ai += [Mm]anual of:!d
ai += dispersal:!f
ai += tome of Destruction:!d
: if you.race() == "Vampire" then
ai += of blood:@*1
ai += of coagulated blood:@*2
ai += chunks? of:@*3
: else
ai += chunks? of:@*1
: end
: if you.god() == "Fedhas" then
ai += fruit:!e
: end
#########
# Notes #
#########
dump_item_origins = all
dump_message_count = 70
dump_order =
dump_order += header,hiscore,stats,misc,mutations,skills,spells,overview
dump_order += inventory
dump_order += screenshot,monlist,messages,action_counts,vaults,notes,kills
ood_interesting = 6
note_hp_percent = 25
note_all_skill_levels = true
note_items += of Zot
note_messages += Your scales start
note_messages += protects you from harm
note_messages += You fall through a shaft
note_monsters += orb of fire,silver star,pearl dragon,ancient lich
force_more_message += Deactivating autopickup
autoinscribe += bread ration:!e
autoinscribe += meat ration:!e