Natarm2006-07-04 05:49:43
Ok, so, after a great many hours of ponderage, pontification, and flat out hair ripping frustration, I turn once again to the community in hopes they can keep me from breaking my keyboard into a thousand tiny bits.
The following is a queue I had written, for trying to heal myself. Everything supporting the queue (variables switching on and off, herb aliases all function when fired manually, balances et all) seem to function properly. However, when I actually fire off the alias containing said queue, nothing happens at all. So here, for your viewing pleasure, is my great cacaphony of code.
(PS: I know its not prioritized. Thats step two. Gotta make it work first.)
#if (@herbbalance=1 and @Stunned=0 and @Asleep=0 and @Anorexia=0) {#if (BrokenNose=1) {ArnicaNose} {#if (BrokenChest=1) {ArnicaChest} {#if (FracturedArms=1) {ArnicaArms} {#if (Hemophilia=1) {Yarrow} {#if (Lethargy=1) {Yarrow} {#if (Relapse=1) {Yarrow} {#if (CutArtery=1) {Yarrow} {#if (ThinBlood=1) {Yarrow} {#if (Slickness=1) {Calamus} {#if (Reckless=1) {Horehound} {#if (Healthleech=1) {Horehound} {#if (Dissonant=1) {Horehound} {if (Pacified=1) {Reishi} {#if (Aeon=1) {Reishi} {#if (Peace=1) {Reishi} {#if Powersink=1) {Reishi} {#if (Justice=1) {Reishi} {#if (PuncturedAura=1) {Reishi} {#if (Generous=1) {Galingale} {#if (Addiction=1) {Galingale} {#if (LoversCurse=1) {Galingale} {#if (Gluttony=1) {Galingale} {#if (Confused=1) {Pennyroyal} {#if (Dementia=1) {Pennyroyal} {#if (Hallucinate=1) {Pennyroyal} {#if (Stupidity=1) {Pennyroyal} {#if (Paranoia=1) {Pennyroyal} {#if (Weakness=1) {Marjoram} {#if (Rigormortis=1) {Marjoram} {#if (TornSlicedMuscle=1) {Marjoram} {#if (PuncturedChest=1) {Marjoram} {#if (SeveredEar=1) {Marjoram} {#if (SlicedOpenGut=1) {Marjoram} {#if (Clumsy=1) {Kombu} {#if (Dizzy=1) {Kombu} {#if (Vapors=1) {Kombu} {#if (Epilepsy=1) {Kombu} {#if (Agoraphobia=1) {Wormwood} {#if (Hypochondria=1) {Wormwood} {#if (Claustrophobia=1) {Wormwood} {#if (Vestiphobia=1) {Wormwood} {#if (Sensitivity=1) {Myrtle} {#if (Vertigo=1) {Myrtle} {#if (Hemiplegy=1) {Myrtle} {#if (Blindness=1) {Faeleaf} {#if (Deafness=1) {Faeleaf}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
The following is a queue I had written, for trying to heal myself. Everything supporting the queue (variables switching on and off, herb aliases all function when fired manually, balances et all) seem to function properly. However, when I actually fire off the alias containing said queue, nothing happens at all. So here, for your viewing pleasure, is my great cacaphony of code.
(PS: I know its not prioritized. Thats step two. Gotta make it work first.)
#if (@herbbalance=1 and @Stunned=0 and @Asleep=0 and @Anorexia=0) {#if (BrokenNose=1) {ArnicaNose} {#if (BrokenChest=1) {ArnicaChest} {#if (FracturedArms=1) {ArnicaArms} {#if (Hemophilia=1) {Yarrow} {#if (Lethargy=1) {Yarrow} {#if (Relapse=1) {Yarrow} {#if (CutArtery=1) {Yarrow} {#if (ThinBlood=1) {Yarrow} {#if (Slickness=1) {Calamus} {#if (Reckless=1) {Horehound} {#if (Healthleech=1) {Horehound} {#if (Dissonant=1) {Horehound} {if (Pacified=1) {Reishi} {#if (Aeon=1) {Reishi} {#if (Peace=1) {Reishi} {#if Powersink=1) {Reishi} {#if (Justice=1) {Reishi} {#if (PuncturedAura=1) {Reishi} {#if (Generous=1) {Galingale} {#if (Addiction=1) {Galingale} {#if (LoversCurse=1) {Galingale} {#if (Gluttony=1) {Galingale} {#if (Confused=1) {Pennyroyal} {#if (Dementia=1) {Pennyroyal} {#if (Hallucinate=1) {Pennyroyal} {#if (Stupidity=1) {Pennyroyal} {#if (Paranoia=1) {Pennyroyal} {#if (Weakness=1) {Marjoram} {#if (Rigormortis=1) {Marjoram} {#if (TornSlicedMuscle=1) {Marjoram} {#if (PuncturedChest=1) {Marjoram} {#if (SeveredEar=1) {Marjoram} {#if (SlicedOpenGut=1) {Marjoram} {#if (Clumsy=1) {Kombu} {#if (Dizzy=1) {Kombu} {#if (Vapors=1) {Kombu} {#if (Epilepsy=1) {Kombu} {#if (Agoraphobia=1) {Wormwood} {#if (Hypochondria=1) {Wormwood} {#if (Claustrophobia=1) {Wormwood} {#if (Vestiphobia=1) {Wormwood} {#if (Sensitivity=1) {Myrtle} {#if (Vertigo=1) {Myrtle} {#if (Hemiplegy=1) {Myrtle} {#if (Blindness=1) {Faeleaf} {#if (Deafness=1) {Faeleaf}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Xenthos2006-07-04 06:01:46
QUOTE(Natarm @ Jul 4 2006, 01:49 AM) 304703
Ok, so, after a great many hours of ponderage, pontification, and flat out hair ripping frustration, I turn once again to the community in hopes they can keep me from breaking my keyboard into a thousand tiny bits.
The following is a queue I had written, for trying to heal myself. Everything supporting the queue (variables switching on and off, herb aliases all function when fired manually, balances et all) seem to function properly. However, when I actually fire off the alias containing said queue, nothing happens at all. So here, for your viewing pleasure, is my great cacaphony of code.
(PS: I know its not prioritized. Thats step two. Gotta make it work first.)
#if (@herbbalance=1 and @Stunned=0 and @Asleep=0 and @Anorexia=0) {#if (BrokenNose=1) {ArnicaNose} {#if (BrokenChest=1) {ArnicaChest} {#if (FracturedArms=1) {ArnicaArms} {#if (Hemophilia=1) {Yarrow} {#if (Lethargy=1) {Yarrow} {#if (Relapse=1) {Yarrow} {#if (CutArtery=1) {Yarrow} {#if (ThinBlood=1) {Yarrow} {#if (Slickness=1) {Calamus} {#if (Reckless=1) {Horehound} {#if (Healthleech=1) {Horehound} {#if (Dissonant=1) {Horehound} {if (Pacified=1) {Reishi} {#if (Aeon=1) {Reishi} {#if (Peace=1) {Reishi} {#if Powersink=1) {Reishi} {#if (Justice=1) {Reishi} {#if (PuncturedAura=1) {Reishi} {#if (Generous=1) {Galingale} {#if (Addiction=1) {Galingale} {#if (LoversCurse=1) {Galingale} {#if (Gluttony=1) {Galingale} {#if (Confused=1) {Pennyroyal} {#if (Dementia=1) {Pennyroyal} {#if (Hallucinate=1) {Pennyroyal} {#if (Stupidity=1) {Pennyroyal} {#if (Paranoia=1) {Pennyroyal} {#if (Weakness=1) {Marjoram} {#if (Rigormortis=1) {Marjoram} {#if (TornSlicedMuscle=1) {Marjoram} {#if (PuncturedChest=1) {Marjoram} {#if (SeveredEar=1) {Marjoram} {#if (SlicedOpenGut=1) {Marjoram} {#if (Clumsy=1) {Kombu} {#if (Dizzy=1) {Kombu} {#if (Vapors=1) {Kombu} {#if (Epilepsy=1) {Kombu} {#if (Agoraphobia=1) {Wormwood} {#if (Hypochondria=1) {Wormwood} {#if (Claustrophobia=1) {Wormwood} {#if (Vestiphobia=1) {Wormwood} {#if (Sensitivity=1) {Myrtle} {#if (Vertigo=1) {Myrtle} {#if (Hemiplegy=1) {Myrtle} {#if (Blindness=1) {Faeleaf} {#if (Deafness=1) {Faeleaf}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Why are all of your affliction variables missing a @?
Esano2006-07-04 06:03:00
You forgot the @s before variables. You got it right in the first one, but not the others.
EDIT: Xenthos beat me.
EDIT: Xenthos beat me.
Natarm2006-07-04 06:42:10
*beats self in skull with rock*
Ok...so, now that we've established I'm an idiot.
Anyone know if zMUD has a limit on the amount of actual script you can put in an alias?
Ok...so, now that we've established I'm an idiot.
Anyone know if zMUD has a limit on the amount of actual script you can put in an alias?
Xenthos2006-07-04 06:47:07
QUOTE(Natarm @ Jul 4 2006, 02:42 AM) 304706
*beats self in skull with rock*
Ok...so, now that we've established I'm an idiot.
Anyone know if zMUD has a limit on the amount of actual script you can put in an alias?
No limit that I've ever met.
And no, you're not an idiot... I'm sure everybody's forgotten a @ from time to time.
Esano2006-07-04 07:46:28
No limit I've ever seen, and even if it does, you can just stick in another alias which does the rest, and make the first do the other alias at the end.
Murphy2006-07-04 09:24:25
QUOTE(Xenthos @ Jul 4 2006, 04:47 PM) 304707
No limit that I've ever met.
And no, you're not an idiot... I'm sure everybody's forgotten a @ from time to time.
i've done it too...and died from it.
Shorlen2006-07-04 12:35:56
QUOTE(Natarm @ Jul 4 2006, 02:42 AM) 304706
Anyone know if zMUD has a limit on the amount of actual script you can put in an alias?
To prove that there is no limit, I present to you my absurdly absurd warrior hit catching system. I know this is probably not the best way of doing things, but.... it works. All the code following this is a single alias. Note: @hitstring contains the text from the beginning of a warrior strike until the end.
CODE
#alias parsehitstring {
hitcaught=no
sidehit=none
limbhit=none
hitstring=%subregex( @hitstring, "Â Â ", " ")
#if (%regex( @hitstring, "You are hit on the (right|left) arm and get only a small bruise\\.", sidehit)) {#exe %concat( @sidehit, "armhit")}
#if (%regex( @hitstring, "You are merely clipped on your (left|right) arm for a small cut\\.", sidehit)) {#exe %concat( @sidehit, "armhit")}
#if (%regex( @hitstring, "The strike to your (right|left) arm barely (?:slices|cuts) through the skin\\.", sidehit)) {#exe %concat( @sidehit, "armhit")}
#if (%regex( @hitstring, "Your (left|right) arm is (?:pounded|bashed|struck) and slightly bruised\\.", sidehit)) {#exe %concat( @sidehit, "armhit")}
#if (%regex( @hitstring, "\\w+ strikes deep into your (left|right) shoulder, which severs a nerve and causes your entire (?:left|right) side to go numb\\.", sidehit)) {
  #exe %concat( @sidehit, "armhit")
  hemiplegy
  }
#if (%regex( @hitstring, "You are (?:struck|sliced) in the (right|left) elbow, cutting deep into the bone and causing the arm to hang uselessly\\.", sidehit)) {
  #exe %concat( @sidehit, "armhit")
  #exe %concat( @sidehit, "crackedelbow")
  }
#if (%regex( @hitstring, "You are (?:struck|cut) in your (left|right) bicep and blood freely flows down your arm\\.", sidehit)) {
  #exe %concat( @sidehit, "armhit")
  slicedbicep
  }
#if (%regex( @hitstring, "\\w+ strikes deeply into your (left|right) arm, which hits a nerve and makes that arm twitch involuntarily\\.", sidehit)) {
  #exe %concat( @sidehit, "armhit")
  #exe %concat( @sidehit, "piercedarm")
  }
#if (%regex( @hitstring, "Your knuckles are struck with a loud crack, and you drop (?:a|an) .*(athame|shield).*\\.", sidehit)) {
  #echo %ansi( 47) YOU HAVE DROPPED YOUR %ansi( 46)@sidehit%ansi( 47)! PICK IT UP NOW!
  take @sidehit
  #if (@sidehit="shield") {sidehit=right} {sidehit=left}
  #exe %concat( @sidehit, "armhit")
  }
#if (%regex( @hitstring, "You are sliced in the (left|right) arm, which becomes limp and falls to your side\\.", sidehit)) {
  #exe %concat( @sidehit, "armhit")
  #exe %concat( @sidehit, "fracturedarm")
  }
#if (%regex( @hitstring, "The (?:cut|slash|strike|hack) to your (left|right) leg leaves only a nick on your thigh\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "You are hit on the (left|right) thigh for a minor bruise\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "You are feebly struck in your (left|right) leg with the blade\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "You receive only a red welt from your (left|right) leg being (?:smashed|hacked)\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "The stab to your (right|left) thigh leaves a gaping hole\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "You stumble and barely stay upright as the \\w+ is plowed deep into the meat of your (left|right) leg\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "You get a large bruise on your (right|left) thigh from being smashed hard on the leg\\.", sidehit)) {#exe %concat( @sidehit, "leghit")}
#if (%regex( @hitstring, "\\w+ strikes deep into your (left|right) foot, pinning it down with .+\\. You involuntarily crumple to a crouch and can think of nothing but freeing your impaled foot\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  entangle
  }
#if (%regex( @hitstring, "Your (left|right) leg is elegantly (?:smashed|struck|crushed) and swept out from under you, knocking you to the ground\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  standup
  }
#if (%regex( @hitstring, "Your (left|right) leg is smacked with a force that goes to the bone\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "mangledleg")
  #echo maybe? or partially damaged?
  }
#if (%regex( @hitstring, "\\w+ strikes powerfully your (left|right) leg, and blood fountains out in a thick spray\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "piercedleg")
  }
#if (%regex( @hitstring, "(right|left) leg is completely (?:struck|slashed) through, which immediately plops to the ground, leaving only a bloody stump\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  lostleg
  }
#if (%regex( @hitstring, "\\w+ (?:slashes|strikes) the tendon above your (left|right) heel, and you scream in agony as it's completely severed\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "slicedtendon")
  }
#if (%regex( @hitstring, "Your (left|right) thigh bone is smashed and shatters under the force of the blow\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "legbreak")
  }
#if (%regex( @hitstring, "Your (right|left) kneecap is (?:struck|slashed), slicing through the bone and causing the leg to collapse\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "crackedkneecap")
  }
#if (%regex( @hitstring, "You are slashed in the (left|right) thigh, cutting almost to the bone and your leg to buckle\\.", sidehit)) {
  #exe %concat( @sidehit, "leghit")
  #exe %concat( @sidehit, "slicedthigh")
  }
#if (%regex( @hitstring, "\\w+ (?:hacks|cuts|slices|slashes|strikes) your (left|right) (arm|leg), striking a major artery which splurts blood in all directions\\.", sidehit, limbhit)) {
  #exe %concat( @sidehit, @limbhit, "hit")
  #exe %concat( @sidehit, @limbhit, "severedartery")
  }
#if (%regex( @hitstring, "You are (?:struck|crushed) squarely in the nose, which bleeds profusely\\.")) {headhit}
#if (%regex( @hitstring, "You are dealt only a glancing blow to the side of your head from the smiting swing\\.")) {headhit}
#if (%regex( @hitstring, "You are smited in your head, leaving an ugly bruise\\.")) {headhit}
#if (%regex( @hitstring, "You are poked in the chin for a small puncture\\.")) {headhit}
#if (%regex( @hitstring, "You are cuffed lightly in the side of your face\\.")) {headhit}
#if (%regex( @hitstring, "You are pierced in the side of your face, leaving a bleeding wound\\.")) {headhit}
#if (%regex( @hitstring, "You are (?:hacked|cut) in the cheek for a small flesh wound\\.")) {headhit}
#if (%regex( @hitstring, "You are cut in the forehead and blink away blood\\.")) {headhit}
#if (%regex( @hitstring, "Your skull is smited with a resounding crack, leaving your ears ringing and causing you to stagger\\.")) {headhit}
#if (%regex( @hitstring, "You are smited in the eye, which turns purple and swells shut\\.")) {headhit}
#if (%regex( @hitstring, "Your head snaps back as your skull is (?:crushed|struck) hard and fractures, causing your thoughts to spin\\.")) {
  headhit
  fracturedskull
  }
#if (%regex( @hitstring, "\\w+ (?:cuts|hacks|strikes) off your (right|left) ear, and blood fills your ear canal, making you somewhat dizzy\\.", sidehit)) {
  headhit
  slicedear
  }
#if (%regex( @hitstring, "Your nose is savagely (?:crushed|struck) and breaks, causing blood to splurt forth\\.")) {
  headhit
  brokennose
  }
#if (%regex( @hitstring, "You cry out in pain as your jaw is (?:crushed|struck) and shatters\\.")) {
  headhit
  jawbreak
  }
#if (%regex( @hitstring, "\\w+ (?:strikes|hacks) your neck, and blood fountains out in a thick spray\\.")) {
  headhit
  slitthroat
  }
#if (%regex( @hitstring, "\\w+ (?:hacks|strikes) your forehead, causing blood to flow into your eyes and coat your entire face\\.")) {
  headhit
  slicedforehead
  }
#if (%regex( @hitstring, "\\w+ cleanly (?:strikes|hacks|cuts) off your scalp, and blinding pain and blood reverberates across your entire head\\.")) {
  headhit
  scalped
  }
#if (%regex( @hitstring, "\\w+ strikes through your neck like it's butter, and your view of the world suddenly spins wildly as your head flies through the air\\.")) {
  #echo Beheaded. Whee.
  reset
  }
#if (%regex( @hitstring, "You are (?:smashed|smited|pounded|bashed) in the chest and receive a small bruise\\.")) {chesthit}
#if (%regex( @hitstring, "You are (?:cut|sliced|hacked|slashed) in the chest for a small surface wound\\.")) {chesthit}
#if (%regex( @hitstring, "You are smacked in the chest with a solid blow\\.")) {chesthit}
#if (%regex( @hitstring, "You are thumped in the chest weakly\\.")) {chesthit}
#if (%regex( @hitstring, "You stagger back from the force of being \\w+ in the chest\\.")) {chesthit}
#if (%regex( @hitstring, "The blade bounces off your sternum, delivering only a shallow puncture\\.")) {chesthit}
#if (%regex( @hitstring, "You receive a bloody gash from the hack to your chest\\.")) {chesthit}
#if (%regex( @hitstring, "You are stabbed in the side of your chest, blood oozing from the gash\\.")) {chesthit}
#if (%regex( @hitstring, "You are (?:smashed|smited) in the chest with great force and hear a disturbing crunch\\.")) {
  chesthit
  crushedchest
  #echo THIS IS REALLY BAD, but, umm... WHAT THE HECK IS IT?
  }
#if (%regex( @hitstring, "\\w+ strikes deep into your chest, and you grit your teeth as the blade twists violently\\.")) {
  chesthit
  puncturedchest
  }
#if (%regex( @hitstring, "You are (?:cut|slashed|sliced|hacked) across the chest, laying open a flap of skin which bleeds profusely\\.")) {
  chesthit
  openchest
  }
#if (%regex( @hitstring, "You grimace in pain as your ribs are (?:smashed|bashed|smited|struck) viciously\\.")) {
  chesthit
  brokenchest
  }
#if (%regex( @hitstring, "\\w+ strikes into your chest and blood foams up from your mouth\\.")) {
  chesthit
  puncturedlung
  }
#if (%regex( @hitstring, "Your chest is brutally pounded and your ribs snap under the force of the blow\\.")) {
  chesthit
  crushedchest
  }
#if (%regex( @hitstring, "You are barely fazed from getting (smashed|smited|pounded) in the gut\\.")) {guthit}
#if (%regex( @hitstring, "You are (?:cut|sliced|slashed) in the belly for a mere scratch\\.")) {guthit}
#if (%regex( @hitstring, "You are tapped in the stomach with little effect\\.")) {guthit}
#if (%regex( @hitstring, "You are pricked in the gut and bleed slightly\\.")) {guthit}
#if (%regex( @hitstring, "A long, bleeding rend is slashed into your belly\\.")) {guthit}
#if (%regex( @hitstring, "You double over and can barely breathe from the force of your belly being smashed\\.")) {guthit}
#if (%regex( @hitstring, "You are (?:smashed|struck|pounded) in the gut, and the wind is knocked out of you\\.")) {guthit}
#if (%regex( @hitstring, "You bare your teeth in pain as * is thrust fiercely in your gut\\.")) {guthit}
#if (%regex( @hitstring, "Your belly opens up from the deep cut, spraying blood everywhere\\.")) {
  guthit
  opengut
  #echo maybe?
  }
#if (%regex( @hitstring, "\\w+ (?:slices|cuts|hacks|strikes|slashes) into your gut, which opens up and pours blood in a pool at your feet\\.")) {
  guthit
  opengut
  }
#if (%regex( @hitstring, "\\w+ (?:cuts|hacks|slices|slashes) deep into your gut, and a bloody intestine partially erupts with a foul stench\\.")) {
  guthit
  dysentery
  }
#if (%regex( @hitstring, "\\w+Â Â plunges \\w+ blade through your gut, and you are impaled viciously on the blade\\.")) {
  guthit
  entangle
  }
#if (%regex( @hitstring, "Your gut is struck with great force, and blood begins to foam at your mouth\\.")) {
  guthit
  vomiting
  }
#if (%regex( @hitstring, "(?:She|He) stumbles forward as (?:she|he) fails to strike you.")) {missedme}
#if (%regex( @hitstring, "(?:Her|His) .+ (?:smashes|pounds|smites|slices|slashes|hacks|cuts) through the air, missing you completely\\.")) {missedme}
#if (%regex( @hitstring, "but (?:her|his) (?:thrust|swing) hits your powerful aura and rebounds back into (?:himself|herself)\\.")) {rebounded}
#if (%regex( @hitstring, "\\w+'s \\w+ strikes your shield and bounces harmlessly off\\.")) {parried}
#if (%regex( @hitstring, "\\w+'s \\w+ (?:smites|cuts|hacks) your shield, which completely absorbs the blow\\.")) {parried}
#if (@hitcaught="no") {#if (%regex( @hitstring, "(?:Y|y)ou")) {
    #echo -
    #echo %ansi( 75) You have just been hit by a warrior, but don't know where!
    #additem unknownhits @hitstring
    } {#additem unknownhits @hitstring}}
}
Natarm2006-07-04 14:47:08
Sweet Raptor Jesus. Ok, well, at least I know there's no limit.
Anyone have the afflict/unafflict lines for SunAllergy? I've seen it in a few spars (and been victim of its instakill), but I couldn't quite catch the afflict line.
Edit: So apparently, right where the Reishi cures begin, something is causing zMUD to stop running the script, and send everything after that point as a command to the server, rather than as a script. Anyone got a clue why?
Anyone have the afflict/unafflict lines for SunAllergy? I've seen it in a few spars (and been victim of its instakill), but I couldn't quite catch the afflict line.
Edit: So apparently, right where the Reishi cures begin, something is causing zMUD to stop running the script, and send everything after that point as a command to the server, rather than as a script. Anyone got a clue why?
Shorlen2006-07-04 15:23:08
QUOTE(Natarm @ Jul 4 2006, 10:47 AM) 304765
Sweet Raptor Jesus. Ok, well, at least I know there's no limit.
Anyone have the afflict/unafflict lines for SunAllergy? I've seen it in a few spars (and been victim of its instakill), but I couldn't quite catch the afflict line.
It's not an instakill, it just does a lot of damage fast if you are outside during the day.
Afflict outside during the day:
... I appear not to have it o_O
Hypochondria or afflict during the night or indoors:
^Your vision is flooded with light, and your face suddenly reddens.$
Damage:
^Sunlight shines down upon you mercilessly, rippling across your skin like fire.$
Unafflict:
^No longer will the sunlight harm you.$
Diagnose:
^allergic to sunlight.$
QUOTE(Natarm @ Jul 4 2006, 10:47 AM) 304765
Edit: So apparently, right where the Reishi cures begin, something is causing zMUD to stop running the script, and send everything after that point as a command to the server, rather than as a script. Anyone got a clue why?
Missing an open paren before powersink.
Natarm2006-07-04 15:34:37
Hmm...nope, still giving me an issue in the same spot, Shorlen. I think I might know why. For some reason, the Reishi alias after powersink isn't coming up as Active...everything else turns blue but that one Alias call there. Not sure why.
Edit: Apparently, it starts right at the begining, where Pacified is. If that helps any.
Edit: Apparently, it starts right at the begining, where Pacified is. If that helps any.
Shorlen2006-07-04 16:22:31
QUOTE(Natarm @ Jul 4 2006, 11:34 AM) 304778
Hmm...nope, still giving me an issue in the same spot, Shorlen. I think I might know why. For some reason, the Reishi alias after powersink isn't coming up as Active...everything else turns blue but that one Alias call there. Not sure why.
Edit: Apparently, it starts right at the begining, where Pacified is. If that helps any.
Can you repost your alias with the problems fixed?
Torak2006-07-04 17:40:23
After 30 seconds sunallergy is an instant kill, or somewhere around 30seconds.
Shorlen2006-07-04 17:50:52
QUOTE(Torak @ Jul 4 2006, 01:40 PM) 304809
After 30 seconds sunallergy is an instant kill, or somewhere around 30seconds.
Oh really? I never knew that.
Natarm2006-07-04 18:08:08
#if (@herbbalance=1 and @Asleep=0 And @Stunned=0 and @Anorexia=0) {#if (@BrokenNose=1) {ArnicaNose} {#if (@BrokenChest=1) {ArnicaChest} {#if (@FracturedArms=1) {ArnicaArms} {#if (@Hemophilia=1) {Yarrow} {#if (@Lethargy=1) {Yarrow} {#if (@Relapse=1) {Yarrow} {#if (@CutArtery=1) {Yarrow} {#if (@ThinBlood=1) {Yarrow} {#if (@Slickness=1) {Calamus} {#if (@Reckless=1) {Horehound} {#if (@Healthleech=1) {Horehound} {#if (@Dissonant=1) {Horehound} {if (@Pacified=1) {Reishi} {#if (@Aeon=1) {Reishi} {#if (@Peace=1) {Reishi} {#if (@Powersink=1) {Reishi} {#if (@Justice=1) {Reishi} {#if (@PuncturedAura=1) {Reishi} {#if (@Generous=1) {Galingale} {#if (@Addiction=1) {Galingale} {#if (@LoversCurse=1) {Galingale} {#if (@Gluttony=1) {Galingale} {#if (@Confused=1) {Pennyroyal} {#if (@Dementia=1) {Pennyroyal} {#if (@Hallucinate=1) {Pennyroyal} {#if (@Stupidity=1) {Pennyroyal} {#if (@Paranoia=1) {Pennyroyal} {#if (@Weakness=1) {Marjoram} {#if (@Rigormortis=1) {Marjoram} {#if (@TornSlicedMuscle=1) {Marjoram} {#if (@PuncturedChest=1) {Marjoram} {#if (@SeveredEar=1) {Marjoram} {#if (@SlicedOpenGut=1) {Marjoram} {#if (@Clumsy=1) {Kombu} {#if (@Dizzy=1) {Kombu} {#if (@Vapors=1) {Kombu} {#if (@Epilepsy=1) {Kombu} {#if (@Agoraphobia=1) {Wormwood} {#if (@Hypochondria=1) {Wormwood} {#if (@Claustrophobia=1) {Wormwood} {#if (@Vestiphobia=1) {Wormwood} {#if (@Sensitivity=1) {Myrtle} {#if (@Vertigo=1) {Myrtle} {#if (@Hemiplegy=1) {Myrtle} {#if (@Blindness=1) {Faeleaf} {#if (@Deafness=1) {Faeleaf}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Thats the updated code. Not sure whats wrong...double checked. to see if maybe I was missing a Variable, but that doesn't seem to be it. Just seems like it dun wanna work.
Thats the updated code. Not sure whats wrong...double checked. to see if maybe I was missing a Variable, but that doesn't seem to be it. Just seems like it dun wanna work.
Shorlen2006-07-04 18:45:02
QUOTE(Natarm @ Jul 4 2006, 02:08 PM) 304818
#if (@herbbalance=1 and @Asleep=0 And @Stunned=0 and @Anorexia=0) {
#if (@BrokenNose=1) {ArnicaNose} {
#if (@BrokenChest=1) {ArnicaChest} {
#if (@FracturedArms=1) {ArnicaArms} {
#if (@Hemophilia=1) {Yarrow} {
#if (@Lethargy=1) {Yarrow} {
#if (@Relapse=1) {Yarrow} {
#if (@CutArtery=1) {Yarrow} {
#if (@ThinBlood=1) {Yarrow} {
#if (@Slickness=1) {Calamus} {
#if (@Reckless=1) {Horehound} {
#if (@Healthleech=1) {Horehound} {
#if (@Dissonant=1) {Horehound} {
if (@Pacified=1) {Reishi} {
#if (@Aeon=1) {Reishi} {
#if (@Peace=1) {Reishi} {
#if (@Powersink=1) {Reishi} {
#if (@Justice=1) {Reishi} {
#if (@PuncturedAura=1) {Reishi} {
#if (@Generous=1) {Galingale} {
#if (@Addiction=1) {Galingale} {
#if (@LoversCurse=1) {Galingale} {
#if (@Gluttony=1) {Galingale} {
#if (@Confused=1) {Pennyroyal} {
#if (@Dementia=1) {Pennyroyal} {
#if (@Hallucinate=1) {Pennyroyal} {
#if (@Stupidity=1) {Pennyroyal} {
#if (@Paranoia=1) {Pennyroyal} {
#if (@Weakness=1) {Marjoram} {
#if (@Rigormortis=1) {Marjoram} {
#if (@TornSlicedMuscle=1) {Marjoram} {
#if (@PuncturedChest=1) {Marjoram} {
#if (@SeveredEar=1) {Marjoram} {
#if (@SlicedOpenGut=1) {Marjoram} {
#if (@Clumsy=1) {Kombu} {
#if (@Dizzy=1) {Kombu} {
#if (@Vapors=1) {Kombu} {
#if (@Epilepsy=1) {Kombu} {
#if (@Agoraphobia=1) {Wormwood} {
#if (@Hypochondria=1) {Wormwood} {
#if (@Claustrophobia=1) {Wormwood} {
#if (@Vestiphobia=1) {Wormwood} {
#if (@Sensitivity=1) {Myrtle} {
#if (@Vertigo=1) {Myrtle} {
#if (@Hemiplegy=1) {Myrtle} {
#if (@Blindness=1) {Faeleaf} {
#if (@Deafness=1) {Faeleaf}
}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
Just missing the # before the if for Pacified
Natarm2006-07-04 19:05:47
Shorlen2006-07-04 21:29:59
QUOTE(Natarm @ Jul 4 2006, 03:05 PM) 304829
My absurdly large aliases are saved in a text document on my computer in the form I put your code into - it makes it easier to edit and to find stupid mistakes. You can copy/paste into the alias with that form, hit save, and it'll accept it.
Natarm2006-07-05 05:14:14
I'll keep that in mind for future use, Shorlen. Sounds like a damned good idea.
Shorlen2006-07-05 15:06:00
QUOTE(Natarm @ Jul 5 2006, 01:14 AM) 304925
I'll keep that in mind for future use, Shorlen. Sounds like a damned good idea.
Oh, and for the record, this is NOT the best way of doing things. If you are hit with a bunch of "low-priority" afflictions, your system will have to churn through all those ifs to find each one, and zMUD is known for being a slow program. My sytem, based off such gigantic if-else-if ladders, locks up in group combat. I just... don't really know the better ways of doing it