# ~ Depression's Basic Options: default_manual_training = true default_show_all_skills = true travel_delay = 20 explore_delay = 20 travel_key_stop = true wiz_mode = never always_show_zot = true explore_wall_bias = 6 explore_auto_rest = true explore_greedy = true show_travel_trail = true note_hp_percent = 25 note_all_skill_levels = true note_skill_max = true rest_delay = 1 rest_wait_both = true rest_wait_ancestor = true explore_auto_rest = true autofight_stop = 50 tile_tag_pref = named stop = duration # ~ Player Tile Options: (normal | playermons | mons: | tile: ) tile_player_tile = normal # ~ Additional Exploration (Inactivated): #explore_stop = glowing_items,artefacts,greedy_pickup_smart #explore_stop += greedy_visited_item_stack,stairs,shops #explore_stop += altars,portals,branches,runed_doors,greedy_sacrificeable # ~ Health and Mana: hp_warning = 40 hp_colour = 70:yellow, 40:red mp_warning = 40 mp_colour = 70:yellow, 40:red # ~ Force More Messages: more := force_more_message # Enemy Spotted: message_colour += yellow:into view more += into view message_colour += yellow:out of view more += out of view # Leveling up: more += You have reached level more += You have gained .* skill more += Your .* skill increases to level # Dungeon features: more += invites you to visit more += interdimensional caravan more += The mighty Pandemonium lord.*resides here more += distant snort more += Found a gateway leading out of the Abyss more += Found a staircase to the Ecumenical Temple more += wave of frost more += roar of battle more += There is an entrance to a bailey on this level more += oppressive heat more += tolling of a bell more += sound of rushing water more += Found a labyrinth entrance more += You have a vision of.*gates? more += Fedhas invokes the elements against you more += Lugonu sends minions to punish you more += Done waiting more += (The|Your).*falls away! more += cast banishment more += cast paralyse more += cast Torment more += Your body shudders with the violent release of wild energies more += is duplicated more += You feel sluggish more += You are shrouded in an aura of darkness more += You really shouldn't be using more += Mutagenic energies flood into your body more += You are surrounded by a storm which can block enemy attacks more += resistances upon receiving elemental damage more += Found a glowing drain more += Found a sand-covered staircase more += Found a flagged portal more += Found a crumbling entrance more += Found a flickering gateway more += Found a gateway to a bazaar more += Found a magical portal more += Found a frozen archway more += Found a dark tunnel # Translocations: more += You.*teleport [^f] more += Your surroundings suddenly seem different more += You feel strangely (unstable|stable) more += You cannot teleport right now more += You cannot blink right now # Wands/Potions/Scrolls/evokes used by monsters: more += zaps a (wand|rod) more += drinks a potion more += reads a scroll more += evokes.*(amulet|ring) # Abyss: more += Found .* abyssal rune of Zot message_colour += yellow:gateway leading out of the Abyss # Interrupts for unexpected situations: more += The.*shudders more += Something interferes with your magic more += You feel a genetic drift more += You don't.* that spell more += You fail to use your ability more += You miscast more += You cannot teleport right now more += It doesn't seem very happy more += You are held in a net more += do not work when you're silenced more += You cannot cast spells when silenced more += The barbed spikes dig painfully into your body as you move more += The water nymph flows with the water more += You can't unwield more += You don't have enough magic more += You haven't enough magic at the moment more += You have finished your manual more += You feel your power leaking away more += You feel your power drain away more += Space warps horribly around you more += Space bends around you more += The.*grabs you[^r] more += Your attempt to break free more += You are blown backwards more += goes berserk more += You feel less protected from missiles more += Your body is wracked with pain more += surroundings become eerily quiet more += The pull of.*song draws you forwards more += Wisps of shadow swirl around more += begins to accept its allies' injuries more += Miasma billows from the more += You feel.*firmly anchored in space more += You stumble into the trap more += drinks a potion more += You stop (a|de)scending the stairs more += You cannot cast spells while unable to breathe more += You are wearing\: more += The walls and floor vibrate strangely for a moment more += The air gets thick with the scent of sulphur more += entropy weaver begins to chant more += is a mimic more += The blast of calcifying dust hits you more += Nothing appears to happen # Interrupts for Bad things: more += Your surroundings flicker more += Your icy (shield|armour) evaporates more += Your.*(shield|armour) melts away more += The writing blurs in front of your eyes more += You fall through a shaft more += You fall into a shaft more += (blundered into a|invokes the power of) Zot more += Ouch! That really hurt! more += dispelling energy hits you more += You convulse more += You feel drained more += You are (blasted|electrocuted) more += You feel uncertain more += (You are|You're) poisoned more += (You are|You're) more poisoned more += (You are|You're) lethally poisoned more += (You are|You're) confused more += (You are|You're) more confused more += (You are|You're) too confused more += (starving|devoid of blood) more += You are engulfed in mutagenic fog more += wrath finds you more += lose consciousness more += You are too injured to fight blindly more += Green shoots are pushing up through the earth more += shoots a curare more += You are knocked back by the lance of force more += You are knocked back by the blast of cold more += You are knocked back by the great wave of water more += You stumble backwards more += You are trampled more += Okawaru sends forces against you more += You are slowing down. more += You flicker for a moment. more += The.*is unaffected more += You (become entangled|are caught) in (a|the) (web|net) more += The forest starts to sway and rumble more += Vines fly forth from the trees! more += A tree reaches out and hits you! more += You are hit by a branch more += The air twists around and violently strikes you in flight more += The.*engulfs you in water more += The power of Zot is invoked against you more += The air around.*erupts in flames more += Terrible wounds (open|spread) all over you more += You are encased in ice more += You suddenly stop moving more += Your surroundings seem slightly different more += Your resistance to elements expires more += You feel a (horrible|terrible) chill more += You are burned terribly more += You are mesmerised more += The barbed spikes become lodged in your body more += mark forms upon you more += blows on a signal horn more += silver sears you more += The.*seems to speed up more += steals.*your more += infuriates you more += \'s.*reflects more += You can move again more += You slip out of the net more += You.*and break free more += staircase.*moves more += corrodes you more += calls on the powers of darkness # Interrupts for Hell effects: 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 # Interrupts for Expiring spell effects: more += You feel yourself slow down more += You are starting to lose your buoyancy 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 += time is quickly running out more += life is in your own more += is no longer charmed more += Your shroud falls apart more += Your extra speed is starting to run out more += You are firmly grounded in the material plane once more # God Gifts: more += Something appears at your feet more += Vehumet offers you knowledge of # Demonspawn / Jiyva mutations: more += You feel monstrous more += Jiyva alters your body # ~ Auto Inscriptions: # Set Alias ai := autoinscribe # Armour ai += fire dragon scale:rF++, rC- ai += gold dragon scale:rC+, rF+, rP+ ai += ice dragon scale:rC++, rF- ai += pearl dragon scale:rN+ ai += storm dragon scale:rElec ai += swamp dragon scale:rP+ ai += quicksilver dragon scale:MR+ ai += shadow dragon scale:Stlth+ ai += troll hide:regen ai += troll leather armour:regen # Rings ai += ring of fire:rF+, rC- ai += ring of flight:+Fly ai += ring of ice:rC+, rF- ai += ring of magical power:MP+9 ai += ring of poison resistance:rP+ ai += ring of positive energy:rN+ ai += ring of protection from cold:rC+ ai += ring of protection from fire:rF+ ai += ring of protection from magic:MR+ ai += ring of see invisible:sInv ai += ring of stealth:Stlth+ ai += ring of teleportation:*tele ai += ring of wizardry:wiz+ # Staves ai += staff of air:rElec ai += staff of cold:rC+ ai += staff of death:rN+ ai += staff of fire:rF+ ai += staff of poison:rP+ # Fancy damage calculations by friendly community members: < function ready() AnnounceDamage() end > < local previous_hp = 0 local previous_mp = 0 local previous_form = "" local was_berserk_last_turn = false function AnnounceDamage() local current_hp, max_hp = you.hp() local current_mp, max_mp = you.mp() --Things that increase hp/mp temporarily really mess with this local current_form = you.transform() local you_are_berserk = you.berserk() local max_hp_increased = false local max_hp_decreased = false if (current_form ~= previous_form) then if (previous_form:find("dragon") or previous_form:find("statue") or previous_form:find("tree") or previous_form:find("ice")) then max_hp_decreased = true elseif (current_form:find("dragon") or current_form:find("statue") or current_form:find("tree") or current_form:find("ice")) then max_hp_increased = true end end if (was_berserk_last_turn and not you_are_berserk) then max_hp_decreased = true elseif (you_are_berserk and not was_berserk_last_turn) then max_hp_increased = true end --crawl.mpr(string.format("previous_form is: %s", previous_form)) --crawl.mpr(string.format("current_form is: %s", current_form)) --crawl.mpr(string.format("max_hp_increased is: %s", max_hp_increased and "True" or "False")) --crawl.mpr(string.format("max_hp_decreased is: %s", max_hp_decreased and "True" or "False")) --crawl.mpr(string:format("you_are_berserk is: %s", you_are_berserk and "True" or "False")) --crawl.mpr(string:format("was_berserk_last_turn is: %s", was_berserk_last_turn and "True" or "False")) --Skips message on initializing game if previous_hp > 0 then local hp_difference = previous_hp - current_hp local mp_difference = previous_mp - current_mp if max_hp_increased or max_hp_decreased then if max_hp_increased then crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. "hp.") else crawl.mpr("You now have " .. current_hp .. "/" .. max_hp .. " hp.") end else --On losing health if (current_hp < previous_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You take " .. hp_difference .. " damage, and have " .. current_hp .. "/" .. max_hp .. " hp.") end if hp_difference > (max_hp * 0.20) then crawl.mpr("THAT REALLY HURT!") end end --On gaining more than 1 health if (current_hp > previous_hp) then --Removes the negative sign local health_inturn = (0 - hp_difference) if (health_inturn > 1) and not (current_hp == max_hp) then if current_hp <= (max_hp * 0.30) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.50) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.70) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") elseif current_hp <= (max_hp * 0.90) then crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") else crawl.mpr("You regained " .. health_inturn .. " hp, and now have " .. current_hp .. "/" .. max_hp .. " hp.") end end if (current_hp == max_hp) then crawl.mpr("Health restored: " .. current_hp .. "") end end --On gaining more than 1 magic if (current_mp > previous_mp) then --Removes the negative sign local mp_inturn = (0 - mp_difference) if (mp_inturn > 1) and not (current_mp == max_mp) then if current_mp < (max_mp * 0.25) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") elseif current_mp < (max_mp * 0.50) then crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") else crawl.mpr("You regained " .. mp_inturn .. " mp, and now have " .. current_mp .. "/" .. max_mp .. " mp.") end end if (current_mp == max_mp) then crawl.mpr("MP restored: " .. current_mp .. "") end end --On losing magic if current_mp < previous_mp then if current_mp <= (max_mp / 5) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") elseif current_mp <= (max_mp / 2) then crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") else crawl.mpr("You now have " .. current_mp .. "/" ..max_mp .." mp.") end end end end --Set previous hp/mp and form at end of turn previous_hp = current_hp previous_mp = current_mp previous_form = current_form was_berserk_last_turn = you_are_berserk end