: if you.race() == "Mummy" and you.class() == "Monk" then < robe_of_shame = true function ready() if you.turns() == 0 and robe_of_shame then robe_of_shame = false crawl.sendkeys("Tada\r") end end > : end own include += HDamage.rc include += HDAForceMore.rc #### Autopickup autopickup = $?% ae += fruit ae := autopickup_exceptions # Exceptions ae += (useless|evil)_item ae += dangerous_item.*scrolls? of (holy word|noise|torment) ae += potions? of (flight|lignification|mutation) ae += wand of (confusion|enslavement|fireball|flame|frost|lightning) ae += wand of (magic darts|paralysis|polymorph|random effects|slowing) ae += (beef jerk|pizza) : if you.race() ~= "Vampire" then ae += potions? of.*blood : end # Inclusions ae += 0 then return end if it.artefact then return true end local cur = items.equipped_at(good_slots[st]) if cur == nil then return true end if cur.branded or cur.artefact then return end if it.branded then return true end elseif st == "body" then local cur = items.equipped_at("armour") if cur == nil then return end if cur.name("qual") ~= it.name("qual") then return end if it.artefact then return true end if cur.branded or cur.artefact then return end if it.branded then return true end end end return end -- Autopickup of stackable items function inventory() return iter.invent_iterator:new(items.inventory()) end local function pickup_stackable(it, name) local class = it.class(true) local subtype = it.subtype() local ego = it.ego(true) if class == "potion" or class == "scroll" then for inv in inventory() do if class == inv.class(true) and subtype == inv.subtype() then return true end end elseif class == "missile" then for inv in inventory() do if class == inv.class(true) and subtype == inv.subtype() and ego == inv.ego(true) then return true end end elseif class == "miscellaneous" and (subtype == "fan of gales" or subtype == "lamp of fire" or subtype == "phial of floods" or subtype == "stone of tremors" or subtype == "disc of storms" or subtype == "lantern of shadows") then for inv in inventory() do if subtype == inv.subtype() then return false end end end return end clear_autopickup_funcs() add_autopickup_func(pickup_equipment) add_autopickup_func(pickup_stackable) } default_autopickup = true pickup_thrown = true assign_item_slot = forward pickup_menu_limit = 1 drop_filter = drop_filter += useless_item #### Travel & exploration travel_delay = -1 explore_delay = -1 rest_delay = -1 explore_greedy = true explore_stop = explore_stop += items,stairs,shops,altars,portals,runed_doors explore_stop += greedy_items,greedy_pickup_smart,greedy_visited_item_stack explore_stop += greedy_visited_item_stack,greedy_sacrificeable auto_sacrifice = before_explore travel_key_stop = true auto_exclude = auto_exclude += oklob,statue,roxanne,hyperactive,lightning spire,norris,rupert,sigmund,ogre,priest,wizard,basilisk,hydra,fire,sorceror,natasha,donald,blork,yiuf,dowan,duvessa,kirke,erolcha,grinder,gastronok,mara,maud,harold,sonja,eustachio #### Resting runrest_safe_poison = 80:100 runrest_ignore_monster = runrest_ignore_monster += ^butterfly$:1 runrest_ignore_monster += ^wandering mushroom$:1 rest_wait_both = true rest_wait_percent = 100 #### Interface & commands default_manual_training = true autopickup_starting_ammo = true auto_switch = false travel_open_doors = true easy_unequip = true equip_unequip = true jewellery_prompt = true show_uncursed = true easy_confirm = all allow_self_target = no confirm_butcher = never easy_eat_chunks = false auto_eat_chunks = true easy_quit_item_prompts = false easy_exit_menu = false ability_menu = false sort_menus = true:equipped,identified,basename,art,ego,glowing,qualname,curse,charged,slot autofight_stop = 85 autofight_throw = false autofight_throw_nomove = true autofight_fire_stop = false autofight_caught = true autofight_wait = true fail_severity_to_confirm = 3 easy_door = true #### Messages & display hp_warning = 50 mp_warning = 0 hp_colour = 100:green, 99:lightgray, 75:yellow, 50:lightred, 25:red mp_colour = 100:green, 99:lightgray, 75:yellow, 50:lightred, 25:red status_caption_colour = brown enemy_hp_colour = green green brown brown magenta red lightgrey clear_messages = false show_more = true small_more = true show_newturn_mark = true show_game_turns = true item_stack_summary_minimum = 4 msg_condense_repeats = true show_travel_trail = false skill_focus = false monster_list_colour = monster_list_colour += friendly:green,neutral:brown monster_list_colour += good_neutral:brown,strict_neutral:brown monster_list_colour += trivial:darkgrey,easy:lightgrey monster_list_colour += tough:yellow,nasty:lightred view_delay = 300 use_animations = use_animations += beam,range,monster_in_sight cloud_status = true tile_display_mode = true #### Character dump & notes dump_on_save = true dump_item_origins = none dump_item_origin_price = -1 dump_message_count = 30 dump_order = header,hiscore,stats,misc,mutations,skills,spells,inventory dump_order += overview,screenshot,monlist,messages,action_counts,vaults dump_order += notes,kills dump_book_spells = true # user_note_prefix = - note_items = note_items += of Zot,experience,acquirement,running,of resistance, Archmagi note_items += crystal plate armour,dragon armour note_items += artefact,wand of (heal wounds|hasting|teleportation) note_monsters = note_monsters += orb of fire note_hp_percent = 10 note_all_skill_levels = true note_xom_effects = true note_messages = note_messages += Your scales start note_messages += You feel monstrous note_messages += protects you from harm note_messages += You (fall through|are sucked into) a shaft note_chat_messages = false note_dgl_messages = true #### Autoinscriptions ai := autoinscribe ai += (bad|dangerous)_item.*scroll:!r ai += scrolls? of silence:!r ai += manual of:!d ai += scrolls? of identify:@r1 ai += scrolls? of teleportation:@r4 #### Key bindings # Useless commands bindkey = [R] CMD_NO_CMD_DEFAULT bindkey = [T] CMD_NO_CMD_DEFAULT bindkey = [O] CMD_NO_CMD_DEFAULT # bindkey = []] CMD_NO_CMD_DEFAULT bindkey = [}] CMD_NO_CMD_DEFAULT # Macro keys bindkey = [`] CMD_NO_CMD_DEFAULT bindkey = [1] CMD_NO_CMD_DEFAULT bindkey = [2] CMD_NO_CMD_DEFAULT bindkey = [3] CMD_NO_CMD_DEFAULT bindkey = [4] CMD_NO_CMD_DEFAULT bindkey = [6] CMD_NO_CMD_DEFAULT bindkey = [7] CMD_NO_CMD_DEFAULT bindkey = [8] CMD_NO_CMD_DEFAULT bindkey = [9] CMD_NO_CMD_DEFAULT # bindkey = [0] CMD_NO_CMD_DEFAULT # Wizmode #bindkey = [&] CMD_NO_CMD_DEFAULT # Targeting bindkey = [\] CMD_TARGET_OBJ_CYCLE_FORWARD bindkey = [^I] CMD_TARGET_CYCLE_FORWARD # Saving bindkey = [S] CMD_SAVE_GAME_NOW #### Glyphs # Features display_char = wall:x2592 display_char = permawall:x2593 display_char = wall_magic:x2591 cset_unicode = item_gold:xa3 cset_unicode = cloud:# feature = (closed|runed|sealed) door {+,,} # Free glyphs: a, j, k, I, U # TODO: free up R mon := mon_glyph mon = # Uniques # TODO: recheck all of this mon += Louise:blue # Insects mon += giant cockroach:brown B mon += demonic crawler:green B mon += worker ant:red B mon += queen ant:lightgreen B mon += soldier ant:white B # Flying insects mon += queen bee:lightgreen y mon += vampire mosquito:lightgrey y # Canines mon += hog:lightred mon += hell hog:lightmagenta # Beasts mon += ice beast:ice Y mon += sky beast:mutagenic Y # Drakes mon += swamp drake:brown l mon += wind drake:white l mon += lindwurm:lightcyan l mon += death drake:lightgrey l # Gargoyles and statues mon += gargoyle:lightgrey 8 mon += war gargoyle:lightmagenta 8 mon += molten gargoyle:yellow 8 mon += spellforged servitor:magenta 8 # Weapons mon += dancing weapon:7 mon += spectral weapon:green 7 # Demonspawn mon += blood saint:9 mon += warmonger:9 mon += corrupter:9 mon += black sun:9 # Others mon += fungus:lightgrey f mon += thorn hunter:cyan f mon += boggart:magenta i mon += greater mummy:lightmagenta M mon += ancient lich:lightmagenta L mon += ancient champion:lightcyan z mon += curse skull:lightmagenta z mon += lightning spire:lightcyan { show_player_species = true #### Item colours item := item_glyph item = item += (potion|scroll|wand|jewellery):lightgrey item += spellbook:red item += wand of (heal wounds|hasting|teleportation):yellow item += scrolls? of (blinking|teleportation):yellow item += potions? of (haste|heal wounds|magic):yellow item += scrolls? of (acquirement|brand weapon|enchant|recharging):cyan item += potions? of (beneficial mutation|cure mutation|experience):cyan item += unidentified.*(potion|scroll|book|wand|jewellery):lightblue item += unidentified.*manual:white item += useless_item.*(potion|scroll):darkgrey #### Messages ignore := runrest_ignore_message ignore = stop := runrest_stop_message stop = more := force_more_message more = # TODO: recheck all of this # Annoyances ignore += You hear.*splatter 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 += You walk carefully through the ignore += The winds around you calm down. ignore += Lightning arcs down from a storm cloud ignore += (crumbles|melts) away\. ignore += (merges|forms) itself .* the air ignore += grinding sound ignore += contamination has completely ignore += chunks of flesh in your inventory.*rotted away ignore += rod.*has recharged ignore += your breath back ignore += pray: ignore += talk: ignore += talk_visual: ignore += friend_spell: ignore += friend_enchant: ignore += friend_action: ignore += sound: # Bad things stop += found.*trap stop += (blundered into a|invokes the power of) Zot stop += You fall through a shaft stop += fire darake stop += Rupert stop += Norris stop += Sigmund stop += Arachne stop += Robin stop += Ijib stop += jessica stop += Terence stop += stop += A sentinel's mark forms upon you\. 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 # Expiring effects stop += You feel yourself slow down 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 += hell_effect: # Important features : if you.god() == "Ashenzari" then more += You have a vision of.*gates? : else more += interdimensional caravan more += distant snort more += roar of battle more += wave of frost more += hiss of flowing sand more += sound of rushing water more += heat about you more += crackle of arcane power more += Found a gateway leading out of the Abyss : end more += Found .* abyssal rune of Zot more += The mighty Pandemonium lord .* resides here # Interrupts more += You don't .* that spell more += You fail to use your ability more += You can't (read|drink|do) more += You cannot .* in your current state more += There's nothing to (close|open) nearby more += not good enough to have a special ability more += no means to grasp more += That item cannot be evoked more += You are held in a net more += You have disarmed more += You don't have any such object more += do not work when you're silenced more += You can't unwield # Bad things more += Your surroundings flicker more += sense of stasis more += You cannot teleport right now more += You fall through a shaft more += A sentinel's mark forms upon you more += (blundered into a|invokes the power of) Zot more += enter a teleport trap more += Ouch! That really hurt! more += dispelling energy hits you more += You convulse more += You are blasted by holy energy! more += You are (blasted|electrocuted)! more += You are.*(confused|poisoned) more += flesh start more += (starving|devoid of blood) more += god:(sends|finds|silent|anger) more += lose consciousness more += You are too injured to fight blindly more += calcifying dust hits more += Space warps.*around you more += Space bends around you more += hits you.*distortion more += watched by something more += flickers and vanishes! more += distortion # Hell effects more += hell_effect: # Expiring effects more += You feel yourself slow down more += Your hearing returns more += uncertain more += time is quickly running out more += life is in your own hands more += is no longer charmed more += You start to feel a little slower # Others more += You have reached level more += You have finished (your manual|forgetting about) #### Message colours $danger := lightred $warning := yellow $boring := darkgrey msc := message_colour msc = menu := menu_colour menu = # TODO: recheck all of this # Multi-turn channel.multiturn = mute # Allies msc += mute:returns to your side msc += mute:a demon appears msc += lightgrey:The deck of cards disappears 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:(crumbles|melts) away\. msc += mute:(merges|forms) itself .* the air msc += mute:you swap places msc += mute:your.*(looks stronger|shudders|resists) msc += mute:your.*(stumbles backwards|holds.*ground) # msc += mute:(something|your).*(misses|does no damage) msc += mute:your.*(blinks|safely over) msc += mute:(phases out.*|misses) (your|something).* msc += mute:your.*(picks up|drops) msc += mute:your.*basks in the mutagenic energy msc += mute:your.*(struggles|tears|pulls away).*(web|net) msc += mute:constricts?.*no damage # Other msc += mute:meld.*your body msc += mute:begins to bleed from.*wounds msc += mute:An air elemental.*itself.*the air msc += mute:You feel a.*surge of power msc += mute:You cannot train any new skill msc += mute:Moving in this stuff is going to be slow # Default colours msc += $danger:strangely unstable 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 += lightgrey:Something appears (at your feet|before you) msc += $danger:^Something .* you msc += $danger:You block its attack msc += $danger:constricts you msc += $danger:you convulse msc += $danger:You feel a build-up of mutagenic energy msc += $danger:place you under penance 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 msc += $warning:ticking.*clock msc += $warning:dying ticks msc += $warning:distant snort msc += $warning:odd grinding sound msc += $warning:creaking of ancient gears msc += $warning:floor suddenly vibrates msc += $warning:a sudden draft msc += $warning:coins.*counted msc += $warning:tolling.*bell msc += $warning:roar of battle msc += $warning:creaking.*portcullis msc += $warning:portcullis is probably msc += $warning:wave of frost msc += $warning:crackling.*melting msc += $warning:hiss.*sand msc += $warning:sound.*rushing water msc += $warning:rusting.*drain msc += $warning:drain falling apart msc += $warning:oppressive heat msc += $warning:rumble.*avalanche of rocks msc += $warning:crackle.*arcane power msc += $warning:crackle.*magical portal msc += $warning:fails to return msc += $warning:no longer ripe msc += $boring:You start (resting|waiting) msc += $boring:Unknown command msc += $boring:but (do no|doesn't do any) damage msc += $boring:(prevent|prevents) you from hitting # Selected items menu += inventory:white:\w \+\s menu += inventory:white:\w \#\s menu += darkgrey:(melded) menu += red:.*evil_item.* menu += lightred: cursed menu += darkgrey:.*useless_item.* menu += inventory:lightgreen:.*equipped.* menu += white:.*artefact.* menu += lightblue:^unidentified .*(potion|scroll|wand|jewellery|deck).* menu += lightblue:^unidentified .*weapon.*(runed|glowing) menu += lightblue:^unidentified .*armour.*(runed|glowing) menu += lightblue:^unidentified .*armour.*(embroidered|shiny|dyed) # Food menu += darkgrey:.*inedible.* menu += darkgrey:.*evil_eating.* menu += darkgrey:.*mutagenic.* # Default letters spell_slot += .*:yuiopYUIOP tile_player_tile =tile:mons_lost_soul language = GRUNT