----------------------------------------------------------------------------------------------------------------------------------------------- -- Main file containing the reflex tables and the central logic -- Changes 11/27/2007 -- Added geomancer/bard/blademaster triggers -- fixed a legion of bugs -- Features automatic -- Curing -- taking into account each different balance -- Sipping -- health, mana, bromide -- Standing -- Will stand when prone -- -- Stun detection -- Will wait for stun to pass before curing -- Writhe -- Autoparry -- Assumes you have this -- Pipe relight -- Caveats -- Bugs and more bugs -- Some afflictions not yet implemented, might not be able to catch everything -- Assumes you have focusmind -- just delete the focus mind if you dont -- Might crash :< ----------------------------------------------------------------------------------------------------------------------------------------------- target="cow" ScrollOfHealing="47169" ScrollOfProtection="scroll47943" ScrollOfCurse="111389" dagger="35099" weapon_left = "staff" weapon_right = "shield" weapon_left_description = "coral staff" weapon_right_description = "shimmering bubble shield" pipe_coltsfoot = "65347" pipe_faeleaf = "128226" pipe_myrtle = "68597" smoke_coltsfoot = "smoke "..pipe_coltsfoot; smoke_faeleaf = "smoke "..pipe_faeleaf; smoke_myrtle = "smoke "..pipe_myrtle; ----------------------------------------------------------------------------------------------------------------------------------------------- -- ----------------------------------------------------------------------------------------------------------------------------------------------- timer_writhe = 3 timer_herb = 2 timer_purgative = 2 timer_health = 4.1 timer_physical = 1 timer_stun = 1.5 timer_equi = 4 timer_spell = 4 timer_focus = 2 timer_salve = 2.5 timer_focusmind = 2 max_health = 3180 max_mana = 5580 max_bromides = 4380 thre_health = 2700 thre_mana = 4000 thre_bromide = 3700 thre_scroll = 2700 curr_health = 0 curr_mana = 0 curr_ego = 0 curr_power = 0 bal_health = 1 bal_herb = 1 bal_purgative = 1 bal_stun = 1 bal_sleep = 1 bal_writhe = 1 bal_pinleg = 1 bal_focus = 1 bal_focusmind = 1 bal_salve = 1 bal_parry = 1 bal_stance = 1 bal_equi = 1 bal_prone = 1 bal_psisub = 1 bal_psisup = 1 bal_psiid = 1 bal_psilocksub = 1 bal_psilocksup = 1 bal_psilockid = 1 bal_limb = 1 bal_all = 1 bal_pipe = 1 bal_kafe = 1 bal_scrollheal = 1 bal_rightarm = 1 bal_leftarm = 1 bal_blanknote = 1 healer_guard = 1 healer_aeonguard = 1 guard_master = 1 HealthCure ={ WoundsHead = { afflictionline= {"swings (his|her) leg high into the air at your head", "into your head with a loud crack", "kicks you in the head", "strikes across your face", "You are smited in the eye", "burning agony shoots up your head as it snaps", "strikes your head", "slams it bluntly into your head with both hands", "poked in the chin", "You are struck in the forehead", "punches you in the head", "Your head is struck with crushing force", "You are pierced in the side of your face, leaving a bleeding wound", "dislocating your head with a loud snap", "You are cuffed lightly in the side of your face", "You are dealt only a glancing blow to the side of your head", "You are (hacked|cut) in the cheek", "You are hacked in the forehead and blink away blood", "unleashes a violent assault at your head", "hacks your neck", "smashes your head", "slices across your head", "slams your head into (his|her) raised knee", "strikes into the side of your head", "You are painfully pounded in the face", "You are (struck|crushed) squarely in the nose", "Your nose is savagely (smited|hit)", "Head: (medium|heavy|critical|light|slight|trifling|negligible)", }, deaffliction = {"The deep damage in your head (partially|completely) heals","Head: no wounds"}, cure = "apply health to head", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsChest = { afflictionline= { "kicks you in the chest", "strikes your chest", "strikes into your chest", "strike to your chest", "strikes (powerfully|deep) into your chest", "Your chest is brutally", "chest as (\\w++) strikes", "(bashed|struck) in the chest ", "You are cut in the chest", "sliced across the chest", "strikes into your midriff and slices through", "bumps your chest to little effect", "You are stabbed in the side of your chest", "punches you in the chest", "into your chest with a loud crack", "You grimace in pain as your ribs", "The blade slides between your ribs", "slices through your chest", "dislocating your chest with a loud snap", "You stagger back from the force of being smited in the chest", "are (hacked|sliced|thumped|smited|bashed) in the chest", "The blade bounces off your sternum", "You receive a bloody gash from the hack to your chest", "receive a bloody gash from the hack to your chest", "Chest: (medium|heavy|critical|light|slight|trifling|negligible)", }, deaffliction = {"The deep damage in your chest (partially|completely) heals","Chest: no wounds"}, cure = "apply health to chest", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsGut = { afflictionline= { "kicks you in the gut", "strikes your gut", "punches you in the gut", "dislocating your gut with a loud snap", "You are pricked in the gut", "You are (sliced|hacked|cut) in the belly", "nasty belly wound from the thrust of the blade", "You are tapped in the stomach", "blade through your gut", "strikes into your gut", "You are cut in the belly", "getting smited in the gut", "vibrations up your gut", "hacks deep into your gut", "hacks open your gut", "struck in the gut", "A long, bleeding rend is slashed into your belly", "into your gut with a loud crack", "bumps your gut to little effect", "You are tapped in the stomach", "Your gut is (struck|smited|crushed) with great", "Gut: (medium|heavy|critical|light|slight|trifling|negligible)", }, deaffliction = {"The deep damage in your gut (partially|completely) heals","Gut: no wounds"}, cure = "apply health to gut", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsArmLeft = { afflictionline= {"The strike to your left arm barely (cuts|slices)", "You are merely clipped on your left arm", "kicks you in the left arm", "strikes your left arm", "strike at your left arm", "sliced in the left arm", "into your left arm with a loud crack", "strikes deep into your left shoulder", "punches you in the left arm", "You are hit on the left arm", "Your left arm is bashed", "Larm: (medium|heavy|critical|light|slight|trifling|negligible)", }, deaffliction = {"The deep damage in your left arm (partially|completely) heals","Larm: no wounds"}, cure = "apply health to arms", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsArmRight = { afflictionline= {"The strike to your right arm barely (cuts|slices)", "You are merely clipped on your right arm", "kicks you in the right arm", "strikes deep into your right shoulder", "strikes your right arm", "strike at your right arm", "sliced in the right arm", "into your right arm with a loud crack", "punches you in the right arm", "You are hit on the right arm", "Your right arm is bashed", "Rarm: (medium|heavy|critical|light|slight|trifling|negligible)", }, deaffliction = {"The deep damage in your right arm (partially|completely) heals","Rarm: no wounds"}, cure = "apply health to arms", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsLegLeft = { afflictionline= {"are feebly struck in your left leg", "The hack to your left leg", "kicks you in the left leg", "strikes your left leg", "punches you in the left leg", "slashed in the left thigh", "Your left leg is elegantly (struck|crushed)", "The strike to your left leg", "are hit on the left thigh", "receive only a red welt from your left leg", "cut to your left leg", "into your left leg with a loud crack", "slices through your left leg", "your left thigh leaves a gaping hole", "strikes deep into your left foot", "Lleg: (medium|heavy|critical|light|slight|trifling|negligible)" }, deaffliction = {"The deep damage in your left leg (partially|completely) heals","Lleg: no wounds"}, cure = "apply health to legs", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, WoundsLegRight = { afflictionline= {"are feebly struck in your right leg", "hack to your right leg", "kicks you in the right leg", "strikes your right leg", "slashed in the right thigh", "The strike to your right leg", "punches you in the right leg", "are hit on the right thigh", "into your right leg with a loud crack", "Your right leg is elegantly (struck|crushed)", "receive only a red welt from your right leg", "cut to your right leg", "slices through your right leg", "your right thigh leaves a gaping hole", "strikes deep into your right foot", "Rleg: (medium|heavy|critical|light|slight|trifling|negligible)" }, deaffliction = {"The deep damage in your right leg (partially|completely) heals","Rleg: no wounds"}, cure = "apply health to legs", inserter = "HealthTrigger", remover = "UnHealthTrigger", }, } HerbCure = { AchromaticAura = { afflictionline= {"You blanch as the high-pitched screech settles", "^afflicted with an achromatic aura" }, deaffliction = {"The screeching fades away from your inner hearing",}, cure = {"outr horehound","eat horehound",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Addiction = { afflictionline ={"You feel a terrible thirst for elixirs grow within you", "Glowing yellow bursts of light flash across your vision", "^addicted to elixirs" }, deaffliction = {"Your terrible addiction to lovely elixirs seems to wane",}, cure = {"outr galingale","eat galingale",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Agoraphobia = { afflictionline = {"Terror descends upon you and your head swims - you must find shelter!", "^agoraphobic" }, deaffliction = {"You can handle the idea of open spaces again",}, cure = {"outr wormwood","eat wormwood",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Anorexia = { afflictionline = {"The idea of putting something in your stomach sickens you", "The idea of eating or drinking is repulsive to you", "^anorexic" }, deaffliction = {"Food is no longer repulsive to you",}, cure = {smoke_coltsfoot,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Attraction = { afflictionline = {"The music invokes a strange longing for (\\w+)", "You find you cannot bear to part from (\\w+)", "^attracted to (\\w+)" }, deaffliction = {"none",}, cure = {"outr earwort","eat earwort",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Blindness = { afflictionline = { "You blink for a moment, then instantly, all about you is darkness", "You are blind", "Colors fade and everything becomes dark and black", "which turns purple and swells shut", "You find you must cover your eyes", "spilling stinging blood into your eyes", "blood into your eyes", "A sheet of blood rolls down your forehead and into your eyes", "Vision returns, though you no longer see the world through the sixth sense" }, deaffliction = {"Blessed sight returns to you",}, cure = {"outr faeleaf","eat faeleaf",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", } , BrokenNose = { afflictionline = {"suffering a broken nose", "and breaks, causing blood to splurt forth", }, deaffliction = {"With a loud crack, your broken nose straightens and heals",}, cure = {"outr arnica","apply arnica to head",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, BrokenChest = { afflictionline = {"your ribs are struck viciously", "applies precise pressure and burning agony shoots up your chest", "^suffering from a broken chest", }, deaffliction = {"You can breathe easier as your ribs snap into place",}, cure = {"outr arnica","apply arnica to chest",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, BurstVessels = { afflictionline = {"A sharp pain erupts in your chest, and your neck throbs", "A sharp pain erupts in your chest, and blood trickles out of your eye", "suffering (\\w+) burst blood vessels", }, deaffliction = {"none",}, cure = {"outr sparkleberry","eat sparkleberry",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Claws = { afflictionline = { "weaves a fierce phantasm and sets it upon you", "You scream out in pain as a phantom rakes your skin with its sharp claws", }, deaffliction = {"none",}, cure = {"outr chervil", "eat chervil", }, inserter = "HerbTrigger", remover = "none", }, Claustrophobia = { afflictionline = {"Shadows creep up all around you and close in", "The walls close in to suffocate you - you must escape!", "^claustrophobic\\.", }, deaffliction = {"Small spaces no longer frighten you",}, cure = {"outr wormwood","eat wormwood",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Clumsiness = { afflictionline = {"You gasp as your fine-tuned reflexes disappear into a haze of confusion", "You lash out clumsily", "Abstract green blotches spin around you, causing you to stumble", "^afflicted with clumsiness", }, deaffliction = {"Thank Estarra! Your clumsiness has been cured",}, cure = {"outr kombu","eat kombu",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Confusion = { afflictionline = {"Shadows flicker before you, forming strange and weird shapes", "You are too confused to concentrate properly", "causing you to stumble as everything becomes cloudy and the world spins", "Bright red bubbles float by as your mind drifts from confusion", "eoh rune at you, hitting you in the chest", "slings (a|an) eoh rune and", "The ghostly outline of (a|an) eoh rune briefly appears in front of you", "(A|An) eoh rune and", "eoh rune whizzes in from the (\\w+) and hits you in the chest", "^confused\\." }, deaffliction = {"The confusion lifts from your mind and it is clear once again",}, cure = {"outr pennyroyal", "eat pennyroyal", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Concussion = { afflictionline = {"The massive trauma to your head", "You plummet head first into the ground with a sickening crunch", "cracking painfully against your skull", "your mind becomes so addled that you can only blink blankly", "^has a serious concussion", }, deaffliction = {"As your concussion lifts, your thinking becomes clearer",}, cure = {"outr myrtle","eat myrtle",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CrushedFootLeft = { afflictionline = {"^limping on a crushed left foot", "swiftly stomps on your left leg, causing you to wince", }, deaffliction = {"Your step becomes more confident as the bones in your left foot mend",}, cure = {"outr arnica", "apply arnica to legs", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CrushedFootRight = { afflictionline = { "swiftly stomps on your right leg, causing you to wince", "^limping on a crushed right foot", }, deaffliction = {"Your step becomes more confident as the bones in your right foot mend",}, cure = {"outr arnica","apply arnica to legs",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CrushedThroat = { afflictionline = {"crushing your windpipe\\.", "You try to speak, but your crushed windpipe inhibits your abilities", "Your crushed windpipe inhibits your ability to swallow", "With a swift drive, (\\w+) jabs your head", "^muted by a crushed windpipe." }, deaffliction = {"The cartilage and nerves in your windpipe heal and your voice returns",}, cure = {"outr arnica","apply arnica to head",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CutArteriesArmLeft = { afflictionline = {"your left arm, (mangling|striking) a major artery", "^suffering from a severed artery in the left arm", "^suffering from a lacerated left arm", }, deaffliction = {"The flow of blood recedes as your left arm",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CutArteriesArmRight = { afflictionline = {"right arm, (mangling|striking) a major artery", "^suffering from a severed artery in the right arm", "^suffering from a lacerated right arm", }, deaffliction = {"The flow of blood recedes as your right arm",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CutArteriesLegLeft = { afflictionline = {"left leg, (mangling|striking) a major artery", "^suffering from a severed artery in the left leg", "^suffering from a lacerated left leg", }, deaffliction = {"The flow of blood recedes as your left leg",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, CutArteriesLegRight = { afflictionline = {"right leg, (mangling|striking) a major artery", "^suffering from a severed artery in the right leg", "^suffering from a lacerated right leg", }, deaffliction = {"The flow of blood recedes as your right leg",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Daydreaming = { afflictionline = {"Your attention slips away from the material world as you ponder on the wonders of the Planes", "You stop for a moment to think about how great it would be if you were a god", "You pause momentarily as you try to imagine what true peace would be like", "You briefly imagine yourself taking over Bob's trading business", "Your mind wanders momentarily as you imagine how it would be to channel", "A vision of yourself leaving the Basin and finding life beyond its borders", "^plagued by childish daydreams" }, deaffliction = {"Your mind quickly focuses on the real world, shrugging off childish daydreams",}, cure = {"outr kafe", "eat kafe", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Deadening = { afflictionline = { "^of a deadened mind", }, deaffliction = {"You are no longer deadened",}, cure = {"outr kombu", "eat kombu", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", } , Dementia = { afflictionline = { "You look about yourself, frenzied and wild-eyed", "lagu rune at you, hitting you in the chest", "slings (a|an) lagu rune and", "The ghostly outline of (a|an) lagu rune briefly appears in front of you", "(A|An) lagu rune and", "lagu rune whizzes in from the (\\w+) and hits you in the chest", "bright yellow flashes", "^demented\\." }, deaffliction = {"Sanity returns to you and you are no longer demented",}, cure = {"outr pennyroyal", "eat pennyroyal", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, DislocationArmleft = { afflictionline = { "your left arm with a loud snap", "^suffering from a dislocated left arm", }, deaffliction = {"Pain flares in your left shoulder as your joints re-seat themselves",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, DislocationArmRight = { afflictionline = { "your right arm with a loud snap", "^suffering from a dislocated right arm", }, deaffliction = {"Pain flares in your right shoulder as your joints re-seat themselves",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, DislocationLegleft = { afflictionline = { "your left leg with a loud snap", "^suffering from a dislocated left leg", }, deaffliction = {"Pain flares in your left hip as your joints re-seat themselves",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, DislocationLegRight = { afflictionline = { "your right leg with a loud snap", "^suffering from a dislocated right leg", }, deaffliction = {"Pain flares in your right hip as your joints re-seat themselves",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Dizziness = { afflictionline = { "Vivid blue spirals spin wildly around you, and suddenly you are seeing double", "Your head spins as a sudden fit of dizziness overwhelms you", "Your mind swims as dizziness overtakes you", "The ground seems to tilt and you fall with a thump", "overcome by dizziness", "making you somewhat dizzy", "lustrous violet swirls" }, deaffliction = {"You are no longer dizzy",}, cure = {"outr kombu", "eat kombu", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, EgoVice = { afflictionline = { "As the whispers enter your mind, a sinking feeling drops into the pit of your stomach", "You hear strange whispers, and a sharp pain stabs you between the eyes", "^cursed by ego vice\\." }, deaffliction = {"The oppressive whispering in your mind dies out",}, cure = {"outr horehound", "eat horehound", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Epilepsy = { afflictionline = { "Your limbs begin to jerk and shake uncontrollably, and you begin to foam at the mouth", "Blinding violet lights flash maddeningly in front of your eyes", "emerald green iridescence", "Your nerves feel suddenly jangled", "^suffering from epilepsy" }, deaffliction = {"Your nerves suddenly calm down",}, cure = {"outr kombu", "eat kombu", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, FractureArmLeft = { afflictionline = { "^suffering from a fractured left arm", "left arm, which becomes limp and falls to your side" }, deaffliction = {"The fracture in the bones of your arm knit together",}, cure = {"outr arnica","apply arnica to arms",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, GashedCheek = { afflictionline = { "twitching in the face due to a gash", "Your gashed cheek violently spasms, causing your entire body to jerk reflexively", "leaving it dangling precariously and oozing blood"}, deaffliction = {"The twitching in your face settles down",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Generosity = { afflictionline = { "^extremely generous\\." }, deaffliction = {"Ahhhh. The freedom to be stingy again!",}, cure = {"outr galingale", "eat galingale", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Gluttony = { afflictionline = { "ur rune at you, hitting you in the chest", "slings (a|an) ur rune and", "The ghostly outline of (a|an) ur rune briefly appears in front of you", "(A|An) ur rune and", "ur rune whizzes in from the (\\w+) and hits you in the chest", "You are feeling a bit peckish right now", "^gluttonous\\." }, deaffliction = {"Your gluttonous desires subside",}, cure = {"outr galingale", "eat galingale", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Hallucinations = { afflictionline = { "Shadowy shapes rise up around you and form into familiar shapes", "Melting orange clocks seep across the ground as contorted animals march past", "Spiders are erupting from your mouth and nose", "You are stunned by the sight of a massive pink bunny hopping by", -- "The light of Holy Celestia surrounds you as blessed Japhiel judges the unworthy", "peorth rune at you, hitting you in the chest", "slings (a|an) peorth rune and", "The ghostly outline of (a|an) peorth rune briefly appears in front of you", "(A|An) peorth rune and", "peorth rune whizzes in from the (\\w+) and hits you in the chest", "hallucinating" }, deaffliction = {"Your hallucinations cease to plague you",}, cure = {"outr pennyroyal", "eat pennyroyal", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, HypnoticPattern = { afflictionline = { "weaves the light into a shifting net of bewitching lights that dance around you in hypnotic patterns", "Glowing lights swirl around you in a slow, graceful dance of hypnotic patterns, disrupting your concentration", }, deaffliction = {"The hypnotic lights that dance around you in beguiling patterns suddenly dissipate",}, cure = {"outr fealeaf", "eat fealeaf", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, HemiplegyLeft = { afflictionline = { "paralysed on the left side", "precisely into your left arm, causing spasms to numb your stiffening side", "causes your entire left side to go numb", }, deaffliction = {"Your left side tingles as feeling returns",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, HemiplegyRight = { afflictionline = { "^paralysed on the right side", "precisely into your right arm, causing spasms to numb your stiffening side", "causes your entire right side to go numb"}, deaffliction = {"Your right side tingles as feeling returns",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, HemiplegyLower = { afflictionline = { "paralyzed on the lower body", "precisely into your (left|right) leg, causing spasms to numb your stiffening muscles", }, deaffliction = {"Your lower body tingles as feeling returns",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Hemophilia = { afflictionline = { "You suddenly feel lightheaded", "Wounds open up all over your body and you start to bleed", "Your blood refuses to clot", "^afflicted by haemophilia", }, deaffliction = {"Your blood regains its ability to clot",}, cure = {"outr yarrow","eat yarrow",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Hypochondria = { afflictionline = { -- "The light of Holy Celestia surrounds you as blessed Shakiniel judges the unworthy", "ansuz rune at you, hitting you in the chest", "slings (a|an) ansuz rune and", "Unreasoning rage turns the world blood-red", "The ghostly outline of (a|an) ansuz rune briefly appears in front of you", "(A|An) ansuz rune and", "ansuz rune whizzes in from the (\\w+) and hits you in the chest", "^a certified hypochondriac", }, deaffliction = {"My, you feel healthier than you have in years",}, cure = {"outr wormwood","eat wormwood",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Impatience = { afflictionline = { "You are too impatient to focus on anything", "You shuffle your feet noisily, suddenly bored", "ger rune at you, hitting you in the chest", "slings (a|an) ger rune and", "The ghostly outline of (a|an) ger rune briefly appears in front of you", "(A|An) ger rune and", "ger rune whizzes in from the (\\w+) and hits you in the chest", "^impatient\\.", }, deaffliction = {"You are patient once again",}, cure = {smoke_coltsfoot, }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Justice = { afflictionline = { "tiwaz rune at you, hitting you in the chest", "slings (a|an) tiwaz rune and", "The ghostly outline of (a|an) tiwaz rune briefly appears in front of you", "(A|An) tiwaz rune and", "tiwaz rune whizzes in from the (\\w+) and hits you in the chest", "Justice is dealt out and your attack rebounds onto you", "flings a tarot card at you, which expands into an image of Juliana", "^surrounded by the aura of justice", }, deaffliction = {"The curse of justice leaves you",}, cure = {"outr reishi","eat reishi",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Lethargy = { afflictionline = { "isa rune at you, hitting you in the chest", "slings (a|an) isa rune and", "The ghostly outline of (a|an) isa rune briefly appears in front of you", "(A|An) isa rune and", "isa rune whizzes in from the (\\w+) and hits you in the chest", "feeling rather lethargic", }, deaffliction = {"The lethargy evaporates, leaving you full of energy",}, cure = {"outr yarrow","eat yarrow",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Loneliness = { afflictionline = { "You realise that you have been left alone", "wynn rune at you, hitting you in the chest", "slings (a|an) wynn rune and", "The ghostly outline of (a|an) wynn rune briefly appears in front of you", "(A|An) wynn rune and", "wynn rune whizzes in from the (\\w+) and hits you in the chest", "^very lonely", }, deaffliction = {"The awful loneliness leaves you",}, cure = {smoke_coltsfoot, }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, LoversEffect = { afflictionline = { "(\\w+) throws a Lovers tarot at you and as it strikes true", "ing rune at you, hitting you in the chest", "slings (a|an) ing rune and", "The ghostly outline of (a|an) ing rune briefly appears in front of you", "(A|An) ing rune and", "ing rune whizzes in from the (\\w+) and hits you in the chest", "you fall hopelessly in love with (him/her)", "Desperately in love with (\\w+)", "You love (\\w+) far too much to even THINK of hurting (him/her)", }, deaffliction = {"You shake your head, wondering what you ever saw in",}, cure = {"outr galingale","eat galingale", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, MangledToungue = { afflictionline = { "muted by a mangled tongue", "shredding your tongue", }, deaffliction = {"You feel your mouth return to normalcy as your tongue heals",}, cure = {"outr marjoram","eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Manabarbs = { afflictionline = { "Your head begins throbbing to the beat of the ominous noise", "^cursed by manabarbs\\.", "You hear an ominous sound, and a dull pain stab throbs throughout your head", }, deaffliction = {"An ominous noise lifts from within your mind",}, cure = {"outr horehound","eat horehound", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Masochism = { afflictionline = { "feoh rune at you, hitting you in the chest", "slings (a|an) feoh rune and", "The ghostly outline of (a|an) feoh rune briefly appears in front of you", "(A|An) feoh rune and", "feoh rune whizzes in from the (\\w+) and hits you in the chest", "^masochistic\\." , "With the heel of your palm, you smack yourself upside the head", "You use your right foot to stomp on your left as hard as possible", "You smile with pleasure as you ram your fist into your jaw", }, deaffliction = {"You no longer enjoy pain",}, cure = {smoke_coltsfoot, }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Narcolepsy = { afflictionline = { "narcoleptic", "You feel just as tired as before", }, deaffliction = {"You shrug off your narcoleptic tendencies",}, cure = {"outr kafe", "eat kafe", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Omniphobia = { afflictionline = { "^afraid of the world", }, deaffliction = {"Your amplified fears start to settle down",}, cure = {"outr kombu", "eat kombu", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Paranoia = { afflictionline = { "Shadowy voices whisper dark warnings in your ear", "Unthinking paranoia overcomes you", "^paranoid\\.", }, deaffliction = {"No one is out to get you after all",}, cure = {"outr pennyroyal", "eat pennyroyal", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Peace = { afflictionline = { "pacified\\.", "Your heart is filled with divine love, violence is abhorrent to you", -- "The light of Holy Celestia surrounds you as blessed Raziela judges the unworthy", "Your will to harm anything leaves you", "eohl rune at you, hitting you in the chest", "slings (a|an) eohl rune and", "The ghostly outline of (a|an) eohl rune briefly appears in front of you", "(A|An) eohl rune and", "You are feeling far too passive to do that", "feeling unnaturally tranquil", "A soft pink glow flows out", "You are feeling far too tranquil to attempt such a violent act", "eohl rune whizzes in from the (\\w+) and hits you in the chest", }, deaffliction = {"The unnatural feeling of peace leaves you","You are capable of offensive acts once more",}, cure = {"outr reishi", "eat reishi", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", -- }, PiercedArmLeft = { afflictionline = { "suffering from a pierced left arm", "strikes deeply into your left arm, which hits a nerve", }, deaffliction = {"The hole impaling your left arm muscles closes",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, PiercedArmRight = { afflictionline = { "suffering from a pierced right arm", "strikes deeply into your right arm, which hits a nerve", }, deaffliction = {"The hole impaling your right arm muscles closes",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, PiercedLegLeft = { afflictionline = { "suffering from a pierced left leg", "left leg, and blood fountains out", }, deaffliction = {"The hole impaling your left leg muscles closes",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, PiercedLegRight = { afflictionline = { "suffering from a pierced right leg", "right leg, and blood fountains out", }, deaffliction = {"The hole impaling your right leg muscles closes",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Powerspike = { afflictionline = { "The jarring sound causes a cold pain to stab you in the forehead", "You hear a dark thrumming, and pain wracks your entire being", "^cursed by power spikes\\.", }, deaffliction = {"The dark thrumming presence around you dissipates",}, cure = {"outr horehound","eat horehound",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, PuncturedAura = { afflictionline = { "(\\w+) slams (his|her) hand into the air in front of you, and you suddenly feel lightheaded and weak", "^punctured in the etheric substance of your aura", }, deaffliction = {"You no longer feel lightheaded and weak",}, cure = {"outr reishi","eat reishi",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, PuncturedChest = { afflictionline = { "Gasping for air, you faint from sudden exhaustion", "you grit your teeth as the blade twists violently", "^suffering from a punctured chest", }, deaffliction = {"Your strength returns as your punctured chest mends",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Relapse = { afflictionline = { "^afflicted by thin blood", "You swoon as you suffer a toxic relapse", }, deaffliction = {"You feel your blood thickening",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Recklessness = { afflictionline = { "eh rune at you, hitting you in the chest", "slings (a|an) eh rune and", "The ghostly outline of (a|an) eh rune briefly appears in front of you", "(A|An) eh rune and", "eh rune whizzes in from the (\\w+) and hits you in the chest", "incandescent blue striations", "You realize that your heroic actions can no longer continue unnoticed", "None may stand in your way! You are invincible!", "^reckless\\." }, deaffliction = {"Prudence rules your psyche once again",}, cure = {"outr horehound", "eat horehound", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Rigormortis = { afflictionline = { "^turning stiff like a corpse", "Your (left|right) (leg|arm) suddenly stiffens and loses all feeling sensation, rendering it useless", }, deaffliction = {"Your muscles relax as the rigormortis subsides",}, cure = {"outr marjoram", "eat marjoram",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, -- Scarab = { -- afflictionline = { "A sharp pain starts in your stomach and slowly crawls up your throat", -- "Some insect has crawled up your throat and into your mouth. You gag and spit out a sickly green beetle", -- "Something is blocking your throat, making it impossible to swallow", -- }, -- deaffliction = "Your muscles relax as the rigormortis subsides", -- cure = "eat marjoram", -- } ScrambledBrain = { afflictionline = { "^has a scrambled brain\\.", "Your vision spins and everything suddenly becomes hazy as your head throbs", }, deaffliction = {"Your thoughts coalesce into better focus",}, cure = {"outr pennyroyal","eat pennyroyal",}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Sensitivity = { afflictionline = { "A prickly, stinging sensation spreads through your body", -- "The light of Holy Celestia surrounds you as blessed Methrenton judges the unworthy", "^sensitive to pain" }, deaffliction = {"The stinging feeling fades",}, cure = {"outr myrtle", "eat myrtle", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SeveredEarLeft = { afflictionline = { "^missing the left ear", "(strikes|hacks) off your left ear", "Blood flows into your left side inner ear, inhibiting your sense of balance", }, deaffliction = {"Your hearing sharpens as your left ear regenerates",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SeveredEarRight = { afflictionline = { "missing the right ear", "(strikes|hacks) off your right ear", "Blood flows into your right side inner ear, inhibiting your sense of balance", }, deaffliction = {"Your hearing sharpens as your right ear regenerates",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SeveredNerve = { afflictionline = { "having difficulty breathing due to a severed phrenic nerve", "as your lungs wheeze to breathe", }, deaffliction = {"Your breath returns to you",}, cure = {smoke_myrtle,}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Shyness = { afflictionline = { "Heart thumping, you cannot bear the company of others and depart in terror", "beorc rune at you, hitting you in the chest", "slings (a|an) beorc rune and", "The ghostly outline of (a|an) beorc rune briefly appears in front of you", "(A|An) beorc rune and", "beorc rune whizzes in from the (\\w+) and hits you in the chest", "You look about yourself nervously", "afflicted by unbearable shyness", "A blush begins to creep up your neck and into your" }, deaffliction = {"Your shyness has been cured. You can now face the world boldly",}, cure = {smoke_coltsfoot, }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, -- Sickening = 0, SlicedForehead = { afflictionline = { "suffering from a sliced open forehead", "hacks your forehead, causing blood to flow", "your forehead still has some remaining wounds", }, deaffliction = {"The flow of blood recedes as your forehead cuts mend",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SlicedGut = { afflictionline = { "which opens up and pours blood in a pool at your feet", "suffering from a sliced open gut", "blood suddenly splutters from your gut", }, deaffliction = {"The flow of blood recedes as your gut mends",}, cure = {"outr yarrow", "eat yarrow", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SlicedChest = { afflictionline = { "^suffering a chest that has been opened up", "blood suddenly splutter from your chest", "laying open a flap of skin which bleeds profusely", "Copious amounts of blood suddenly splutter from your (chest|gut) onto the ground", }, deaffliction = {"The gaping wound in your chest closes up",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SlicedLeftThigh = { afflictionline = { "left thigh, cutting almost to the bone", "inflicted with a sliced left thigh", "Red rivulets of blood flow down your left leg", }, deaffliction = {"Your strength surges as your left thigh mends",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SlicedRightThigh = { afflictionline = { "right thigh, cutting almost to the bone", "inflicted with a sliced right thigh", "Red rivulets of blood flow down your right leg", }, deaffliction = {"Your strength surges as your right thigh mends",}, cure = {"outr marjoram", "eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Slickness = { afflictionline = { "^extremely oily", "You notice that your sweat glands have begun to", "The salve slides off your oily skin", "you begin to sweat profusely", }, deaffliction = {"Your glands cease their oily secretion",}, cure = {"outr calamus", "eat calamus", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, SnappedRibs = { afflictionline = { "pained by a snapped rib", "you feel a rib snap like a twig", }, deaffliction = {"You breathe easier as the pain in your ribs subsides",}, cure = {"outr arnica", "Apply Arnica to Chest", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Succumb = { afflictionline = { "succumbing to Mother Night", "The shadows weigh on your thoughts, draining your mental energies", "sending a shiver up your spine" }, deaffliction = {"The shadows on your mind fade",}, cure = {"outr reishi","eat reishi", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Stupidity = { afflictionline = { "You yell, \"I like cheese!\"", "The voices! The voices! Get them out of my head!", "You flap your arms madly", "Ooh look! A lovely lake\\. Perhaps you'll dive in!", "You sweep your trained eye across the room for the hidden exits", "You drop to one knee, demonstrating your humility and respect", "You let out a massive belch into the air", "You fondle yourself absently", "You flip the bird", "You sweep your trained eye across the room for the hidden exit", "You yell, \"Person smells like a goat!\"", "Hmmmm\. Why must everything be so difficult to figure out\?", "cen rune at you, hitting you in the chest", "slings (a|an) cen rune and", "The ghostly outline of (a|an) cen rune briefly appears in front of you", "(A|An) cen rune and", "cen rune whizzes in from the (\\w+) and hits you in the chest", "You wouldn't want to drink a salve. It would not be tasty at all", "You dive underwater and hold your breath for as long as you can but see nowhere to go", "vibrant orange hues", "^unnaturally stupid\\.", }, deaffliction = {"You aren't such a complete idiot anymore",}, cure = {"outr pennyroyal","eat pennyroyal", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Vapors = { afflictionline = { "^stricken by the vapors\\.", "You are overcome by it all and topple over in a dead faint", }, deaffliction = {"You shake your head and clear it of vapors",}, cure = {"outr kombu","eat kombu", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Vestiphobia = { afflictionline = { "^afraid of clothing\\.", "You begin to panic as the thought of wearing clothing strangles you", "rip it off of your body", "Shadows seep into your clothing, crawling like dark maggots." }, deaffliction = {"You no longer fear wearing clothes",}, cure = {"outr wormwood","eat wormwood", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Vertigo = { afflictionline = { "^afraid of heights\\.", "You are gripped with fear - you cannot leave the ground", }, deaffliction = {"Your fear of heights subsides",}, cure = {"outr myrtle","eat myrtle", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Weakness = { afflictionline = { "You try to raise the strength in your limbs, but find yourself too weary", "Your limbs grow heavy and you groan feebly", "haegl rune at you, hitting you in the chest", "slings (a|an) haegl rune and", "The ghostly outline of (a|an) haegl rune briefly appears in front of you", "(A|An) haegl rune and", "haegl rune whizzes in from the (\\w+) and hits you in the chest", "wearied in body", }, deaffliction = {"Your limbs strengthen and you feel stronger",}, cure = {"outr marjoram","eat marjoram", }, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, ------------------------------------------------------------------------------------------------ -- Angel and demon afflictions. These are just approximations of what they can give us. -- But since this will trigger the focusmind, it will heal the afflictions most of the time ------------------------------------------------------------------------------------------------ Elohora= { afflictionline = { "A celestial archangel's eyes shoot forth beams of holy light that strike you and cause your very being to quake", "Holding a holy symbol of the light before (him|her), (\\w++) makes the Sign of Elohora at you", }, deaffliction = {"none"}, cure = {"outr horehound","eat horehound",}, inserter = "HerbTrigger", remover = "", }, Shakiniel= { afflictionline = { "A celestial archangel flings a cobalt blue disc at you, which envelops you in a field of crackling energy", "Holding a holy symbol of the light before (him|her), (\\w++) makes the Sign of Shakiniel at you", }, deaffliction = {"none"}, cure = {"outr pennyroyal","eat pennyroyal",}, inserter = "HerbTrigger", remover = "", }, Methrenton= { afflictionline = { "Bellowing a thunderous war cry, a celestial archangel smites you with a ball of holy flame", "Holding a holy symbol of the light before (him|her), (\\w++) makes the Sign of Methrenton at you", }, deaffliction = {"none"}, cure = {"outr pennyroyal","eat pennyroyal",}, inserter = "HerbTrigger", remover = "", }, Japhiel= { afflictionline = { "Bowing her head and crossing her arms, a celestial archangel sends a bolt of topaz light at you, which sinks deep into your skull and sets your mind reeling", "Holding a holy symbol of the light before (him|her), (\\w++) makes the Sign of Japhiel at you", }, deaffliction = {"none"}, cure = {"outr pennyroyal","eat pennyroyal",}, inserter = "HerbTrigger", remover = "", }, Luciphage= { afflictionline = { "A hideous archdemon forms a ball of darkness in his palm, then hurls it at you, striking you full in the chest. Shadowy tendrils burst forth and slither over your skin", "Holding a damning symbol of domination before (him|her), (\\w++) makes the Sign of Luciphage at you", }, deaffliction = {"none"}, cure = {"outr horehound","eat horehound",}, inserter = "HerbTrigger", remover = "", }, Baalphegar= { afflictionline = { "A hideous archdemon grabs your shoulders and gutturally whispers into your mind. Though the language is harsh and unknown, the words twist in your brain over and over", "Holding a damning symbol of domination before (him|her), (\\w++) makes the Sign of Baalphegar at you", }, deaffliction = {"none"}, cure = {"outr pennyroyal","eat pennyroyal",}, inserter = "HerbTrigger", remover = "", }, Nifilhema= { afflictionline = { "With a cold smile, a hideous archdemon digs his claws into your flesh, sending a bolt of excruciating pain through your body", "Holding a damning symbol of domination before (him|her), (\\w++) makes the Sign of Nifilhema at you", }, deaffliction = {"none"}, cure = {smoke_myrtle, }, inserter = "HerbTrigger", remover = "", }, Ashtorath= { afflictionline = { "Clenching his fists, a hideous archdemon screams in rage at you, and a ball of fire erupts at your feet, briefly enveloping you", "Holding a damning symbol of domination before (him|her), (\\w++) makes the Sign of Ashtorath at you", }, deaffliction = {"none"}, cure = {smoke_coltsfoot}, inserter = "HerbTrigger", remover = "", }, Gorgulu= { afflictionline = { "A hideous archdemon vomits forth a stream of noxious fluid that strikes you, coating you with a thick green slime", "Holding a damning symbol of domination before (him|her), (\\w++) makes the Sign of Gorgulu at you", }, deaffliction = {"none"}, cure = {smoke_coltsfoot, "insomnia"}, inserter = "HerbTrigger", remover = "", }, Telepathy = { afflictionline = { "A sudden headache makes you rub your temples for relief", }, deaffliction = {"none"}, cure = {"outr pennyroyal", "eat pennyroyal"}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, Dreamweaver = { afflictionline = { "A sudden shiver shoots up your spine, making you involuntarily jerk as a creeping sensation crawls over your skin", }, deaffliction = {"none"}, cure = {"outr pennyroyal", "eat pennyroyal", "insomnia"}, inserter = "HerbTrigger", remover = "UnHerbTrigger", }, } WritheCure = { Pinleg = { afflictionline = { "The sharp pain in your foot from the weapon pinning it", "pinning it tightly", "can think of nothing but freeing your impaled foot", "Your health continues to drain away as your impaled body shudders on the end of the weapon", "you are impaled viciously on the blade", "You are impaled and must writhe off before you may do that", "can think of nothing but freeing your impaled foot", "You are impaled, which makes movement impossible", }, deaffliction = {"With an heroic effort you manage to writhe yourself free from that which impaled you", "and withdraws it from your body in a shower of blood", "withdraws (his|her) weapon from your body",}, cure = {"writhe"}, inserter = "WritheTrigger", remover = "UnWritheTrigger", }, Writhe = { afflictionline = { "hurls a tarot card with the image of the Hanged Man on it at you", "clamped on the (left|right) arm by a hound's jaws", "grabs at your leg with its jaws, tearing the flesh away", "leaps up and clamps its powerful jaws around it", "The mutt hanging off your arm keeps you from moving", "There is a mangy mutt hanging off your", "viciously shakes your (left|right) arm, tearing your flesh and causing massive bleeding", "Vicious spikes slam into your flesh and nail you to the cross", "You jerk as the iron cross pulls your limbs, resulting in a sickening crunch of bones", "You bleed like a stuck pig upon the iron cross", "entangling you with a thorny embrace", "Vines from the looming trees drape about your form", "As you stumble through the briars, you become entangled", "You are too tangled up to do that", "Shadow tendrils wrap around your limbs", "Tight bindings cling to you, making that impossible", "which covers and binds you\\.", "entangling you in their grasp\\.", "grappled by (\\w+)", "You are shackled and cannot do that", "Sticky strands of webbing spray out", "You must writhe to escape", "spearing the twin blades into your ribs and brutally hooking them", "hooking it in your ribs", "You are bound and cannot move", "locks your (head|chest|gut) in a solid grapple", "locks your (left|right) (leg|arm) in a solid grapple", "locking it up", "Your crucified state makes that impossible", "Stepping behind you, (\\w+) locks your head", "Shadow tendrils wrap around your limbs", "firmly holds you in place with an iron-strong grip", "deep into your gut, which spills forth blood", "You gasp helplessly for breath as (\\w+) continues to viciously choke you", "You lose consciousness as (\\w+) continues to choke you", "A dazzling orange afterimage burns into your sight", "You are transfixed and cannot move", "You twist and turn as you struggle to break free of the ropes that bind you", "bound and tied\\.", "leaps at you, biting down into your flesh and gnawing on you painfully", "A viciously thorned vine spears out from a nearby branch and lashes tightly around your right leg", "The thorny vines wrapped around you viciously whipsaw back and forth", "(left|right) leg lashed in thorny vines", "You scream in agony as thorny vines suddenly sprout out of your skin", "and wrap you in a bloody embrace", "^entangled\\.", }, deaffliction = {"You begin to writhe helplessly, throwing your body off balance", "You carefully writhe out", "You have writhed free", "Your (right|left) leg is sliced to shreds as the thorny vines are ripped away", "All the thorny vines that cover you wither away", }, cure = {"writhe", }, inserter = "WritheTrigger", remover = "UnWritheTrigger", }, } FocusBodyCure = { Paralysis = { afflictionline = { "A prickly stinging overcomes your body, fading away into numbness", "paralysed\\.", "scarlet red light", "Your state of paralysis prevents you from doing that", "Snaking vines of dark indigo creep across your skin, holding you tight", -- "The light of Holy Celestia surrounds you as blessed Elohora judges the unworthy", "Your bleeding wounds sting painfully, causing your limbs to stiffen up", "gyfu rune at you, hitting you in the chest", "Frustratingly, your body won't respond to your call to action", "slings (a|an) gyfu rune and", "The ghostly outline of (a|an) gyfu rune briefly appears in front of you", "(A|An) gyfu rune and", "gyfu rune whizzes in from the (\\w+) and hits you in the chest", "You cough as something gets lodged deep in your throat", "Your throat has been locked, and thus you cannot swallow", "suffering a locked throat", "suffering locked leg muscles", "You are paralysed and unable to do that", "You are paralysed and cannot do that", "Your body suddenly starts to feel numb", "You attempt to move, but the muscles of your legs are locked", }, deaffliction = {"Your muscles unlock; you are no longer paralysed", "You focus your mind on your motor skills but find you are already mobile", "You feel the muscles in your throat opening up again", "You feel the muscles in your legs unlocking", }, cure = {"focus body", }, inserter = "FocusTrigger", remover = "UnFocusTrigger", }, } PhysicalCure = { Fear = { afflictionline = { "nyd rune at you, hitting you in the chest", "slings (a|an) nyd rune and", "The ghostly outline of (a|an) nyd rune briefly appears in front of you", "(A|An) nyd rune and", "nyd rune whizzes in from the (\\w+) and hits you in the chest", "You hear a voice hiss in your ears, sending chills down your spine", "You rush about in a state of utter panic", "A sudden primal fear grips your heart", "caws like a crow, giving you the primal urge to flee in terror", "Clearly, he is going to tear you limb from limb", "a hideous monstrosity rises up from the ground and looms over you", "afflicted by fear" }, deaffliction = {"There is nothing to fear but fear itself",}, cure = "compose", inserter = "PhysicalTrigger", remover = "UnPhysicalTrigger", }, Disrupted = { afflictionline = { "stomps at you and snorts loudly in your face", "raises an arm, pointing in your direction and suddenly thousands of voices bombard you", }, deaffliction = {"You begin intense concentration to restore your equilibrium", "You already possess equilibrium"}, cure = "concentrate", inserter = "PhysicalTrigger", remover = "UnPhysicalTrigger", }, Insomnia = { afflictionline = { "Your insomnia has cleared up\\.", "You feel yourself calm down as the effects of kafe wear off", "and soon you find your eyelids growing heavy", "You quickly pull yourself out of sleep", "You open your eyes and yawn mightily", "You can hardly contemplate sleeping",}, deaffliction = {"You clench your fists, grit your teeth, and banish all possibility of sleep", "You are already an insomniac"}, cure = "insomnia", inserter = "PhysicalTrigger", remover = "UnPhysicalTrigger", }, Bleeding = { afflictionline = { "You bleed (\\w++) health", }, deaffliction = {"You do not bleed, my friend", "Alas, you do not possess the mental reserves to clot your wounds"}, cure = "clot", inserter = "PhysicalTrigger", remover = "UnPhysicalTrigger", }, } -- Things can can only be cured by doing something that requires balance is here SpellCure = { Sap = { afflictionline = { "covered in viscous sap", "covered in ectoplasm", "The smoke envelops you, leaving behind a thick coat of sticky slime", "The sticky sap coating your body causes you to move unbearably slowly", "With a grim smile, (\\w+) touches the trees and sap courses out (\\w+)" }, deaffliction = {"You snap your fingers and warm water showers down upon yourself",}, cure = {"cast cleanse me",}, inserter = "SpellTrigger", remover = "UnSpellTrigger", }, Diag = { afflictionline = { "You must have two legs to do that", "Both of your legs are crippled and thus you cannot carry out that action", "Both your arms must be free and functioning to do that", "Your (left|right) hand must be free", "As both your arms are dysfunctional, you cannot do that", }, deaffliction = {"none",}, cure = {"diag",}, inserter = "SpellTrigger", remover = "UnSpellTrigger", }, Reject = { afflictionline = { "Your heart thumps as you gaze at (\\w++) with love and adoration", }, deaffliction = {"none",}, cure = {"enemy target"}, inserter = "SpellTrigger", remover = "UnSpellTrigger", }, Pit = { afflictionline = { "The ground suddenly falls away from beneath you and you go tumbling into a pit", "You are stuck in a pit and must CLIMB UP to get out before you can move", }, deaffliction = {"none",}, cure = {"cimb up"}, inserter = "SpellTrigger", remover = "UnSpellTrigger", }, } SalveCure = { AmputateLeftArm = { afflictionline = {"without a left arm", "Your left arm is completely (sliced|struck) through", }, deaffliction = {"A new left arm grows where the old one was",}, cure = {"apply regeneration to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, AmputateRightArm = { afflictionline = {"without a right arm", "Your right arm is completely (sliced|struck) through", }, deaffliction = {"A new right arm grows where the old one was",}, cure = {"apply regeneration to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, AmputateLeftLeg = { afflictionline = {"without a left leg", "Your left leg is completely (sliced|struck) through", }, deaffliction = {"A new left leg grows where the old one was",}, cure = {"apply regeneration to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, AmputateRightLeg = { afflictionline = {"without a right leg", "Your right leg is completely (sliced|struck) through", }, deaffliction = {"A new right leg grows where the old one was",}, cure = {"apply regeneration to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, Asthma = { afflictionline = {"afflicted by horrible asthma", "Your lungs are much too constricted to smoke", "You are breathing lightly", "You feel a tightening sensation grow in your lungs", "Your throat begins to scratch, forcing you to cough", "the vibrations constricting your lungs" }, -- from the Gahti'sho attack. sneaky little monks.. deaffliction = {"Your bronchial tubes open up and your asthma is cured",}, cure = {"apply melancholic to chest", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, BlackLung = { afflictionline = {"You cough uncontrollably, as you hack up some black phlegm", "You attempt to inhale, but only end up coughing out more black phlegm", "coughing up dreadful black phlegm", }, deaffliction = {"You breathe easier as your lungs clear up of the dreadful black phlegm",}, cure = {"apply melancholic to chest", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, BrokenJaw = { afflictionline = {"suffering from a broken jaw", "You suffer acute pain as you chew", "You cry out in pain as your jaw is (struck|crushed) and shatters", "shattering your jaw" }, deaffliction = {"Your jaw clicks into place as the bones there heal",}, cure = {"apply mending to head", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, BurstOrgan = { afflictionline = {"You are mortally wounded when struck in the gut", "suffering from massive organ failure", }, deaffliction = {"The pain in your gut subsides as health returns to your internal organs",}, cure = {"apply regeneration to gut",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CollapsedLung = { afflictionline = {"suffering from collapsed lungs", "Experiencing a shortness of breath, you suddenly black out", }, deaffliction = {"Your ability to breathe greatly improves as your collapsed lung fills with air once again",}, cure = {"apply regeneration to chest",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrackedKneeLeft = { afflictionline = {"inflicted with a cracked left kneecap", "You are unable to maintain a stance for any period of time while your kneecaps are cracked", "smashes your left leg with", "Your left kneecap is struck", }, deaffliction = {"Dexterity returns to your legs as your cracked left kneecap heals",}, cure = {"apply regeneration to legs"}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrackedKneeRight = { afflictionline = {"inflicted with a cracked right kneecap", "smashes your right leg with", }, deaffliction = {"Dexterity returns to your legs as your cracked right kneecap heals",}, cure = {"apply regeneration to legs"}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrackedElbowLeft = { afflictionline = {"inflicted with a cracked left elbow", "You are struck in the left elbow, cutting deep into the bone", }, deaffliction = {"Dexterity returns to your arms as your cracked left elbow heals",}, cure = {"apply regeneration to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrackedElbowRight = { afflictionline = {"inflicted with a cracked right elbow", "You are struck in the right elbow, cutting deep into the bone", }, deaffliction = {"Dexterity returns to your arms as your cracked right elbow heals",}, cure = {"apply regeneration to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrippledArmLeft = { afflictionline = {"Your left arm is sliced and breaks with a loud crack", "afflicted by a crippled left arm", "You watch, in horror, as your left arm shrivels up and becomes useless", "Your left arm is struck and breaks with a loud crack", "The bones of your left wrist breaks as it is bashed", "suffering a broken left wrist", "Your left arm shatters under the force of the blow", "The bones in your left arm suddenly snap", "burning agony shoots up your left arm", "Your left arm breaks with a loud crack" }, deaffliction = {"The bones in your left arm mend", }, cure = {"apply mending to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrippledArmRight = { afflictionline = {"Your right arm is sliced and breaks with a loud crack", "afflicted by a crippled right arm", "You watch, in horror, as your right arm shrivels up and becomes useless", "Your right arm is struck and breaks with a loud crack", "The bones of your right wrist breaks as it is bashed", "suffering a broken right wrist", "Your right arm shatters under the force of the blow", "The bones in your right arm suddenly snap", "burning agony shoots up your right arm", "Your right arm breaks with a loud crack" }, deaffliction = {"The bones in your right arm mend", }, cure = {"apply mending to arms",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrippledLegLeft = { afflictionline = {"Your left thigh bone is (struck|crushed) and shatters under the force of the blow", "You stumble as your left leg shrivels into a useless appendage", "Your left leg shatters under the force of the blow", "The bones in your left leg suddenly snap", "afflicted by a crippled left leg", "burning agony shoots up your left leg", "You stumble as your left leg shrivels into a useless appendage\\." }, deaffliction = {"The bones in your left leg mend",}, cure = {"apply mending to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrippledLegRight = { afflictionline = {"Your right thigh bone is (struck|crushed) and shatters under the force of the blow", "You stumble as your (right leg shrivels into a useless appendage", "Your right leg shatters under the force of the blow", "The bones in your right leg suddenly snap", "afflicted by a crippled right leg", "burning agony shoots up your right leg", "You stumble as your right leg shrivels into a useless appendage\\." }, deaffliction = {"The bones in your right leg mend",}, cure = {"apply mending to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, ChestPain = { afflictionline = { "You gasp and clutch your chest", }, deaffliction = {"The pain in your chest clears as your heart resumes its normal rhythm",}, cure = {"apply regeneration to chest",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, CrushedChest = { afflictionline = {"suffering a crushed chest", "are crushed viciously", "ribs are bashed viciously", "(sliced|smited) and your ribs snap", }, deaffliction = {"Your chest expands as your entire ribcage heals and cracks into place",}, cure = {"apply regeneration to chest",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, SlitThroat = { afflictionline = {"suffering from a slit throat.", "You try to speak, but the hole in your throat", "your neck, and blood fountains out", "The hole in your throat prevents you from swallowing", }, deaffliction = {"You breathe a sigh of relief as blood stops gushing from your throat.",}, cure = {"apply mending to head",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, Disembowel = { afflictionline = {"disemboweled", "coils of bloody intestines spill out in a grotesque mass", }, deaffliction = {"The pain in your gut subsides as your innards regenerate",}, cure = {"apply regeneration to gut",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, FracturedSkull = { afflictionline = { "your skull is (smited|pulped) hard and fractures", "suffering from a fractured skull", }, deaffliction = {"Your double vision subsides as the breaks",}, cure = {"apply mending to head",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, Itch = { afflictionline = { "infected with scabies mites\\.", "A sudden itch drives you half-mad, and you scratch it furiously", "An uncomfortable itch tickles you in an embarassing location" }, deaffliction = {"Oh, thank the gods! The infernal itching has subsided at long last",}, cure = {"apply liniment", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, MangledLeftArm = { afflictionline = { "has a mangled left arm", "Your left arm is smited with an awesome blow and pulverized into a bloody stump", }, deaffliction = {"Your left arm is greatly healed, but still damaged",}, cure = {"apply regeneration to arms", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, MangledRightArm = { afflictionline = { "has a mangled right arm", "Your right arm is smited with an awesome blow and pulverized into a bloody stump", }, deaffliction = {"Your right arm is greatly healed, but still damaged",}, cure = {"apply regeneration to arms", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, MangledLeftLeg = { afflictionline = { "has a mangled left leg", "Your left leg is smited with an awesome blow and pulverized into a bloody stump", }, deaffliction = {"Your left leg is greatly healed, but still damaged",}, cure = {"apply regeneration to arms", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, MangledRightLeg = { afflictionline = { "has a mangled right leg", "Your right leg is smited with an awesome blow and pulverized into a bloody stump", }, deaffliction = {"Your right leg is greatly healed, but still damaged",}, cure = {"apply regeneration to arms", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, PuncturedLung = { afflictionline = {"suffering from a punctured lung", "blood foams up from your mouth", }, deaffliction = {"You breathe easier as your punctured lung mends",}, cure = {"apply melancholic to chest",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, Pox = { afflictionline = { "Ugly sores break open upon your skin, seeping with a bloody yellow mucous", "suffering from a pox", }, deaffliction = {"The sores on your skin dry up and disappear",}, cure = {"apply liniment", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, RupturedStomach = { afflictionline = {"suffering from a ruptured stomach", "rupturing your stomach", }, deaffliction = {"The pains in your stomach subside",}, cure = {"apply regeneration to gut", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, ShatteredJaw = { afflictionline = {"suffering from a shattered jaw", "your jaw, which shatters loudly in a bloody explosion", }, deaffliction = {"Your jaw partially realigns into place as the bones there partially heal",}, cure = {"apply regeneration to head", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, SlicedTendonLegLeft = { afflictionline = { "suffering from a sliced tendon in the left leg", "strikes the tendon above your left heel," }, deaffliction = {"The tendon in your left leg reattaches itself",}, cure = {"apply regeneration to legs", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, SlicedTendonLegRight = { afflictionline = { "suffering from a sliced tendon in the right leg", "strikes the tendon above your right heel," }, deaffliction = {"The tendon in your right leg reattaches itself",}, cure = {"apply regeneration to legs", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, ShatteredAnkleLeft = { afflictionline = { "limping with a shattered left ankle", "left leg and shatters your ankle", }, deaffliction = {"The bones in your left ankle mend",}, cure = {"apply regeneration to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, ShatteredAnkleRight = { afflictionline = { "limping with a shattered right ankle", "right leg and shatters your ankle", }, deaffliction = {"The bones in your right ankle mend",}, cure = {"apply regeneration to legs",}, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, ShortBreathe = { afflictionline = { "You draw breath in short, rasping gasps from the pain in your chest", "very short of breath" }, deaffliction = {"You take a deep gasp and regain better control of your lungs",}, cure = {"apply melancholic to chest", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, SeveredSpine = { afflictionline = { "immobile due to a severed spine", "you feel your spine shatter with a sickening crunch", }, deaffliction = {"Miraculously, your spinal system regenerates",}, cure = {"apply regeneration to gut", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, SunAllergy = { afflictionline = { "allergic to sunlight", "Your vision is flooded with light, and your face suddenly reddens", "Sunlight shines down upon you mercilessly, rippling across your skin like fire", }, deaffliction = {"No longer will the sunlight harm you", "You feel your allergy to the sun going into temporary remission",}, cure = {"apply liniment", }, inserter = "SalveTrigger", remover = "UnSalveTrigger", }, } PurgativeCure = { Aeon = { afflictionline = {"Suddenly your movements through the time stream are slowed", "afflicted with the curse of the Aeon", "stands an Aeon tarot on (his|her) palm and blows it at you", "With a slow, jerking dance, (\\w++) points at you and lowers (his|her) arms", "You move sluggishly into action", "Your speed defence is destroyed", "you feel the world about you slow", }, deaffliction = { "You return to the normal timestream", }, cure = {"drink phlegmatic",}, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Burning = { afflictionline = {"A burl cracks open next to you, covering you in burning sap", "ablaze", "Flames lick around you - you are on fire!", }, deaffliction = {"Steam rises from your skin as the fires that plague you are extinguished",}, cure = {"drink frost", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Crotamine = { afflictionline = {"dying from crotamine", "Blood begins to slowly drip from your nose", "You begin feeling slightly flushed", "You cough suddenly, expelling black fluid", }, deaffliction = {"The potion burns through your veins",}, cure = {"drink antidote",}, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Dysentery = { afflictionline = {"Your bowels turn to water and are voided", "suffering from a bad bout of dysentery", "bloody intestine partially erupts with a foul stench", }, deaffliction = {"Your bowels calm themselves",}, cure = {"drink choleric",}, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, FurrowedBrow = { afflictionline = { "leaves a long furrow that weeps blood onto your face", "A sheet of blood rolls down your forehead and into your eyes", "bleeding through a furrowed brow",}, deaffliction = {"The bleeding in your brow subsides",}, cure = {"drink sanguine",}, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Frozen = { afflictionline = { "blasts you with cold, frigid air", "The cold of the snow seeps into your bones", "frosty skin chills you", "A biting cold seeps deep into your", "A coldness seeps deep into the marrow of your bones", "The cold of the snow seeps into your bones", "You have a particularly intense shiver", "The cold of the grave seeps into your bones, causing you to shudder", "A biting cold seeps deep into your bones from the frigid water, making your teeth chatter", "Though still shivering, you are no longer frozen solid", "You feel the strength ebb from your body as the cold takes its toll", "shivering\\." }, deaffliction = {"A feeling of comfortable warmth spreads over you",}, cure = {"drink fire",}, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Hypersomnia = { afflictionline = { "The dreamy notes of the song fill you with a rich warmth", "Your hypersomnia prevents your insomnia", "hypersomnic\\.", }, deaffliction = {"You feel a bit more alert and awake",}, cure = {"drink choleric", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, --Heartpierce = { -- afflictionline = { "nicking your heart ", -- }, -- deaffliction = "", -- cure = "apply regeneration to chest", -- inserter = "PurgativeTrigger", -- remover = "UnPurgativeTrigger", --}, Healthleech = { afflictionline = { "You watch helplessly as your lifeforce drains into", "An uncomfortable squirming within your chest grips you", "cursed with the healthleech\\.", }, deaffliction = {"Your aching, pain-wracked body is soothed and calmed",}, cure = {"drink sanguine", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Repugnance = { afflictionline = { "has an aura of repugnance", "You feel ugliness radiating from you", "manna rune at you, hitting you in the chest", "slings (a|an) manna rune and", "The ghostly outline of (a|an) manna rune briefly appears in front of you", "(A|An) manna rune and", "manna rune whizzes in from the (\\w+) and hits you in the chest", "curses you with the visage of a rotting corpse" }, deaffliction = {"You no longer will inspire disloyalty among friends",}, cure = {"drink love", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Powersink = { afflictionline = { "sigil rune at you, hitting you in the chest", "slings (a|an) sigil rune and", "The ghostly outline of (a|an) sigil rune briefly appears in front of you", "(A|An) sigil rune and", "sigil rune whizzes in from the (\\w+) and hits you in the chest", "A bout of sudden mental weakness makes you falter and stumble", "afflicted with a mental powersink", }, deaffliction = {"The mental weakness you suffer subsides",}, cure = {"drink phlegmatic", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Scalped = { afflictionline = { "scalped\\.", "cleanly hacks off your scalp", }, deaffliction = {"Your scalp grows back",}, cure = {"drink sanguine", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, StomachWorms = { afflictionline = { "Your belly gurgles and rumbles", "infected with stomach worms", }, deaffliction = {"Your stomach rumbles and you cough up dead worms",}, cure = {"drink choleric", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, Vomit = { afflictionline = { "You cannot contain the convulsions in your stomach any longer", "blood begins to foam at your mouth", "A sense of extreme nausea washes over you", "You lurch forward and vomit out a puddle of blood", "violently ill", "vomiting blood", }, deaffliction = {"Your stomach becalms itself", "The stomach cramps lift and your gorge settles"}, cure = {"drink choleric", }, inserter = "PurgativeTrigger", remover = "UnPurgativeTrigger", }, } ------------------------------------------------------------------------------------------- -- Special Attacks that requires special handlings ------------------------------------------------------------------------------------------- NoCureTable = { Blanknote = { afflictionline = {"Your ears open up, though you lose your true hearing", "and you cry out as your deaf ears open up", }, deaffliction = {"The ache in your ear canals clears up",}, cure = "none", inserter = "BlankNoteTrigger", remover = "UnBlankNoteTrigger", }, Chasms = { afflictionline = {"(\\w++) finger trembles and he bares (his|her) teeth in a hideous grimace. A small crack appears in the ground beneath you!", }, deaffliction = {"none",}, cure = "none", inserter = "NoCureTrigger", remover = "UnNoCureTrigger", }, Judgement = { afflictionline = {"(\\w++) chants and a column of topaz light appears before (him|her). (He|She) points at you and the column of light obediently moves to envelop you, a voice whispering in your mind that you will be judged.", }, deaffliction = {"none",}, cure = "none", inserter = "NoCureTrigger", remover = "UnNoCureTrigger", }, Omen = { afflictionline = { "under an ill omen", "pronounces that you are under an ill omen, and a sense of imminent foreboding descends upon you" }, deaffliction = {"The sense of impending doom lifts",}, cure = "none", inserter = "NoCureTrigger", remover = "UnNoCureTrigger", }, Hyperactive = { afflictionline = { "closes (his|her) eyes and inhales deeply, opening them again as (his|her) muscles tense",}, deaffliction = {"none",}, cure = "none", inserter = "NoCureTrigger", remover = "none", }, --Tester = { -- afflictionline = { "You eat a wormwood stem",}, -- deaffliction = {"none",}, -- cure = "none", -- inserter = "NoCureTrigger", -- remover = "none", --}, } function BlankNoteTrigger (thename, theoutput, wildcards, line) Note ("**** BLANK NOTE NOTHING TO DO BUT WAIT ****") end function UnBlankNoteTrigger (thename, theoutput, wildcards, line) -- Try to eat earwort -- bal_blanknote = 2 Note ("**** BLANKNOTE HAS PASSED, WILL EAT EARWORTH NOW ****") end function NoCureTrigger (thename, theoutput, wildcards, line) Note ("Its the: ".. thename.." Move or Die!!! Move or Die!!! Move or Die!!!") Note ("Its the: ".. thename.." Move or Die!!! Move or Die!!! Move or Die!!!") Note ("Its the: ".. thename.." Move or Die!!! Move or Die!!! Move or Die!!!") Note ("Its the: ".. thename.." Move or Die!!! Move or Die!!! Move or Die!!!") --require "tprint" --Note ("Trigger " .. thename .. " fired.") --Note ("Matching line was: " .. theoutput) --Note ("Wildcards ...") --tprint (wildcards) --Note ("Line with style runs ...") --tprint (line) end function UnNoCureTrigger (thename, theoutput, wildcards, line) Note (thename.." has lifted.. Woot!!") end function BlackoutTrigger (thename, theoutput, wildcards, line) --Send ("drink allheale") end function FocusingBodyTrigger (thename, theoutput, wildcards, line) bal_focus = 0 Note ("FocusingBodyTrigger") -- Will create timer once we are assured we are really focusing TimerCreate ("WatchFocus", timer_focus) end function FocusingMindTrigger (thename, theoutput, wildcards, line) bal_focusmind = 0 -- Will create timer once we are assured we are really focusing TimerCreate ("WatchFocusMind", timer_focus) end function UnFocusingMindTrigger (thename, theoutput, wildcards, line) bal_focusmind = 1 if IsTimer("WatchFocusMind") == 0 then EnableTimer ("WatchFocusMind", false) end end ------------------------------------------------------------------------------------------- -- Balance Tables ------------------------------------------------------------------------------------------- BalanceTable = { Blackout = { afflictionline = { "Your senses return to you as the blackout ends", }, deaffliction = {"none",}, cure = "none", inserter = "BlackoutTrigger", remover = "none", }, FocusingBody = { afflictionline = {"You begin focusing your mind on your motor skills", }, deaffliction = {"none",}, cure = "none", inserter = "FocusingBodyTrigger", remover = "none", }, FocusingMind = { afflictionline = {"You focus your mind intently on curing your mental maladies.", }, deaffliction = {"Your mind is able to focus once again",}, cure = "none", inserter = "FocusingMindTrigger", remover = "UnFocusingMindTrigger", }, HealthBalance = { afflictionline = { "none", }, deaffliction = {"You may drink another health, mana, or bromide potion",}, inserter = "none", remover = "HealthBalance", }, HerbBalance = { afflictionline = { "none", }, deaffliction = {"You may eat or smoke another herb",}, inserter = "none", remover = "HerbBalance", }, PurgativeBalance = { afflictionline = { "none", }, deaffliction = {"You may drink another purgative or curing potion"}, inserter = "none", remover = "PurgativeBalance", }, PsiBalance = { afflictionline = { "none", }, deaffliction = {"You feel the (Substratus|Id|Superstratus) channel open again", "You feel the (Substratus|Id|Superstratus) channel has been fully locked",}, inserter = "none", remover = "PsiBalance", }, PipeBalance = { afflictionline = { "Your pipe has gone cold and dark", }, deaffliction = {"You carefully light your treasured pipe until it is smoking nicely", "What is it you wish to light", "That pipe is already lit and burning nicely"}, inserter = "PipeBalance", remover = "UnPipeBalance", }, SalveBalance = { afflictionline = { "none", }, deaffliction = {"You may apply another salve to yourself"}, inserter = "none", remover = "SalveBalance", }, ScrollBalance = { afflictionline = {"You read a Scroll of Healing", }, deaffliction = {"You may be healed by a scroll again."}, inserter = "ScrollBalance", remover = "UnScrollBalance", }, Stun = { afflictionline = { "You are too stunned to be able to do anything", "You are stunned", }, deaffliction = {"You are no longer stunned",}, cure = "none", inserter = "StunTrigger", remover = "UnStunTrigger", }, Sleeper = { afflictionline = { "You feel incredibly tired", "You are asleep and can do nothing", }, deaffliction = {"You open your eyes","You are jerked awake by the pain", "You already are awake" }, cure = "wake", inserter = "SleepTrigger", remover = "UnSleepTrigger", }, Prompt = { afflictionline = { "(\\d++)h, (\\d++)m, (\\d++)e, (\\d++)p (\\w++)", }, deaffliction = {"none",}, cure = "none", inserter = "PromptTrigger", remover = "none", }, WeaponLeft = { afflictionline = {"You cease to wield a "..weapon_left_description, "You cease wielding a "..weapon_left_description, }, deaffliction = {"You begin to wield a "..weapon_left_description, "You are already wielding a "..weapon_left_description, }, cure = "wield "..weapon_left, inserter = "WeaponTrigger", remover = "UnWeaponTrigger", }, WeaponRight = { afflictionline = {"You cease to wield a "..weapon_right_description, "You cease wielding a "..weapon_right_description, }, deaffliction = {"You begin to wield a "..weapon_right_description, "You are already wielding a "..weapon_right_description, }, cure = "wield "..weapon_right, inserter = "WeaponTrigger", remover = "UnWeaponTrigger", }, } ------------------------------------------------------------------------------------------- -- Just things we make notes of ------------------------------------------------------------------------------------------- NotesTable = { Notes = { afflictionline = { "You have recovered balance on all limbs", "You have recovered equilibrium", "You are no longer stunned", "You weave a glamour of wounding and send it at (\\w++)", "You create an illusory phantom and send it into the mind of (\\w++)", "You weave a fierce phantasm and set it upon (\\w++), where it begins to hungrily rake (his|her) skin with its claws", }, deaffliction = {"none",}, cure = "none", inserter = "NotesTrigger", remover = "none", }, } function NotesTrigger (thename, theoutput, wildcards, line) Note ("***** ".. theoutput.." *****") end ------------------------------------------------------------------------------------------- -- The prompt trigger ------------------------------------------------------------------------------------------- function PromptTrigger (thename, theoutput, wildcards, line) curr_health = wildcards[1] curr_mana = wildcards[2] curr_ego = wildcards[3] curr_power = wildcards[4] curr_balance = wildcards[5] if curr_health == 0 then -- im dead, nothing to heal -- EnableTimer("WatchStun", false) EnableTimer("WatchWrithe", false) EnableTimer("WatchHerb", false) EnableTimer("WatchPurgative", false) EnableTimer("WatchSalve", false) EnableTimer("WatchHealth", false) EnableTimer("WatchSpell", false) EnableTimer("WatchFocus", false) EnableTimer("WatchFocusMind", false) -- Reset all -- bal_health = 1 bal_herb = 1 bal_purgative = 1 bal_stun = 1 bal_sleep = 1 bal_writhe = 1 bal_pinleg = 1 bal_focus = 1 bal_focusmind = 1 bal_salve = 1 bal_parry = 1 bal_stance = 1 bal_equi = 1 bal_prone = 1 bal_psisub = 1 bal_psisup = 1 bal_psiid = 1 bal_psilocksub = 1 bal_psilocksup = 1 bal_psilockid = 1 bal_limb = 1 bal_all = 1 bal_pipe = 1 bal_kafe = 1 bal_scrollheal = 1 bal_rightarm = 1 bal_leftarm = 1 bal_blanknote = 1 -- stop all activities -- guard_master = 0 return end if guard_master == 0 then -- turn off -- return end -- Check for equilibrium -- if string.find(curr_balance, "e") == nil then bal_equi=0 else bal_equi=1 end -- Check for psibalance -- if string.find(curr_balance, "s") == nil and bal_psilockid == 1 then bal_psisub=0 else bal_psisub=1 end if string.find(curr_balance, "S") == nil and bal_psilocksup == 1 then bal_psisup=0 else bal_psisup=1 end if string.find(curr_balance, "i") == nil and bal_psilockid == 1 then bal_psiid=0 else bal_psiid=1 end -- Check for limb balance -- if string.find(curr_balance, "x") == nil then bal_limb=0 else bal_limb=1 end -- Check for kafe -- if string.find(curr_balance, "k") == nil then bal_kafe=0 else bal_kafe=1 end -- Check for prone state -- if string.find(curr_balance, "p") == nil then bal_prone=1 else if bal_prone==1 then -- Stand check to flesh out stun, paralysis, and other afflictions bal_prone=2 else bal_prone=0 end end if bal_equi==1 and bal_limb==1 and bal_psisub==1 and bal_psisup==1 and bal_psiid==1 then bal_all=1 else bal_all=0 end --------------------------------------------------------------------------- -- Detect if its an affliction made by hyphochondria --------------------------------------------------------------------------- isHypo = isHypochondria () if isHypo ~= "" then if herb_table [isHypo] ~= nil then herb_table [isHypo] = nil end if purgative_table [isHypo] ~= nil then purgative_table [isHypo] = nil end if salve_table [isHypo] ~= nil then salve_table [isHypo] = nil end herb_table["Hypochondria"] = 1 Note ("Hypo"..isHypo) end --------------------------------------------------------------------------- -- do the healers and stuff --------------------------------------------------------------------------- Healer () end ------------------------------------------------------------------------------------------- -- Triggers for things that absolutely prevents us from doing anything ------------------------------------------------------------------------------------------- function StunTrigger (thename, theoutput, wildcards, line) bal_stun=0 Note ("StunTrigger .."..bal_stun) if IsTimer("WatchStun") == 0 then EnableTimer ("WatchStun") ResetTimer("WatchStun") else AddTimer("WatchStun", 0, 0, timer_stun, "", timer_flag.Enabled, "WatchStun") end end function UnStunTrigger (thename, theoutput, wildcards, line) bal_stun=1 Note ("StunTrigger .."..bal_stun) if IsTimer("WatchStun") == 0 then EnableTimer ("WatchStun", false) end end function ScrollBalance (thename, theoutput, wildcards, line) bal_scrollheal=0 end function UnScrollBalance (thename, theoutput, wildcards, line) bal_scrollheal=1 end function SleepTrigger (thename, theoutput, wildcards, line) if bal_sleep == 0 then return end bal_sleep=2 end function UnSleepTrigger (thename, theoutput, wildcards, line) bal_sleep=1 end function WeaponTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) if names == "WeaponLeft" then bal_leftarm = 2 end if names == "WeaponRight" then bal_rightarm = 2 end end function UnWeaponTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) if names == "WeaponLeft" then bal_leftarm = 1 end if names == "WeaponRight" then bal_rightarm = 1 end end ------------------------------------------------------------------------------------------- -- Balance Triggers ------------------------------------------------------------------------------------------- function PipeBalance (thename, theoutput, wildcards, line) bal_pipe=0 end function UnPipeBalance (thename, theoutput, wildcards, line) bal_pipe=1 end function PsiBalance (thename, theoutput, wildcards, line) -- Locking -- if string.find(theoutput, "locked") ~= nil then Note (wildcards[1]) if wildcards[1] == "Id" then bal_psilockid = 0; end if wildcards[1] == "Superstratus" then bal_psilocksup = 0; end if wildcards[1] == "Substratus" then bal_psilocksub = 0; end end -- Opening -- if string.find(theoutput, "open") ~= nil then if wildcards[1] == "Id" then bal_psilockid = 1; end if wildcards[1] == "Superstratus" then bal_psilocksup = 1; end if wildcards[1] == "Substratus" then bal_psilocksub = 1; end ------------------------------------------------------ -- Memo to myself as i always forget ------------------------------------------------------ --if bal_psiid==1 and bal_psisub==1 and bal_psisup==1 then -- Note ("***** FULL PSIONIC COMBO NOW!!! *****") --elseif bal_psiid==1 and bal_psisub==1 then -- Note ("***** TRIP+BURST NOW!!! *****") --else -- --end end Note ("***** "..theoutput.." *****") end function HealthBalance (thename, theoutput, wildcards, line) bal_health=1 if IsTimer("WatchHealth") == 0 then EnableTimer("WatchHealth", false) end end function HerbBalance (thename, theoutput, wildcards, line) bal_herb=1 if IsTimer("WatchHerb") == 0 then EnableTimer("WatchHerb", false) end end function PurgativeBalance (thename, theoutput, wildcards, line) bal_purgative=1 if IsTimer("WatchPurgative") == 0 then EnableTimer("WatchPurgative", false) end end function SalveBalance (thename, theoutput, wildcards, line) bal_salve=1 if IsTimer("WatchSalve") == 0 then EnableTimer("WatchSalve", false) end end ------------------------------------------------------------------------------------------- -- Focus Trigger ------------------------------------------------------------------------------------------- function FocusTrigger (thename, theoutput, wildcards, line) -------------------------------------------- -- Already focusing, no need to focus again -------------------------------------------- if bal_focus == 0 then Note ("FocusTrigger 0") return end Note ("FocusTrigger 2") bal_focus=2 end function UnFocusTrigger (thename, theoutput, wildcards, line) bal_focus=1 if IsTimer("WatchFocus") == 0 then EnableTimer ("WatchFocus", false) end end ------------------------------------------------------------------------------------------- -- Writhe Triggers ------------------------------------------------------------------------------------------- function WritheTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) if names == "Pinleg" then bal_pinleg=2 end ------------------------------------------------------ -- Already writhing, no need to writhe again ------------------------------------------------------ if bal_writhe == 0 then return end bal_writhe = 2 end function UnWritheTrigger (thename, theoutput, wildcards, line) bal_writhe = 1 bal_pinleg = 1 Note ("UnWritheTrigger") if IsTimer("WatchWrithe") == 0 then EnableTimer ("WatchWrithe", false) end end ------------------------------------------------------------------------------------------- -- Spell Triggers ------------------------------------------------------------------------------------------- spell_table = {} function SpellTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) spell_table[names] = 1 end function UnSpellTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) spell_table[names] = nil end ------------------------------------------------------------------------------------------- -- Physical Triggers ------------------------------------------------------------------------------------------- physical_table = {} function PhysicalTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) physical_table[names] = 1 end function UnPhysicalTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) physical_table[names] = nil end ------------------------------------------------------------------------------------------- -- Salve Triggers ------------------------------------------------------------------------------------------- salve_table = {} function SalveTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) --Note (names) salve_table[names] = 1 end function UnSalveTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) salve_table[names] = nil end ------------------------------------------------------------------------------------------- -- Purgative Triggers ------------------------------------------------------------------------------------------- purgative_table = {} function PurgativeTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) purgative_table[names] = 1 end function UnPurgativeTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) purgative_table[names] = nil end ------------------------------------------------------------------------------------------- -- health_table -- This table will track the number of hits a given body part is recieving ------------------------------------------------------------------------------------------- health_table = {WoundsHead=0,WoundsGut=0,WoundsChest=0,WoundsArmLeft=0,WoundsArmRight=0,WoundsLegLeft=0,WoundsLegRight=0} function HealthTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) weight = 1 if wildcards[1] ~= nil then if string.find (wildcards[1], "critical") ~= nil then weight = 7 elseif string.find (wildcards[1], "heavy") ~= nil then weight = 6 elseif string.find (wildcards[1], "medium") ~= nil then weight = 5 elseif string.find (wildcards[1], "light") ~= nil then weight = 4 elseif string.find (wildcards[1], "slight") ~= nil then weight = 3 elseif string.find (wildcards[1], "trifling") ~= nil then weight = 2 elseif string.find (wildcards[1], "negligible") ~= nil then weight = 1 else weight = 1 end end health_table[names] = health_table[names] + weight -------------------------------------------------- -- At heavy now, restance! restance! -------------------------------------------------- if tonumber(health_table[names]) > 5 then bal_stance = 0 end -- a wounding has occured, re-parry bal_parry = 0 end function UnHealthTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) if wildcards[1] == "partially" then ------------------------------------------------------- -- for partial heal, keep track of the number of hits ------------------------------------------------------- if health_table[names] < 1 then Note ("HealthTrigger: Impossible value detected") health_table[names] = 0 else health_table[names] = health_table[names] - 1 end else ------------------------------------------------------- -- for complete heal, completely remove all references ------------------------------------------------------- health_table[names] = 0 end end ------------------------------------------------------------------------------------------- -- ------------------------------------------------------------------------------------------- herb_table = {} function HerbTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) --Note (names) herb_table[names] = 1 end function UnHerbTrigger (thename, theoutput, wildcards, line) pos = string.find (thename, "%d") names = string.sub (thename, 1, pos-1) herb_table[names] = nil end ------------------------------------------------------------------------------------------- -- Priority Healing System -- Weakness: This will remove an affliction after trying to heal it. This is to prevent -- illusions. But if an affliction goes through after that, we are screwed. ------------------------------------------------------------------------------------------- function Healer () ----------------------------------------------------------------------- -- Turned off ----------------------------------------------------------------------- if guard_master == 0 then -- turn off -- return end ----------------------------------------------------------------------- -- Things that will prevent us from doing our job ----------------------------------------------------------------------- if bal_stun==0 then -- wait for stun to pass -- Note ("Stun check") return end if bal_sleep ~= 1 then if bal_sleep == 0 then -- already trying to wake -- else Send ("wake") bal_sleep = 0 end return end if bal_pinleg==2 then -- wait for pinleg to pass -- Note ("Pinleg check") return end ----------------------------------------------------------------------- -- Mutex lock ----------------------------------------------------------------------- if healer_guard==0 then return end healer_guard = 0 ----------------------------------------------------------------------- -- Aeon Curing sytem ----------------------------------------------------------------------- if purgative_table["Aeon"] ~= nil then -- All cures will be timed, 1.1 sec apart if IsTimer("AeonCure") ~= 0 then -- do the first pass -- if (AeonCure () == 1) then -- All succeeding pass will be handled by this -- AddTimer("AeonCure", 0, 0, 1.1, "", timer_flag.Enabled, "AeonCure") end end healer_guard = 1 -- release mutex -- return else -- Timer exists, delete it now if IsTimer("AeonCure") == 0 then EnableTimer ("AeonCure") DeleteTimer ("AeonCure") end end --------------------------------------------------------------------------------------- -- Stand Check --------------------------------------------------------------------------------------- if bal_prone==2 then Note ("stand check") Send ("stand") bal_prone=0 healer_guard = 1 -- release mutex -- return end --------------------------------------------------------------------------------------- -- Writhe -- Focus Body -- Focus Mind --------------------------------------------------------------------------------------- if bal_focusmind == 1 and bal_focus == 2 then Note ("focus body") Send ("focus body") TimerCreate ("WatchFocus", timer_focus) -------------------------------------------------------- -- Previously we set this to 0 on the trigger line -- But its so slow, we end up focusing Multiple times -- We end up losing a lot of mana -------------------------------------------------------- bal_focus = 0 end if bal_focusmind == 1 and bal_focus == 1 then if isEmpty (herb_table) == 1 or isEmpty (purgative_table) == 1 or isEmpty (salve_table) == 1 then -------------------------------------------------------- -- Previously we set this to 0 on the trigger line -- But its so slow, we end up focusing Multiple times -- We end up losing a lot of mana -------------------------------------------------------- Send ("focus mind") bal_focusmind = 0 TimerCreate ("WatchFocusMind", timer_focus) end end if bal_writhe > 1 then bal_writhe = 0 Send ("writhe") TimerCreate ("WatchWrithe", timer_writhe) end --------------------------------------------------------------------------------------- -- MAIN SYSTEM -- Will attempt to cure according to this four pipes -- PhysicalCure -- HealthCure -- PurgativeCure -- HerbCure -- These are in a separate system -- Writhe -- Focus Body --------------------------------------------------------------------------------------- if bal_herb==1 then ------------------------------------------------- -- Prioritize the most dangerous ones ------------------------------------------------- if herb_table["Anorexia"] ~= nil then bal_herb=0 HealerCure (herb_table, HerbCure, "Anorexia", "WatchHerb", timer_herb) elseif herb_table["CrushedThroat"] ~= nil then bal_herb=0 HealerCure (herb_table, HerbCure, "CrushedThroat", "WatchHerb", timer_herb) elseif herb_table["Hypochondria"] ~= nil then bal_herb=0 HealerCure (herb_table, HerbCure, "Hypochondria", "WatchHerb", timer_herb) elseif bal_blanknote > 1 then bal_herb=0 bal_blanknote=1 Send ("outr earwort") Send ("eat earwort") TimerCreate ("WatchHerb", timer_herb) else ------------------------------------------------- -- for the others, just pick one random ------------------------------------------------- for h_index, h_value in pairs (herb_table) do bal_herb=0 Note ("Herb now") HealerCure (herb_table, HerbCure, h_index, "WatchHerb", timer_herb) break; end -- if there are no afflictions, and kafe was stripped, then eat kafe if bal_herb== 1 and bal_kafe == 0 then bal_herb=0 Send ("outr kafe") Send ("eat kafe") TimerCreate ("WatchHerb", timer_herb) end end end if bal_purgative==1 then for h_index, h_value in pairs (purgative_table) do bal_purgative=0 Note ("Purgative now") HealerCure (purgative_table, PurgativeCure, h_index, "WatchPurgative", timer_purgative) break; end end if bal_salve==1 then for h_index, h_value in pairs (salve_table) do bal_salve=0 Note ("Salve now") HealerCure (salve_table, SalveCure, h_index, "WatchSalve", timer_salve) break; end end ------------------------------------------------------------------ -- Physical cure should have locks or we risk mana burn ------------------------------------------------------------------ for h_index, h_value in pairs (physical_table) do Send (PhysicalCure[h_index].cure) end ----------------------------------------------------------------------- -- Prone cure -- Wield cure ----------------------------------------------------------------------- if bal_all==1 and bal_writhe == 1 and bal_focus==1 then if bal_prone==0 then --------------------------------------------------------------- -- Make sure we are in a state where we can stand --------------------------------------------------------------- if salve_table["CrippledLegLeft"] == nil and salve_table["CrippledLegRight"] == nil and herb_table["HemiplegyLeft"] == nil and herb_table["HemiplegyRight"] == nil then Send ("stand") end end --------------------------------------------------------------- -- try to wield a weapon. in case i missed something here, -- diagnose should take care of it --------------------------------------------------------------- if bal_leftarm == 2 then if herb_table["HemiplegyLeft"] == nil and salve_table["AmputateLeftArm"] == nil and salve_table["CrippledArmRight"] == nil and salve_table["MangledRightArm"] == nil then Send (BalanceTable.WeaponLeft.cure) end end if bal_rightarm == 2 then if herb_table["HemiplegyRight"] == nil and salve_table["AmputateRightArm"] == nil and salve_table["CrippledArmRight"] == nil and salve_table["MangledRightArm"] == nil then Send (BalanceTable.WeaponRight.cure) end end end ----------------------------------------------------------------------- -- Healing that takes balance ----------------------------------------------------------------------- if bal_all==1 and bal_writhe == 1 and bal_focus==1 then for h_index, h_value in pairs (spell_table) do Note ("Spell now") HealerCure (spell_table, SpellCure, h_index, "WatchSpell", timer_spell) break; end end if bal_all==1 and bal_writhe == 1 and bal_pipe==0 then Send ("light "..pipe_coltsfoot) Send ("light "..pipe_faeleaf) Send ("light "..pipe_myrtle) end ----------------------------------------------------------------------- -- auto sipper ----------------------------------------------------------------------- AutoSip () ----------------------------------------------------------------------- -- Wounds healer ----------------------------------------------------------------------- HealerWounds () ----------------------------------------------------------------------- -- Change parry according to need ----------------------------------------------------------------------- AutoParry () healer_guard = 1 end function HealerCure (queue_table, heal_table, index, type, timer_value) -------------------------------------------------------------------------------------- -- NOTE: -- There are three possibilities why the de-affliction message did not come -- 1. An illusion: in which case, we will just forget about it -- 2. Hypochondria: will be caugth before hand -- 3. It was prevented by somehow. i.e. stupidity: -- lets just wait for the secondary messages -------------------------------------------------------------------------------------- if index=="CrushedFootLeft" or index=="CrushedFootRight" then if bal_prone==0 then Send ("Apply mending to legs") else Send ("OUTR ARNICA") Send ("apply arnica to legs") end elseif index=="Reject" then Send ("reject "..target) Send ("enemy "..target) else for h_index, h_value in pairs (heal_table[index].cure) do Send (h_value) end end Note (index) queue_table[index]=nil TimerCreate (type, timer_value) end function AeonCure () -- Anti-illusion codes if herb_table["Anorexia"] == 2 then herb_table["Anorexia"] = nil end if purgative_table["Aeon"] == 2 then if herb_table["Anorexia"] == 1 then ------------------------------------------------- -- failed due to anorexia, so reset again ------------------------------------------------- purgative_table["Aeon"] = 1 else purgative_table["Aeon"] = nil end end if herb_table["Anorexia"] ~= nil then if bal_herb==1 then Send (smoke_coltsfoot) TimerCreate ("WatchHerb", timer_herb) bal_herb=0 Note ("Aeoncure Anorexia") herb_table["Anorexia"] = 2 return 1 end else if bal_purgative==1 then Send ("drink phlegmatic") TimerCreate ("WatchPurgative", timer_purgative) bal_purgative=0 Note ("Aeoncure Aeon") purgative_table["Aeon"] = 2 return 1 end end -- nothing was cured -- Note ("Aeoncure Nothingcured") return 0 end function AutoParry () Wounds = { head = health_table["WoundsHead"], chest = health_table["WoundsChest"], gut = health_table["WoundsGut"], larm = health_table["WoundsArmLeft"], rarm = health_table["WoundsArmRight"], lleg = health_table["WoundsLegLeft"], rleg = health_table["WoundsLegRight"] } curr_index = "none" curr_value = 0 for h_index, h_value in pairs (Wounds) do ---------------------------------------------- -- Search part with most hits. ---------------------------------------------- if h_value > curr_value then curr_index = h_index curr_value = h_value end end -------------------------------------------------------- -- Change our parry -------------------------------------------------------- if curr_index ~= "none" and bal_prone==1 and bal_parry==0 then Send ("unparry") Send ("parry "..curr_index.." 100") bal_parry=1 end -------------------------------------------------------- -- Change our stances only at the most dire situations, -- i.e. having heavy woundings -------------------------------------------------------- if bal_all==1 and bal_writhe==1 and bal_focus==1 and bal_prone==1 then if bal_stance == 0 then if curr_index == "larm" or curr_index == "rarm" then Send ("stance arms") elseif curr_index == "lleg" or curr_index == "rleg" then Send ("stance legs") else Send ("stance "..curr_index) end bal_stance = 1 end end end function AutoSip () if herb_table["CrushedThroat"] ~= nil or purgative_table["SlitThroat"] ~= nil then -- We need to fix our throat first Note ("Crushed or slit throat, dangerous") --return 1 end if tonumber(curr_health) < thre_scroll or tonumber(curr_mana) < thre_mana or tonumber(curr_ego) < thre_bromide then if bal_scrollheal == 1 then Send ("Read "..ScrollOfHealing) bal_scrollheal = 0 end end if bal_health==1 then sipped=1 if tonumber(curr_health) < thre_health then bal_health = 0 Send ("sip health") elseif tonumber(curr_mana) < thre_mana then bal_health = 0 Send ("sip mana") elseif tonumber(curr_ego) < thre_bromide then bal_health = 0 Send ("sip bromide") else sipped=0 end if sipped==1 then TimerCreate ("WatchHealth", timer_health) return 0 end end return 1 end function HealerWounds () if purgative_table["Slickness"] ~= nil then -- We need to cure slickness first Note ("Wounds cannot be healed: Slickness") --return 0 end if bal_health==1 then curr_index = "none" curr_value = 0 for h_index, h_value in pairs (health_table) do ---------------------------------------------- -- Search part with most hits. ---------------------------------------------- if curr_value < h_value then curr_index = h_index curr_value = h_value end end if curr_index ~= "none" then bal_health = 0 Send (HealthCure[curr_index].cure) ----------------------------------------------------- -- Health cure is special. We only remove if it hits ----------------------------------------------------- TimerCreate ("WatchHealth", timer_health) end end end ----------------------------------------------------------------------------------------------------------------------------------------------- -- Watchdogs to watch our balances -- We do not know when this will hit. -- So we need to restart the healer and not wait for the prompt ----------------------------------------------------------------------------------------------------------------------------------------------- function WatchStun () bal_stun = 1 EnableTimer("WatchStun", false) Note ("Watch Stun") Healer () end function WatchWrithe () bal_writhe = 1 bal_pinleg = 1 EnableTimer("WatchWrithe", false) Healer () end function WatchHerb () bal_herb = 1 Note ("WatchHerb") EnableTimer("WatchHerb", false) Healer () end function WatchPurgative () bal_purgative=1 Note ("WatchPurgative") EnableTimer("WatchPurgative", false) Healer () end function WatchSalve () bal_salve=1 Note ("WatchSalve") EnableTimer("WatchSalve", false) Healer () end function WatchHealth () bal_health=1 Note ("WatchHealth") EnableTimer("WatchHealth", false) Healer () end function WatchSpell () Note ("WatchSpell") EnableTimer("WatchSpell", false) Healer () end function WatchFocus () Note ("WatchFocus") EnableTimer("WatchFocus", false) bal_focus=1 Send ("") end function WatchFocusMind () Note ("WatchFocusMind") EnableTimer("WatchFocusMind", false) bal_focusmind=1 Send ("") end ----------------------------------------------------------------------------------------------------------------------------------------------- -- Miscelleanous: ----------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------- -- check if table has values --------------------------------------------- function isEmpty (_table) cnt=0 for h_index, h_value in pairs (_table) do cnt=cnt + 1; break end return cnt end function isHypochondria () HypoTable = { Paralysis = "A prickly stinging overcomes your body, fading away into numbness.", Vomit = "A sense of extreme nausea washes over you.", Stupidity = "Hmmmm. Why must everything be so difficult to figure out?", Anorexia = "The idea of eating or drinking is repulsive to you.", Crotamine = "You begin feeling slightly flushed.", Blindness = "You blink for a moment, then instantly, all about you is darkness.", Asthma = "You feel a tightening sensation grow in your lungs.", Sleeper = "You feel incredibly tired, and fall asleep immediately.", Repugnance = "You feel ugliness radiating from you.", Filler = "Unreasoning rage turns the world blood-red.", Filler2 = "You gasp and stumble as part of your precious energy reserves are sapped from you.", Shyness = "You look about yourself nervously.", Slickness = "You notice that your sweat glands have begun to rapidly secrete a foul, oily substance.", Recklessness = "None may stand in your way! You are invincible!", Recklessness2 = "You realize that your heroic actions can no longer continue unnoticed, and you take it upon yourself to rectify the situation.", CrippledLegRight = "You stumble as your right leg shrivels into a useless appendage.", CrippledLegLeft = "You stumble as your left leg shrivels into a useless appendage.", CrippledArmLeft = "You watch, in horror, as your left arm shrivels up and becomes useless.", CrippledArmRight = "You watch, in horror, as your right arm shrivels up and becomes useless.", Weakness = "Your limbs grow heavy and you groan feebly.", Dizziness = "Your mind swims as dizziness overtakes you.", SunAllergy = "Your vision is flooded with light, and your face suddenly reddens.", } curr_line = GetLinesInBufferCount() curr_text = GetLineInfo (curr_line - 1, 1) isNewline = GetLineInfo (curr_line - 2, 1) if isNewline == "" then for h_index, h_value in pairs (HypoTable) do if string.find (h_value, curr_text) ~= nil then ------------------------------------------- -- if prompt != line2 then hyphochondria ------------------------------------------- if h_index == "Recklessness2" then return "Recklessness" else return h_index end end end end return "" end --------------------------------------------- -- Create timers --------------------------------------------- function TimerCreate (functor, time_len) if IsTimer(functor) == 0 then EnableTimer (functor) ResetTimer(functor) else AddTimer(functor, 0, 0, time_len, "", timer_flag.Enabled, functor) end end ----------------------------------------------------------------------------------------------------------------------------------------------- -- LOAD: -- ALIAS Table ----------------------------------------------------------------------------------------------------------------------------------------------- dofile ("alias.lua")