Wolfechu

Untitled

Dec 15th, 2014
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.61 KB | None | 0 0
  1. # TEAMCAPTAIN silentsnack
  2. #include += HDamage.rc
  3. include += hugedmg.rc
  4. # language = dwarven|jagerkin|kraut|runes|wide|grunt
  5. # language = dwarven
  6. cset = cloud : xa4
  7. note_chat_messages = true
  8. restart_after_game = true
  9.  
  10. ##############
  11. # Autopickup #
  12. ##############
  13. autopickup += $?!:"/%|
  14. pickup_mode += multi
  15. default_friendly_pickup += none
  16. auto_drop_chunks = rotten
  17. ae := autopickup_exceptions
  18. ae =
  19. ae += <gift
  20. ae += useless_item, dangerous_item, evil_item
  21. ae += (amulet|ring|staff|rod) of
  22.  
  23. #rwbartons secondary armour pickup script
  24. {
  25. local function autopickup(it, name)
  26. if it.is_useless then
  27. return false
  28. end
  29. if it.artefact then
  30. return true
  31. end
  32. local class = it.class(true)
  33. if class == "armour" then
  34. local good_slots = {cloak="Cloak", helmet="Helmet",
  35. gloves="Gloves", boots="Boots"}
  36. st, _ = it.subtype()
  37. if good_slots[st] ~= nil and
  38. items.equipped_at(good_slots[st]) == nil then
  39. return true
  40. end
  41. if name:find("dragon") or
  42. name:find("crystal") then
  43. return true
  44. end
  45. end
  46. return false
  47. end
  48.  
  49. add_autopickup_func(autopickup)
  50. }
  51. : if you.god() == "Nemelex Xobeh" then
  52. ae += <deck
  53. : end
  54.  
  55. ###############
  56. # Spell slots #
  57. ###############
  58.  
  59. note_chat_messages = true
  60.  
  61. sort_menus += inv: true : equipped, freshness, charged, qualname
  62.  
  63. # spell slots, organisation inspired by elliptic
  64. spell := spell_slot
  65.  
  66. # spells that will (nearly) always have the same letter...
  67. spell += summon butterflies:qQ
  68. spell += regeneration:r
  69. spell += flight:fF
  70. spell += shroud of golubria:geE
  71. spell += abjuration:A
  72. spell += ozocubu's armour:eEo
  73. spell += stoneskin:eEs
  74. spell += phase shift:eEp
  75. spell += repel missiles:mM
  76. spell += swiftness:s
  77. spell += control teleport:t
  78. spell += ^blink:B
  79. spell += sublimation of blood:xX
  80. spell += apportation:a
  81. spell += dig:dg
  82. spell += dispersal:QDE
  83. spell += darkness:qQ
  84. spell += vampiric draining:v
  85.  
  86. spell += ring of flames:F
  87. spell += haste:H
  88. spell += invisibility:V
  89. spell += disjunction:J
  90. spell += necromutation:DM
  91. spell += borgnjor's revivification:G
  92. spell += deflect missiles:mM
  93. spell += silence:S
  94. spell += statue form:S
  95. spell += alistair's intoxication:Cc
  96. spell += controlled blink:b
  97. spell += passwall:p
  98. spell += death's door:D
  99. spell += recall:R
  100.  
  101. #brands
  102. spell += warp weapon:WX
  103. spell += excruciating wounds:WX
  104.  
  105. spell += conjure flame:cC
  106. spell += poisonous cloud:cC
  107. spell += freezing cloud:cC
  108. spell += ozocubu's refrigeration:cCoOR
  109. spell += conjure ball lightning:Cc
  110. spell += chain lightning:cC
  111.  
  112. #zombies
  113. spell += animate dead:zZ
  114. spell += twisted resurrection:zZ
  115. spell += control undead:zZcC
  116. spell += animate skeleton:zZ
  117.  
  118. # big stuff: YKUHLJN if there's not a better place
  119. spell += fire storm:CYKUHLJN
  120. spell += glaciate:YKUHLJN
  121. spell += shatter:SYKUHLJN
  122. spell += tornado:TYKUHLJN
  123. spell += summon horrible things:YKUHLJN
  124. spell += dragon's call:YKUHLJN
  125. spell += summon greater demon:YKUHLJN
  126. spell += haunt:YKUHLJN
  127. spell += malign gateway:YKUHLJN
  128. spell += dragon form:YKUHLJN
  129.  
  130. # oddball spells
  131. spell += passage of golubria:g
  132. spell += confusing touch:ct
  133. spell += sure blade:s
  134. spell += condensation shield:eE
  135. spell += corpse rot:cC
  136. spell += portal projectile:fp
  137. spell += simulacrum:wWX
  138. spell += metabolic englaciation:cC
  139. spell += ignite poison:pP
  140. spell += sticks to snakes:wWxX
  141. spell += death channel:W
  142. spell += cure poison:p
  143. spell += tukima's dance:wWX
  144. spell += mass confusion:CM
  145. spell += olgreb's toxic radiance:ocC
  146. spell += cause fear:cC
  147. spell += static discharge:cC
  148. spell += vampiric draining:v
  149. spell += leda's liquefaction:TQ
  150.  
  151. # defaults (attack / summon / transform / conflicts) go on numpad
  152. spell += .*:ykuhljnYKUHLJN
  153.  
  154.  
  155. ##########
  156. # Travel #
  157. ##########
  158. #travel_delay = -1
  159. explore_stop += items,greedy_items,greedy_pickup,greedy_pickup_gold
  160. explore_stop += greedy_visited_item_stack,stairs,shops,altars,gates
  161. explore_stop += greedy_sacrificeable
  162. trapwalk_safe_hp =
  163. trapwalk_safe_hp += dart:10,needle:5,arrow:15,bolt:25,spear:20,axe:25,blade:35
  164.  
  165. #sacrifice_before_explore = true
  166. auto_sacrifice = true
  167. stop := runrest_stop_message
  168. stop =
  169. #ignore := runrest_ignore_message
  170. #ignore =
  171. #ignore += You feel.*sick
  172. #ignore += disappears in a puff of smoke
  173. #ignore += engulfed in a cloud of smoke
  174. #ignore += standing in the rain
  175. #ignore += engulfed in white fluffiness
  176. #ignore += safely over a trap
  177. #ignore += A.*toadstool withers and dies
  178. #ignore += toadstools? grow
  179. #ignore += You walk carefully through the
  180. #ignore += grinding sound
  181. #ignore += contamination has completely
  182. #ignore += chunks of flesh in your inventory.*rotted away
  183. runrest_ignore_poison = 2:10
  184. runrest_ignore_monster += butterfly:1
  185.  
  186. # Bad things
  187. stop += found a trap
  188. stop += Wait a moment
  189. stop += You fall through a shaft
  190. stop += An alarm trap emits a blaring wail
  191. stop += (blundered into a|invokes the power of) Zot
  192. stop += hear a soft click
  193. stop += A huge blade swings out and slices into you!
  194. stop += sense of stasis
  195. stop += flesh start
  196. stop += (starving|devoid of blood)
  197. stop += wrath finds you
  198. stop += lose consciousness
  199.  
  200.  
  201. # Expiring effects
  202. stop += You feel yourself slow down
  203. stop += less insulated
  204. stop += You are starting to lose your buoyancy
  205. stop += You lose control over your flight
  206. stop += Your hearing returns
  207. stop += Your transformation is almost over
  208. stop += back to life
  209. stop += uncertain
  210. stop += time is quickly running out
  211. stop += life is in your own hands
  212. stop += is no longer charmed
  213.  
  214. # Ghouls
  215. : if you.race() == "Ghoul" then
  216. stop += smell.*(rott(ing|en)|decay)
  217. stop += something tasty in your inventory
  218. : end
  219.  
  220. #ignore += pray:
  221. #ignore += talk:
  222. #ignore += talk_visual:
  223. #ignore += friend_spell:
  224. #ignore += friend_enchant:
  225. #ignore += friend_action:
  226. #ignore += sound:
  227. #stop += god:
  228. #stop += tutorial:
  229.  
  230. ###########
  231. # Prompts #
  232. ###########
  233. more := force_more_message
  234. more =
  235.  
  236. # Important features
  237. : if you.god() == "Ashenzari" then
  238. more += You have a vision of.*gates?
  239. : else
  240. more += interdimensional caravan
  241. more += distant snort
  242. more += Found a gateway leading out of the Abyss
  243. : end
  244. more += Found .* abyssal rune of Zot
  245.  
  246. # Interrupts
  247. more += You don't.* that spell
  248. more += You fail to use your ability
  249. more += You miscast Controlled Blink
  250. more += You can't (read|drink) that
  251. more += That item cannot be evoked
  252. more += This wand has no charges
  253. more += You are held in a net
  254. more += You have disarmed
  255. more += You don't have any such object
  256. more += do not work when you're silenced
  257. more += You can't unwield
  258. more += enough magic points
  259. more += You feel your control is inadequate
  260.  
  261. # Bad things
  262. more += Your surroundings flicker
  263. more += sense of stasis
  264. more += Your amulet of stasis
  265. more += You cannot teleport right now
  266. more += The writing blurs in front of your eyes
  267. more += You fall through a shaft
  268. more += A huge blade swings out and slices into you
  269. more += (blundered into a|invokes the power of) Zot
  270. more += Ouch! That really hurt!
  271. more += dispelling energy hits you
  272. more += You convulse
  273. more += You are (blasted|electrocuted)
  274. more += You are.*(confused|poisoned)
  275. stop += flesh start
  276. more += (starving|devoid of blood)
  277. more += wrath finds you
  278. more += lose consciousness
  279. more += You are too injured to fight blindly
  280. more += Green shoots are pushing up through the earth
  281.  
  282. # Hell effects
  283. more += You will not leave this place
  284. more += Die\, mortal
  285. more += We do not forgive those who trespass against us
  286. more += Trespassers are not welcome here
  287. more += You do not belong in this place
  288. more += Leave now\, before it is too late
  289. more += We have you now
  290. more += You smell brimstone
  291. more += Brimstone rains from above
  292. more += You feel lost and a long\, long way from home
  293. more += You shiver with fear
  294. more += You feel a terrible foreboding
  295. more += Something frightening happens
  296. more += You sense an ancient evil watching you
  297. more += You suddenly feel all small and vulnerable
  298. more += You sense a hostile presence
  299. more += A gut-wrenching scream fills the air
  300. more += You hear words spoken in a strange and terrible language
  301. more += You hear diabolical laughter
  302.  
  303. # Expiring effects
  304. more += You feel yourself slow down
  305. more += less insulated
  306. more += You are starting to lose your buoyancy
  307. more += You lose control over your flight
  308. more += Your hearing returns
  309. more += Your transformation is almost over
  310. more += You have a feeling this form
  311. more += You feel yourself come back to life
  312. more += uncertain
  313. more += time is quickly running out
  314. more += life is in your own hands
  315. more += is no longer charmed
  316. more += shroud falls apart
  317.  
  318. # Others
  319. more += You have reached level
  320. more += Your scales start
  321. more += You feel monstrous
  322. more += Jiyva alters your body
  323. #: if you.god() == "Xom" then
  324. #more += god:
  325. #: end
  326.  
  327. #############
  328. # Interface #
  329. #############
  330. equip_unequip = true
  331. allow_self_target = no
  332. easy_confirm = all
  333. #confirm_butcher = never
  334. #auto_eat_chunks = true
  335. auto_drop_chunks = yes
  336. easy_eat_contaminated = true
  337. hp_warning = 50
  338. hp_colour =
  339. hp_colour += 100:green, 99:lightgray, 75:yellow, 50:lightred, 25:red
  340. mp_colour =
  341. mp_colour += 100:green, 99:lightgray, 75:yellow, 50:lightred, 25:red
  342. stat_colour =
  343. stat_colour += 3:red, 7:lightred
  344. small_more = true
  345. show_inventory_weights = true
  346. show_gold_turns = true
  347. show_game_turns = true
  348. default_manual_training = true
  349.  
  350. # Spellcasting spam reduction by monqy
  351. {
  352. local function generic_cast_spell(cmd)
  353. crawl.mpr('<cyan>Cast which spell?</cyan>')
  354. crawl.flush_prev_message()
  355. crawl.process_keys(cmd)
  356. end
  357.  
  358. function cast_spell()
  359. generic_cast_spell('z')
  360. end
  361.  
  362. function force_cast_spell()
  363. generic_cast_spell('Z')
  364. end
  365. }
  366.  
  367. ###################
  368. # Message colours #
  369. ###################
  370. $inedible := darkgrey
  371. $evil := red
  372. $preferred := yellow
  373. $rot-inducing := lightred
  374. $mutagenic := magenta
  375. $dangerous := magenta
  376. $poisonous := lightgreen
  377. $contaminated := brown
  378.  
  379. ### standard colours to be used for message highlighting
  380. $danger := lightred
  381. $warning := yellow
  382. $boring := darkgrey
  383. $item_dmg := $danger
  384.  
  385. msc := message_colour
  386. msc =
  387. menu := menu_colour
  388. menu =
  389.  
  390. # Multi-turn
  391. channel.multiturn = mute
  392.  
  393. # Allies
  394. msc += mute:returns to your side
  395. msc += mute:A demon appears
  396. msc += mute:puff of smoke
  397. msc += mute:carefully avoids
  398. msc += mute:is recalled
  399. msc += mute:wall.*burn.*your
  400. msc += mute:dissolves? into (sparkling lights|shadows)
  401. msc += mute:You swap places
  402. msc += mute:Your.*(looks stronger|shudders|resist)
  403. msc += mute:(stumbles backwards|holds.*ground)
  404. msc += mute:(Something|Your).*(misses|does no damage)
  405. msc += mute:Your.*(blinks|safely over|gestures)
  406. msc += mute:(phases out.*|misses) (your|something).*
  407. msc += mute:your.*but does no damage
  408. msc += mute:Your.*(picks up|drops)
  409.  
  410. # Prayer
  411. #channel.pray = mute
  412.  
  413. # Jiyva
  414. : if you.god() == "Jiyva" then
  415. msc += mute:slurping|squelching
  416. msc += mute:a little less hungry
  417. msc += mute:splits in two
  418. : end
  419.  
  420. # Interface
  421. # msc += mute:Cast which spell\? \(
  422. # msc += mute:Casting.*
  423. # msc += mute:Confirm with \. or Enter, or press \? or \* to list all spells\.
  424. msc += mute:Press\: \? - help, Shift-Dir - straight line, f - you
  425. msc += mute:for a list of commands and other information
  426.  
  427. # Other
  428. #msc += mute:This raw flesh tastes terrible
  429. #msc += mute:There is something wrong with this meat
  430. #msc += mute:melds into your body
  431. #msc += mute:begins to bleed from.*wounds
  432. #msc += mute:writhes in agony as.*flesh
  433. #msc += mute:An air elemental.*itself.*the air
  434.  
  435. # Item colouring
  436. # Default colours
  437. msc += $danger:drains you
  438. msc += $danger:feel drained
  439. msc += $danger:strangely unstable
  440. msc += $danger:curare-tipped.*hits you
  441. msc += $danger:Space warps.* around you
  442. msc += $danger:Space bends around you
  443. msc += $danger:sense of stasis
  444. msc += $danger:clumsily bash
  445. msc += $danger:goes berserk
  446. msc += $danger:Forgetting.* will destroy the book
  447. msc += $danger:The blast of calcifying dust hits you
  448. msc += $danger:You are engulfed in calcifying dust
  449. msc += $danger:is moving more slowly
  450. msc += $danger:^It .* you
  451. msc += $danger:You block its attack
  452. msc += $danger:constricts you
  453. msc += $danger:you convulse
  454.  
  455. msc += $item_dmg:acid corrodes
  456. msc += $item_dmg:catch(es)? fire
  457. msc += $item_dmg:freezes? and shatters?
  458. msc += $item_dmg:covered with spores
  459. msc += $item_dmg:devours some of your food
  460. msc += $item_dmg:rots? away
  461.  
  462. msc += $warning:ticking.*clock
  463. msc += $warning:dying ticks
  464. msc += $warning:distant snort
  465. msc += $warning:odd grinding sound
  466. msc += $warning:creaking of ancient gears
  467. msc += $warning:floor suddenly vibrates
  468. msc += $warning:a sudden draft
  469. msc += $warning:coins.*counted
  470. msc += $warning:tolling.*bell
  471. msc += $warning:fails to return
  472. msc += $warning:no longer ripe
  473.  
  474. msc += $boring:You start (resting|waiting)
  475. msc += $boring:Unknown command
  476. msc += $boring:but (do no|doesn't do any) damage
  477. msc += $boring:(prevent|prevents) you from hitting
  478.  
  479. menu += inventory:white:\w \+\s
  480. menu += inventory:white:\w \#\s
  481. menu += darkgrey:(melded)
  482. menu += darkgrey:.*useless_item.*
  483. menu += red:.*evil_item.*
  484. menu += lightred: cursed
  485. menu += inventory:lightgreen:.*equipped.*
  486. menu += lightmagenta:.*misc.*rune( of Zot)?
  487. menu += lightmagenta:.*orb.*Zot
  488. menu += white:.*artefact.*
  489. menu += lightblue:^unidentified .*(potion|scroll|wand|jewellery).*
  490. menu += lightblue:^unidentified .*weapon.*(runed|glowing)
  491. menu += lightblue:^unidentified .*armour.*(runed|glowing)
  492. menu += lightblue:^unidentified .*armour.*(embroidered|shiny|dyed)
  493. menu += yellow:heal wounds
  494. menu += yellow: curing
  495. menu += yellow: haste|hasting
  496. menu += yellow: identify
  497. # Food
  498. menu += $inedible:.*inedible.*
  499. menu += $evil:.*evil_eating.*
  500. menu += $rot-inducing:.*rot-inducing.*
  501. menu += $mutagenic:.*mutagenic.*
  502. menu += $poisonous:.*poisonous.*
  503. menu += $contaminated:.*contaminated.*
  504.  
  505. ####################
  506. # Autoinscriptions #
  507. ####################
  508. autoinscribe += (distortion):!w
  509. autoinscribe += (bad|dangerous)_item.*potion:!q
  510. autoinscribe += (bad|dangerous)_item.*scroll:!r
  511. autoinscribe += of faith:!P
  512. autoinscribe += rod of:!a
  513. autoinscribe += chunks? of:@w1
  514. : if you.god() == "Fedhas" then
  515. autoinscribe += fruit:!e
  516. : end
  517.  
  518. #########
  519. # Notes #
  520. #########
  521. dump_message_count = 20
  522. dump_order = header, hiscore, stats, misc, notes, inventory,
  523. dump_order += turns_by_place, skills, spells, overview, mutations,
  524. dump_order += messages, screenshot, monlist, kills_by_place, kills
  525. dump_order += action_counts
  526. dump_book_spells = false
  527. note_all_skill_levels = true
  528. note_hp_percent = 10
  529. note_messages += protects you from harm
  530. note_messages += You fall through a shaft
  531.  
  532. #################
  533. # Miscellaneous #
  534. #################
  535. char_set = ascii
  536. show_player_species = true
  537. #skill_focus = toggle
  538. feature = explore horizon {.,,green}
  539.  
  540. ##show player interface stuff
  541. # Player glyphs based on skills by N78291
  542. : best = you.skill("Fighting")
  543. : skill_name = "Fighting"
  544. : melee = true
  545. : casting = false
  546. : if you.skill("Short Blades") > best then
  547. : best = you.skill("Short Blades")
  548. : skill_name = "Short Blades"
  549. : end
  550. : if you.skill("Long Blades") > best then
  551. : best = you.skill("Long Blades")
  552. : skill_name = "Long Blades"
  553. : end
  554. : if you.skill("Axes") > best then
  555. : best = you.skill("Axes")
  556. : skill_name = "Axes"
  557. : end
  558. : if you.skill("Maces & Flails") > best then
  559. : best = you.skill("Maces & Flails")
  560. : skill_name = "Maces & Flails"
  561. : end
  562. : if you.skill("Polearms") > best then
  563. : best = you.skill("Polearms")
  564. : skill_name = "Polearms"
  565. : end
  566. : if you.skill("Staves") > best then
  567. : best = you.skill("Staves")
  568. : skill_name = "Staves"
  569. : end
  570. : if you.skill("Slings") > best then
  571. : best = you.skill("Slings")
  572. : skill_name = "Slings"
  573. : end
  574. : if you.skill("Bows") > best then
  575. : best = you.skill("Bows")
  576. : skill_name = "Bows"
  577. : end
  578. : if you.skill("Crossbows") > best then
  579. : best = you.skill("Crossbows")
  580. : skill_name = "Crossbows"
  581. : end
  582. : if you.skill("Throwing") > best then
  583. : best = you.skill("Throwing")
  584. : skill_name = "Throwing"
  585. : end
  586. : if you.skill("Armour") > best then
  587. : best = you.skill("Armour")
  588. : skill_name = "Armour"
  589. : end
  590. : if you.skill("Dodging") > best then
  591. : best = you.skill("Dodging")
  592. : skill_name = "Dodging"
  593. : end
  594. : if you.skill("Stealth") > best then
  595. : best = you.skill("Stealth")
  596. : skill_name = "Stealth"
  597. : melee = false
  598. : end
  599. : if you.skill("Stabbing") > best then
  600. : best = you.skill("Stabbing")
  601. : skill_name = "Stabbing"
  602. : melee = false
  603. : end
  604. : if you.skill("Shields") > best then
  605. : best = you.skill("Shields")
  606. : skill_name = "Shields"
  607. : end
  608. : if you.skill("Traps & Doors") > best then
  609. : best = you.skill("Traps & Doors")
  610. : skill_name = "Traps & Doors"
  611. : melee = false
  612. : end
  613. : if you.skill("Unarmed Combat") > best then
  614. : best = you.skill("Unarmed Combat")
  615. : skill_name = "Unarmed Combat"
  616. : end
  617. : if you.skill("Spellcasting") > best then
  618. : best = you.skill("Spellcasting")
  619. : skill_name = "Spellcasting"
  620. : melee = false
  621. : casting = true
  622. : end
  623. : if you.skill("Conjurations") > best then
  624. : best = you.skill("Conjurations")
  625. : skill_name = "Conjurations"
  626. : melee = false
  627. : casting = true
  628. : end
  629. : if you.skill("Enchantments") > best then
  630. : best = you.skill("Enchantments")
  631. : skill_name = "Enchantments"
  632. : melee = false
  633. : casting = true
  634. : end
  635. : if you.skill("Summonings") > best then
  636. : best = you.skill("Summonings")
  637. : skill_name = "Summonings"
  638. : melee = false
  639. : casting = true
  640. : end
  641. : if you.skill("Necromancy") > best then
  642. : best = you.skill("Necromancy")
  643. : skill_name = "Necromancy"
  644. : melee = false
  645. : casting = true
  646. : end
  647. : if you.skill("Translocations") > best then
  648. : best = you.skill("Translocations")
  649. : skill_name = "Translocations"
  650. : melee = false
  651. : casting = true
  652. : end
  653. : if you.skill("Transmutations") > best then
  654. : best = you.skill("Transmutations")
  655. : skill_name = "Transmutations"
  656. : melee = false
  657. : casting = true
  658. : end
  659. : if you.skill("Fire Magic") > best then
  660. : best = you.skill("Fire Magic")
  661. : skill_name = "Fire Magic"
  662. : melee = false
  663. : casting = true
  664. : end
  665. : if you.skill("Ice Magic") > best then
  666. : best = you.skill("Ice Magic")
  667. : skill_name = "Ice Magic"
  668. : melee = false
  669. : casting = true
  670. : end
  671. : if you.skill("Air Magic") > best then
  672. : best = you.skill("Air Magic")
  673. : skill_name = "Air Magic"
  674. : melee = false
  675. : casting = true
  676. : end
  677. : if you.skill("Earth Magic") > best then
  678. : best = you.skill("Earth Magic")
  679. : skill_name = "Earth Magic"
  680. : melee = false
  681. : casting = true
  682. : end
  683. : if you.skill("Poison Magic") > best then
  684. : best = you.skill("Poison Magic")
  685. : skill_name = "Poison Magic"
  686. : melee = false
  687. : casting = true
  688. : end
  689. : if you.skill("Invocations") > best then
  690. : best = you.skill("Invocations")
  691. : skill_name = "Invocations"
  692. : melee = false
  693. : end
  694. : if you.skill("Evocations") > best then
  695. : best = you.skill("Evocations")
  696. : skill_name = "Evocations"
  697. : melee = false
  698. : end
  699. : if you.race() == "Deep Elf" or you.race() == "High Elf"
  700. : or you.race() == "Sludge Elf" then
  701. show_player_species = false
  702. : if skill_name == "Summonings" then
  703. : if best >= 8 and best < 21 then
  704. mon_glyph = player:brown e
  705. : elseif best >= 21 then
  706. mon_glyph = player:yellow e
  707. : end
  708. : elseif skill_name == "Invocations" then
  709. : if best < 15 then
  710. mon_glyph = player:green e
  711. : else
  712. mon_glyph = player:lightgreen e
  713. : end
  714. : elseif skill_name == "Conjurations" then
  715. : if best >= 8 and best < 27 then
  716. mon_glyph = player:blue e
  717. : else
  718. mon_glyph = player:lightblue e
  719. : end
  720. : elseif skill_name == "Necromancy" then
  721. mon_glyph = player:white e
  722. : elseif casting == true then
  723. : if best < 21 then
  724. mon_glyph = player:magenta e
  725. : else
  726. mon_glyph = player:lightmagenta e
  727. : end
  728. : elseif skill_name == "Bows" then
  729. mon_glyph = player:lightgrey e
  730. : elseif skill_name == "Short Blades" then
  731. mon_glyph = player:lightcyan e
  732. : elseif melee == true then
  733. : if best < 10 then
  734. mon_glyph = player:lightred e
  735. : else
  736. mon_glyph = player:cyan e
  737. : end
  738. : else
  739. mon_glyph = player:red e
  740. : end
  741. : end
  742. : if you.race() == "Merfolk" then
  743. show_player_species = false
  744. : if skill_name == "Throwing" then
  745. mon_glyph = player:lightgrey m
  746. : elseif skill_name == "Ice Magic" then
  747. mon_glyph = player:green m
  748. : elseif skill_name == "Polearms" and best >= 15 then
  749. mon_glyph = player:lightblue m
  750. : else
  751. mon_glyph = player:blue m
  752. : end
  753. : end
  754. : if you.race() == "Hill Orc" then
  755. show_player_species = false
  756. : if you.god == "Beogh" then
  757. show_player_species = true
  758. : elseif melee == true then
  759. : if best >= 10 and best < 15 then
  760. mon_glyph = player:yellow o
  761. : elseif best >= 15 and best < 20 then
  762. mon_glyph = player:cyan o
  763. : elseif best >= 20 then
  764. mon_glyph = player:lightcyan o
  765. : end
  766. : elseif casting == true then
  767. : if best >= 15 then
  768. mon_glyph = player:lightmagenta o
  769. : else
  770. mon_glyph = player:magenta o
  771. : end
  772. : else
  773. mon_glyph = player:lightred o
  774. : end
  775. : end
  776. : if you.race() == "Deep Dwarf" then
  777. show_player_species = false
  778. : if you.god() == "Yredelemnul" then
  779. mon_glyph = player:green q
  780. : elseif you.god() == "Trog" then
  781. mon_glyph = player:lightred q
  782. : elseif skill_name == "Evocations" then
  783. mon_glyph = player:blue q
  784. : elseif skill_name == "Necromancy" then
  785. mon_glyph = player:magenta q
  786. : else
  787. mon_glyph = player:brown q
  788. : end
  789. : end
  790. : if you.race() == "Naga" then
  791. show_player_species = false
  792. : if melee == true and best >= 15 then
  793. mon_glyph = player:blue N
  794. : elseif casting == true then
  795. : if best >= 15 then
  796. mon_glyph = player:lightmagenta N
  797. : else
  798. mon_glyph = player:red N
  799. : end
  800. : else
  801. mon_glyph = player:green N
  802. : end
  803. : end
  804. : if you.race() == "Centaur" then
  805. show_player_species = false
  806. : if melee == true and best >= 15 then
  807. mon_glyph = player:yellow c
  808. : else
  809. mon_glyph = player:brown c
  810. : end
  811. : end
  812. : if you.race() == "Spriggan" then
  813. show_player_species = false
  814. : if you.god() == "Trog" then
  815. mon_glyph = player:lightred i
  816. : else
  817. mon_glyph = player:lightgrey i
  818. : end
  819. : end
  820. : if you.race() == "Kobold" then
  821. show_player_species = false
  822. : if skill_name == "Summonings" then
  823. mon_glyph = player:magenta K
  824. : else
  825. mon_glyph = player:brown K
  826. : end
  827. : end
  828. : if you.race() == "Mummy" then
  829. show_player_species = false
  830. : if skill_name == "Invocations" then
  831. mon_glyph = player:red M
  832. : elseif best >= 25 then
  833. mon_glyph = player:white M
  834. : else
  835. mon_glyph = player:lightgrey M
  836. : end
  837. : end
  838. : if you.race() == "Vampire" then
  839. show_player_species = false
  840. : if melee == true and best >= 15 then
  841. mon_glyph = player:lightcyan V
  842. : elseif casting == true and best >= 15 then
  843. mon_glyph = player:magenta V
  844. : else
  845. mon_glyph = player:red V
  846. : end
  847. : end
  848. : if you.race() == "Octopode" then
  849. show_player_species = false
  850. mon_glyph = player:cyan X
  851. :end
  852. # Demonspawn added by st_
  853. : if you.race() == "Demonspawn" then
  854. show_player_species = false
  855. : if melee == true then
  856. : if best < 27 then
  857. mon_glyph = player:lightgrey 1
  858. : else
  859. mon_glyph = player:lightgrey &
  860. : end
  861. : elseif skill_name == "Armour" then
  862. : if best < 27 then
  863. mon_glyph = player:cyan 1
  864. : else
  865. mon_glyph = player:cyan &
  866. : end
  867. : elseif skill_name == "Stealth" then
  868. : if best < 27 then
  869. mon_glyph = player:darkgrey 1
  870. : else
  871. mon_glyph = player:darkgrey &
  872. : end
  873. : elseif skill_name == "Stabbing" then
  874. : if best < 27 then
  875. mon_glyph = player:darkgrey 1
  876. : else
  877. mon_glyph = player:darkgrey &
  878. : end
  879. : elseif skill_name == "Spellcasting" then
  880. : if best < 27 then
  881. mon_glyph = player:lightmagenta 1
  882. : else
  883. mon_glyph = player:lightmagenta &
  884. : end
  885. : elseif skill_name == "Conjurations" then
  886. : if best < 27 then
  887. mon_glyph = player:lightblue 1
  888. : else
  889. mon_glyph = player:lightblue &
  890. : end
  891. : elseif skill_name == "Enchantments" then
  892. : if best < 27 then
  893. mon_glyph = player:yellow 1
  894. : else
  895. mon_glyph = player:yellow &
  896. : end
  897. : elseif skill_name == "Summonings" then
  898. : if best < 27 then
  899. mon_glyph = player:blue 1
  900. : else
  901. mon_glyph = player:blue &
  902. : end
  903. : elseif skill_name == "Translocations" then
  904. : if best < 27 then
  905. mon_glyph = player:lightcyan 1
  906. : else
  907. mon_glyph = player:lightcyan &
  908. : end
  909. : elseif skill_name == "Transmutations" then
  910. : if best < 27 then
  911. mon_glyph = player:yellow 1
  912. : else
  913. mon_glyph = player:yellow &
  914. : end
  915. : elseif skill_name == "Fire Magic" then
  916. : if best < 27 then
  917. mon_glyph = player:red 1
  918. : else
  919. mon_glyph = player:red &
  920. : end
  921. : elseif skill_name == "Ice Magic" then
  922. : if best < 27 then
  923. mon_glyph = player:white 1
  924. : else
  925. mon_glyph = player:white &
  926. : end
  927. : elseif skill_name == "Air Magic" then
  928. : if best < 27 then
  929. mon_glyph = player:blue 1
  930. : else
  931. mon_glyph = player:blue &
  932. : end
  933. : elseif skill_name == "Earth Magic" then
  934. : if best < 27 then
  935. mon_glyph = player:brown 1
  936. : else
  937. mon_glyph = player:brown &
  938. : end
  939. : elseif skill_name == "Necromancy" then
  940. : if best < 27 then
  941. mon_glyph = player:magenta 1
  942. : else
  943. mon_glyph = player:magenta &
  944. : end
  945. : elseif skill_name == "Poison Magic" then
  946. : if best < 27 then
  947. mon_glyph = player:green 1
  948. : else
  949. mon_glyph = player:green &
  950. : end
  951. : elseif skill_name == "Invocations" then
  952. : if best < 27 then
  953. mon_glyph = player:lightgreen 1
  954. : else
  955. mon_glyph = player:lightgreen &
  956. : end
  957. : else
  958. mon_glyph = player:lightred &
  959. : end
  960. : end
  961.  
  962. ###################
  963. ### RandomTiles ###
  964. ###################
  965.  
  966. tile_player_tile = playermons
  967.  
  968. ## To set up RandomTiles, you need (1) the includes below and (2) to #add/modify
  969. ## the ready() function in your rc. See the project page:
  970. ## https://github.com/gammafunk/RandomTiles
  971.  
  972. include += PlayerTiles.rc
  973. include += RandomTiles.rc
  974.  
  975. {
  976.  
  977. local need_skills_opened = true
  978. local dump_count = you.turns()
  979.  
  980. function ready()
  981. -- Enable RandomTiles.
  982. random_tile()
  983.  
  984. # -- Show skill screen at game start.
  985. if you.turns() == 0 and need_skills_opened then
  986. need_skills_opened = false
  987. crawl.sendkeys("m")
  988. end
  989.  
  990. # -- Make a char dump every 1k turns.
  991. if you.turns() >= dump_count then
  992. dump_count = dump_count + 1000
  993. crawl.dump_char()
  994. end
  995. end
  996.  
  997. }
Add Comment
Please, Sign In to add comment