Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
- ##### MINE: Custom configuration #################
- #
- # Fixes things I don't like, and idiot proofing.
- # If copying over to a new version of crawl, remember to copy macro.txt as well!
- ##### simple toggles
- prefer_safe_chunks = false
- easy_exit_menu = false
- autopickup = $?!:"/%
- drop_filter += useless_item
- auto_exclude += oklob,statue,curse skull,roxanne,hyperactive,lightning spire
- auto_exclude += mimic
- trapwalk_safe_hp = dart:20,needle:15,arrow:35,bolt:45,spear:40,blade:95
- sort_menus = inv: true : equipped, freshness, charged
- ##### customizes dump
- dump_item_origins = artifacts,ego_arm,ego_weap,jewellery,staves,rods
- dump_book_spells = false
- dump_order = header, hiscore, stats, misc, inventory,
- dump_order += skills, spells, action_counts, overview, mutations,
- dump_order += messages, screenshot, monlist, kills,
- dump_order += notes
- #dump_order variables not used: turns_by_place, kills_by_place, spell_usage, vaults
- ### This is what the default dump order is if you don't specify your own
- #
- # dump_order = header, hiscore, stats, misc, inventory,
- # dump_order += skills, spells, overview, mutations,
- # dump_order += messages, screenshot, monlist, kills
- # dump_order += notes
- note_all_skill_levels = true
- note_skill_max = true
- ##### removes extra dirrectional keys
- #vi keys, left up down right
- bindkey = [h] CMD_NO_CMD_DEFAULT
- bindkey = [j] CMD_NO_CMD_DEFAULT
- bindkey = [k] CMD_NO_CMD_DEFAULT
- bindkey = [l] CMD_NO_CMD_DEFAULT
- bindkey = [H] CMD_NO_CMD_DEFAULT
- bindkey = [J] CMD_NO_CMD_DEFAULT
- bindkey = [K] CMD_NO_CMD_DEFAULT
- bindkey = [L] CMD_NO_CMD_DEFAULT
- bindkey = [^H] CMD_NO_CMD_DEFAULT
- bindkey = [^J] CMD_NO_CMD_DEFAULT
- bindkey = [^K] CMD_NO_CMD_DEFAULT
- bindkey = [^L] CMD_NO_CMD_DEFAULT
- ##### mores
- #Saftey
- force_more_message += You are starting to lose your buoyancy.
- force_more_message += An Orb of Fire comes into view.
- force_more_message += You have a vision of a gate.
- force_more_message += You have a vision of multiple gates.
- #Hell Effect Messages
- force_more_message += "Die, mortal!"
- force_more_message += Brimstone rains from above.
- force_more_message += You sense an ancient evil watching you...
- force_more_message += You hear words spoken in a strange and terrible language...
- force_more_message += You feel a terrible foreboding...
- force_more_message += A gut-wrenching scream fills the air!
- force_more_message += You shiver with fear.
- force_more_message += Something frightening happens.
- force_more_message += "We do not forgive those who trespass against us!"
- force_more_message += "You do not belong in this place!"
- force_more_message += "You will not leave this place."
- force_more_message += "Trespassers are not welcome here!"
- force_more_message += "We have you now!"
- force_more_message += You hear diabolical laughter.
- force_more_message += You suddenly feel all small and vulnerable.
- force_more_message += "Leave now, before it is too late!"
- force_more_message += You sense a hostile presence.
- force_more_message += You feel lost and a long, long way from home...
- #Anti mores
- runrest_ignore_message += Found a gateway leading out of the Abyss.
- ##### custom adds / drops
- #when playing an ranged characters, enable these as appropiate
- #autopickup_exceptions = <arrow
- #autopickup_exceptions = <bolt
- #autopickup_exceptions = <sling bullet
- ##### homemade autoinscriptions.
- # prevents dropping the orb, unnecessary in 0.11 or greater
- autoinscribe += Orb:!d
- ## adds use confirmations on dangerous or problematic consumables
- # gods / race are taken into account
- # bad potion is too general, ignores temporary resistancess, chei, etc
- # rework later with ifs.
- autoinscribe += bad_item.*potion:!q
- autoinscribe += potion.*mutation:!q
- : if you.god() ~= "Ashenzari" then
- autoinscribe += curse armour:!r
- autoinscribe += curse weapon:!r
- autoinscribe += curse jewellery:!r
- : end
- autoinscribe += immolation:!r
- autoinscribe += inaccuracy:!P
- # This is mostly to make me pause before panicking and wasting ?blink on ctele levels
- autoinscribe += blinking:!r
- : if you.race() == "Mummy" or you.race() == "Ghoul" or you.race() == "Vampire" then
- autoinscribe += holy word:!r
- : end
- : if not (you.race() == "Mummy" or you.race() == "Ghoul") then
- autoinscribe += scroll.*torment:!r
- : end
- #This doesn't prevent accidentaly mashing M. There's a macro for that.
- #: if (you.god() == "Trog" and you.turns() > 0 ) then
- # autoinscribe += book:!r
- #: end
- #: if you.god() == "Trog" then
- # autoinscribe += book:!r
- #: end
- #{
- #local function illiteracy()
- # retturn autoinscribe += book:!r
- #end
- #}
- #add_autoinscribe_func(illiteracy)
- #: crawl.mpr("The time is" .. you.turns() )
- #: crawl.mpr("Hello " .. you.name())
- #crawl.mpr("Testing 1 2 3")
- : if you.god() == "Okawaru" then
- autoinscribe += enslavement:!v
- : end
- # First turn equipment autoinscriptions
- #: if you.turns() == 1 then
- # not sure how to target indavidual pieces of equipment yet
- # come back later.
- #: end
- ##### homemade macros
- # Prevents accidentally hitting M and reading all your book bombs when
- # worshipping Trog. Map to M in macro.txt
- {
- function trog_illiterate()
- if you.god() == "Trog" then
- crawl.formatted_mpr("Really attempt memorization?", "prompt")
- local res = crawl.getch()
- if string.lower(string.char(res)) == "y" then
- crawl.sendkeys("M")
- end
- else
- crawl.sendkeys("M")
- end
- end
- }
- # Adds a confirmation prompt before autoexplore. Map to o in macro.txt
- {
- function confirm_autoexplore()
- crawl.formatted_mpr("Really autoexplore?", "prompt")
- local res = crawl.getch()
- if string.lower(string.char(res)) == "y" then
- crawl.sendkeys("o")
- end
- end
- }
- # Asks for confirmation before clearing the level map. Map to ctrl+c in
- # macro.txt ( crtl+c = \{3} )
- {
- function confirm_mapclear()
- crawl.formatted_mpr("Really clear the map?", "prompt")
- local res = crawl.getch()
- if string.lower(string.char(res)) == "y" then
- crawl.sendkeys("*c")
- end
- end
- }
- # Dummy check to prevent accidental preemptive branch end entry
- # Map to > in init.txt
- # Right now I can set it to ask for confirmation before ">" depending on location.
- # Not sure how to check if the next floor is unexplored, which is what I really want.
- # Needs annother check to make sure you're actually on a downs staircase,
- # and not a portal. Or regular floor!
- #{
- #function confirm_branchend()
- # if you.where() == "D:1" then
- # crawl.formatted_mpr("Really enter D:2?", "prompt")
- # local res = crawl.getch()
- # if string.lower(string.char(res)) == "y" then
- # crawl.sendkeys(">")
- # end
- # else
- # crawl.sendkeys(">")
- # end
- #end
- #}
- #runrest_stop_message = Your transformation is almost over.
- # Displays the skill level needed to reach minimum delay with a weapon.
- {
- function check_min_delay()
- crawl.mpr("Checking skill needed for minimum delay.")
- crawl.formatted_mpr("Which weapon type? (S)hort Blades, (L)ong Blades, (A)xes, (M)aces & Flails, (P)olerams or S(t)aves?", "prompt")
- local res = crawl.getch()
- if string.lower(string.char(res)) == "s" or string.lower(string.char(res)) == "1" then
- crawl.mpr("Beep")
- end
- if string.lower(string.char(res)) == "l" or string.lower(string.char(res)) == "2" then
- crawl.mpr("Beep")
- end
- if string.lower(string.char(res)) == "a" or string.lower(string.char(res)) == "3" then
- crawl.mpr("Beep")
- end
- if string.lower(string.char(res)) == "m" or string.lower(string.char(res)) == "4" then
- crawl.mpr("Beep")
- end
- if string.lower(string.char(res)) == "p" or string.lower(string.char(res)) == "5" then
- crawl.mpr("Beep")
- end
- if string.lower(string.char(res)) == "t" or string.lower(string.char(res)) == "6" then
- crawl.mpr("Beep")
- end
- end
- }
- # Displays the neccessarly skill level to remove buckler/shield/large_shield penalties for your race
- message_colour += green:buckler/shield/large
- {
- function check_shield_penalties()
- if you.race() == "Kobold" or you.race() == "Halfling" then
- bsl = "7/21/-"
- elseif you.race() == "Spriggan" then
- bsl = "9/-/-"
- elseif you.race() == "Naga" or you.race() == "Centaur" then
- bsl = "3/9/15"
- elseif you.race() == "Troll" or you.race() == "Ogre" then
- bsl = "-/9/15"
- else
- bsl = "5/15/25"
- end
- crawl.mpr("Skill levels of " .. bsl .. " are needed to remove buckler/shield/large shield pentalties for your race.")
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement