Advertisement
mageykun

Crawl Config file

Mar 6th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.67 KB | None | 0 0
  1. #&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
  2.  
  3. ##### MINE: Custom configuration #################
  4. #
  5. # Fixes things I don't like, and idiot proofing.
  6.  
  7. # If copying over to a new version of crawl, remember to copy macro.txt as well!
  8.  
  9.  
  10. ##### simple toggles
  11.  
  12.  
  13. prefer_safe_chunks = false
  14. easy_exit_menu = false
  15.  
  16.  
  17. autopickup = $?!:"/%
  18. drop_filter += useless_item
  19.  
  20. auto_exclude += oklob,statue,curse skull,roxanne,hyperactive,lightning spire
  21. auto_exclude += mimic
  22.  
  23. trapwalk_safe_hp = dart:20,needle:15,arrow:35,bolt:45,spear:40,blade:95
  24.  
  25. sort_menus = inv: true : equipped, freshness, charged
  26.  
  27.  
  28.  
  29. ##### customizes dump
  30.  
  31. dump_item_origins = artifacts,ego_arm,ego_weap,jewellery,staves,rods
  32. dump_book_spells = false
  33.  
  34. dump_order = header, hiscore, stats, misc, inventory,
  35. dump_order += skills, spells, action_counts, overview, mutations,
  36. dump_order += messages, screenshot, monlist, kills,
  37. dump_order += notes
  38.  
  39.  
  40. #dump_order variables not used: turns_by_place, kills_by_place, spell_usage, vaults
  41.  
  42. ### This is what the default dump order is if you don't specify your own
  43. #
  44. # dump_order = header, hiscore, stats, misc, inventory,
  45. # dump_order += skills, spells, overview, mutations,
  46. # dump_order += messages, screenshot, monlist, kills
  47. # dump_order += notes
  48.  
  49.  
  50. note_all_skill_levels = true
  51. note_skill_max = true
  52.  
  53.  
  54. ##### removes extra dirrectional keys
  55.  
  56. #vi keys, left up down right
  57.  
  58. bindkey = [h] CMD_NO_CMD_DEFAULT
  59. bindkey = [j] CMD_NO_CMD_DEFAULT
  60. bindkey = [k] CMD_NO_CMD_DEFAULT
  61. bindkey = [l] CMD_NO_CMD_DEFAULT
  62. bindkey = [H] CMD_NO_CMD_DEFAULT
  63. bindkey = [J] CMD_NO_CMD_DEFAULT
  64. bindkey = [K] CMD_NO_CMD_DEFAULT
  65. bindkey = [L] CMD_NO_CMD_DEFAULT
  66. bindkey = [^H] CMD_NO_CMD_DEFAULT
  67. bindkey = [^J] CMD_NO_CMD_DEFAULT
  68. bindkey = [^K] CMD_NO_CMD_DEFAULT
  69. bindkey = [^L] CMD_NO_CMD_DEFAULT
  70.  
  71. ##### mores
  72.  
  73. #Saftey
  74.  
  75. force_more_message += You are starting to lose your buoyancy.
  76. force_more_message += An Orb of Fire comes into view.
  77.  
  78. force_more_message += You have a vision of a gate.
  79. force_more_message += You have a vision of multiple gates.
  80.  
  81. #Hell Effect Messages
  82.  
  83. force_more_message += "Die, mortal!"
  84. force_more_message += Brimstone rains from above.
  85. force_more_message += You sense an ancient evil watching you...
  86. force_more_message += You hear words spoken in a strange and terrible language...
  87. force_more_message += You feel a terrible foreboding...
  88. force_more_message += A gut-wrenching scream fills the air!
  89. force_more_message += You shiver with fear.
  90. force_more_message += Something frightening happens.
  91. force_more_message += "We do not forgive those who trespass against us!"
  92. force_more_message += "You do not belong in this place!"
  93. force_more_message += "You will not leave this place."
  94. force_more_message += "Trespassers are not welcome here!"
  95. force_more_message += "We have you now!"
  96. force_more_message += You hear diabolical laughter.
  97. force_more_message += You suddenly feel all small and vulnerable.
  98. force_more_message += "Leave now, before it is too late!"
  99. force_more_message += You sense a hostile presence.
  100. force_more_message += You feel lost and a long, long way from home...
  101.  
  102. #Anti mores
  103.  
  104. runrest_ignore_message += Found a gateway leading out of the Abyss.
  105.  
  106. ##### custom adds / drops
  107.  
  108. #when playing an ranged characters, enable these as appropiate
  109.  
  110. #autopickup_exceptions = <arrow
  111. #autopickup_exceptions = <bolt
  112. #autopickup_exceptions = <sling bullet
  113.  
  114.  
  115.  
  116.  
  117. ##### homemade autoinscriptions.
  118.  
  119. # prevents dropping the orb, unnecessary in 0.11 or greater
  120. autoinscribe += Orb:!d
  121.  
  122. ## adds use confirmations on dangerous or problematic consumables
  123. # gods / race are taken into account
  124.  
  125. # bad potion is too general, ignores temporary resistancess, chei, etc
  126. # rework later with ifs.
  127. autoinscribe += bad_item.*potion:!q
  128. autoinscribe += potion.*mutation:!q
  129.  
  130. : if you.god() ~= "Ashenzari" then
  131. autoinscribe += curse armour:!r
  132. autoinscribe += curse weapon:!r
  133. autoinscribe += curse jewellery:!r
  134. : end
  135.  
  136. autoinscribe += immolation:!r
  137.  
  138. autoinscribe += inaccuracy:!P
  139.  
  140. # This is mostly to make me pause before panicking and wasting ?blink on ctele levels
  141. autoinscribe += blinking:!r
  142.  
  143. : if you.race() == "Mummy" or you.race() == "Ghoul" or you.race() == "Vampire" then
  144. autoinscribe += holy word:!r
  145. : end
  146.  
  147. : if not (you.race() == "Mummy" or you.race() == "Ghoul") then
  148. autoinscribe += scroll.*torment:!r
  149. : end
  150.  
  151. #This doesn't prevent accidentaly mashing M. There's a macro for that.
  152. #: if (you.god() == "Trog" and you.turns() > 0 ) then
  153. # autoinscribe += book:!r
  154. #: end
  155.  
  156. #: if you.god() == "Trog" then
  157. # autoinscribe += book:!r
  158. #: end
  159.  
  160. #{
  161. #local function illiteracy()
  162. # retturn autoinscribe += book:!r
  163. #end
  164. #}
  165.  
  166. #add_autoinscribe_func(illiteracy)
  167.  
  168. #: crawl.mpr("The time is" .. you.turns() )
  169. #: crawl.mpr("Hello " .. you.name())
  170. #crawl.mpr("Testing 1 2 3")
  171.  
  172. : if you.god() == "Okawaru" then
  173. autoinscribe += enslavement:!v
  174. : end
  175.  
  176.  
  177. # First turn equipment autoinscriptions
  178.  
  179. #: if you.turns() == 1 then
  180. # not sure how to target indavidual pieces of equipment yet
  181. # come back later.
  182. #: end
  183.  
  184. ##### homemade macros
  185.  
  186. # Prevents accidentally hitting M and reading all your book bombs when
  187. # worshipping Trog. Map to M in macro.txt
  188.  
  189. {
  190. function trog_illiterate()
  191. if you.god() == "Trog" then
  192. crawl.formatted_mpr("Really attempt memorization?", "prompt")
  193. local res = crawl.getch()
  194. if string.lower(string.char(res)) == "y" then
  195. crawl.sendkeys("M")
  196. end
  197. else
  198. crawl.sendkeys("M")
  199. end
  200. end
  201. }
  202.  
  203.  
  204. # Adds a confirmation prompt before autoexplore. Map to o in macro.txt
  205.  
  206. {
  207. function confirm_autoexplore()
  208. crawl.formatted_mpr("Really autoexplore?", "prompt")
  209. local res = crawl.getch()
  210. if string.lower(string.char(res)) == "y" then
  211. crawl.sendkeys("o")
  212. end
  213. end
  214. }
  215.  
  216.  
  217. # Asks for confirmation before clearing the level map. Map to ctrl+c in
  218. # macro.txt ( crtl+c = \{3} )
  219.  
  220. {
  221. function confirm_mapclear()
  222. crawl.formatted_mpr("Really clear the map?", "prompt")
  223. local res = crawl.getch()
  224. if string.lower(string.char(res)) == "y" then
  225. crawl.sendkeys("*c")
  226. end
  227. end
  228. }
  229.  
  230. # Dummy check to prevent accidental preemptive branch end entry
  231. # Map to > in init.txt
  232. # Right now I can set it to ask for confirmation before ">" depending on location.
  233. # Not sure how to check if the next floor is unexplored, which is what I really want.
  234. # Needs annother check to make sure you're actually on a downs staircase,
  235. # and not a portal. Or regular floor!
  236.  
  237. #{
  238. #function confirm_branchend()
  239. # if you.where() == "D:1" then
  240. # crawl.formatted_mpr("Really enter D:2?", "prompt")
  241. # local res = crawl.getch()
  242. # if string.lower(string.char(res)) == "y" then
  243. # crawl.sendkeys(">")
  244. # end
  245. # else
  246. # crawl.sendkeys(">")
  247. # end
  248. #end
  249. #}
  250.  
  251. #runrest_stop_message = Your transformation is almost over.
  252.  
  253. # Displays the skill level needed to reach minimum delay with a weapon.
  254.  
  255. {
  256. function check_min_delay()
  257. crawl.mpr("Checking skill needed for minimum delay.")
  258. crawl.formatted_mpr("Which weapon type? (S)hort Blades, (L)ong Blades, (A)xes, (M)aces & Flails, (P)olerams or S(t)aves?", "prompt")
  259. local res = crawl.getch()
  260. if string.lower(string.char(res)) == "s" or string.lower(string.char(res)) == "1" then
  261. crawl.mpr("Beep")
  262. end
  263. if string.lower(string.char(res)) == "l" or string.lower(string.char(res)) == "2" then
  264. crawl.mpr("Beep")
  265. end
  266. if string.lower(string.char(res)) == "a" or string.lower(string.char(res)) == "3" then
  267. crawl.mpr("Beep")
  268. end
  269. if string.lower(string.char(res)) == "m" or string.lower(string.char(res)) == "4" then
  270. crawl.mpr("Beep")
  271. end
  272. if string.lower(string.char(res)) == "p" or string.lower(string.char(res)) == "5" then
  273. crawl.mpr("Beep")
  274. end
  275. if string.lower(string.char(res)) == "t" or string.lower(string.char(res)) == "6" then
  276. crawl.mpr("Beep")
  277. end
  278. end
  279. }
  280.  
  281. # Displays the neccessarly skill level to remove buckler/shield/large_shield penalties for your race
  282. message_colour += green:buckler/shield/large
  283.  
  284. {
  285. function check_shield_penalties()
  286. if you.race() == "Kobold" or you.race() == "Halfling" then
  287. bsl = "7/21/-"
  288. elseif you.race() == "Spriggan" then
  289. bsl = "9/-/-"
  290. elseif you.race() == "Naga" or you.race() == "Centaur" then
  291. bsl = "3/9/15"
  292. elseif you.race() == "Troll" or you.race() == "Ogre" then
  293. bsl = "-/9/15"
  294. else
  295. bsl = "5/15/25"
  296. end
  297. crawl.mpr("Skill levels of " .. bsl .. " are needed to remove buckler/shield/large shield pentalties for your race.")
  298. end
  299. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement