Diag output

by Anarias

Back to Mechanic's Corner.

Anarias2005-07-12 09:51:15
Ok, I'd like to know how to make the diag output different so I can learn my curing a bit better. What I'd like is to make it so that when I use diagnose it will show up with the affliction and the cure on the same line. Like...

You are:
unnaturally stupid. --Pennyroyal--

I can't quite figure out how to go about doing that. Any help is appreciated.
Unknown2005-07-12 11:06:57
write triggers for each .

These triggers should gag that line, and echo the following (using whatever colors you prefer for the different parts of the line):

----

That's what I do anyway smile.gif
Ekard2005-07-12 12:00:37
If you are using zMUD create a trigger and:
Patter: ^paralysed.$
Value: #sub {%ansi(4)paralysed. - focus body }

It will show you this

You are:
paralysed. - focus body
an insomniac. - smoke coltsfoot
4416h, 3912m, 3408e, 10p, 20980en, 18460w lrxkp-<13:56:51.212> focus body

And here i found my old code with almoust evry affiliction, it miss few but i'm too lazy to add them, if someone else want to add them smile.gif

CODE

#CLASS {Diag}
#TRIGGER {^You are:$} {#T+ Diag|Check}
#CLASS 0
#CLASS {Diag|Check}
#TRIGGER {^(*)h, (*)m, (*)e, (*)p} {#T- Diag|Check} "" {nocr|prompt}
#TRIGGER {^entangled.$} {#sub {%ansi(4)entangled. - writhe or invoke summer };#var aff_webed 1}
#TRIGGER {^entangled in ropes.$} {#sub {%ansi(4)entangled in ropes. - writhe or invoke summer }}
#TRIGGER {^paralysed.$} {#sub {%ansi(4)paralysed. - focus body }}
#TRIGGER {^afflicted by unbearable shyness.$} {#sub {%ansi(7)afflicted by unbearable shyness. - smoke coltsfoot }}
#TRIGGER {^hallucinating.$} {#sub {%ansi(4)hallucinating. - eat pennyroyal }}
#TRIGGER {^has an aura of repugnance.$} {#sub {%ansi(7)has an aura of repugnance. - drink love }}
#TRIGGER {^surrounded by the aura of justice.$} {#sub {%ansi(7)surrounded by the aura of justice. - eat reishi }}
#TRIGGER {^afraid of clothing.$} {#sub {%ansi(7)afraid of clothing. - eat wormwood }}
#TRIGGER {^unnaturally stupid.$} {#sub {%ansi(4)unnaturally stupid. - eat pennyroyal }}
#TRIGGER {^sensitive to pain.$} {#sub {%ansi(4)sensitive to pain. - eat myrtle or drink melancholic }}
#TRIGGER {^suffering from a pox.$} {#sub {%ansi(7)suffering from a pox. - apply liniment }}
#TRIGGER {^ablaze.$} {#sub {%ansi(7)ablaze. - drink frost }}
#TRIGGER {^afflicted by fear.$} {#sub {%ansi(7)afflicted by fear. - compose }}
#TRIGGER {^afflicted by a crippled (*) leg.$} {#sub {%ansi(4)afflicted by a crippled %1 leg. - apply mending to leg }}
#TRIGGER {^extremely oily.$} {#sub {%ansi(4)extremely oily. - eat calamus }}
#TRIGGER {^suffering from a severed artery in the right arm.$} {#sub {%ansi(7)suffering from a severed artery in the right arm. - eat yarrow }}
#TRIGGER {^suffering from a severed artery in the right leg.$} {#sub {%ansi(7)suffering from a severed artery in the right leg. - eat yarrow }}
#TRIGGER {^suffering from a sliced open forehead.$} {#sub {%ansi(7)suffering from a sliced open forehead. - eat yarrow }}
#TRIGGER {^overcome by dizziness.$} {#sub {%ansi(7)overcome by dizziness. - eat kombu or drink melancholic }}
#TRIGGER {^suffering from been scalped.$} {#sub {%ansi(7)suffering from been scalped. - drink sanguine }}
#TRIGGER {^suffering from a sliced open gut.$} {#sub {%ansi(7)suffering from a sliced open gut. - eat marjoram }}
#TRIGGER {^suffering from a punctured chest.$} {#sub {%ansi(7)suffering from a punctured chest. - eat marjoram }}
#TRIGGER {^blind.$} {#sub {%ansi(2)blind. - eat faeleaf or apply health to head }}
#TRIGGER {^deaf.$} {#sub {%ansi(2)deaf. - eat faeleaf or apply health to head }}
#TRIGGER {^suffering from a fractured (*) arm.$} {#sub {%ansi(7)suffering from a fractured %1 arm. - apply arnica to arm }}
#TRIGGER {^has a broken nose.$} {#sub {%ansi(7)has a broken nose. - apply arnica to head }}
#TRIGGER {^suffering from a broken jaw.$} {#sub {%ansi(7)suffering from a broken jaw. - apply mending to head }}
#TRIGGER {^suffering from a fractured skull.$} {#sub {%ansi(7)suffering from a fractured skull. - apply arnica to head }}
#TRIGGER {^afflicted by haemophilia.$} {#sub {%ansi(7)afflicted by haemophilia. - eat yarrow or drink sanguine }}
#TRIGGER {^afflicted by thin blood.$} {#sub {%ansi(7)afflicted by thin blood. - eat yarrow }}
#TRIGGER {^anorexic.$} {#sub {%ansi(4)anorexic. - smoke coltsfoot }}
#TRIGGER {^confused.$} {#sub {%ansi(7)confused. - eat pennyroyal }}
#TRIGGER {^demented.$} {#sub {%ansi(7)demented. - eat pennyroyal }}
#TRIGGER {^paranoid.$} {#sub {%ansi(7)paranoid. - eat pennyroyal }}
#TRIGGER {^paralyzed on the (*) side.$} {#sub {%ansi(4)paralyzed on the %1 side. - smoke myrtle }}
#TRIGGER {^afflicted with clumsiness.$} {#sub {%ansi(7)afflicted with clumsiness. - eat kombu }}
#TRIGGER {^claustrophobic.$} {#sub {%ansi(7)claustrophobic. - eat wormwood }}
#TRIGGER {^under the influence of a love potion.$} {#sub {%ansi(7)under the influence of a love potion. - drink choleric }}
#TRIGGER {^violently ill.$} {#sub {%ansi(7)violently ill. - drink choleric }}
#TRIGGER {^afflicted with the curse of the Aeon.$} {#sub {%ansi(4)afflicted with the curse of the Aeon. - eat reishi or drink phlegmatic and next drink quicksilver }}
#TRIGGER {^afflicted by horrible asthma.$} {#sub {%ansi(4)afflicted by horrible asthma. - drink melancholic }}
#TRIGGER {^allergic to sunlight.$} {#sub {%ansi(4)allergic to sunlight. - apply liniment }}
#TRIGGER {^shivering.$} {#sub {%ansi(7)shivering. - drink fire }}
#TRIGGER {^dying from crotamine.$} {#sub {%ansi(4)dying from crotamine. - drink antidote }}
#TRIGGER {^reckless.$} {#sub {%ansi(7)reckless. - eat horehound }}
#TRIGGER {^wearied in body.$} {#sub {%ansi(7)wearied in body. - eat marjoram}}
#TRIGGER {^has a crushed chest.$} {#sub {%ansi(7)has a crushed chest. - apply regeneration to chest }}
#TRIGGER {^afflicted by a crippled (*) arm.$} {#sub {%ansi(4)afflicted by a crippled %1 arm. - apply mending to arm }}
#TRIGGER {^frozen stiff.$} {#sub {%ansi(7)frozen stiff. - drink fire }}
#TRIGGER {^suffering from a severed artery in the left arm.$} {#sub {%ansi(7)suffering from a severed artery in the left arm. - eat yarrow }}
#TRIGGER {^suffering from a severed artery in the left leg.$} {#sub {%ansi(7)suffering from a severed artery in the left leg. - eat yarrow }}
#TRIGGER {^under an ill omen.$} {#sub {%ansi(4)under an ill omen. - no cure}}
#TRIGGER {^has a partially damaged (*) arm.$} {#sub {%ansi(4)has a partially damaged %1 arm. - apply regeneration to arm }}
#TRIGGER {^plagued by an illusory phantom.$} {#sub {%ansi(4)plagued by an illusory phantom. - no cure }}
#TRIGGER {^desperately in love with (*).$} {#sub {%ansi(7)desperately in love with %1. - eat galingale }}
#TRIGGER {^impatient.$} {#sub {%ansi(4)impatient. - smoke coltsfoot }}
#TRIGGER {^gluttonous.$} {#sub {%ansi(7)gluttonous. - eat galingale }}
#TRIGGER {^feeling unnaturally tranquil.$} {#sub {%ansi(7)feeling unnaturally tranquil. - eat reishi }}
#TRIGGER {^missing the (*) ear.$} {#sub {%ansi(7)missing the %1 ear. - eat marjoram }}
#TRIGGER {^suffering from a pierced (*) arm.$} {#sub {%ansi(7)suffering from a pierced %1 arm. - smoke myrtle }}
#TRIGGER {^suffering from a pierced (*) leg.$} {#sub {%ansi(7)suffering from a pierced %1 leg. - smoke myrtle }}
#TRIGGER {^suffering from a broken chest.$} {#sub {%ansi(7)suffering from a broken chest. - apply arnica to chest }}
#TRIGGER {^vomiting blood.$} {#sub {%ansi(7)vomiting blood. - drink choleric }}
#TRIGGER {^addicted to elixirs.$} {#sub {%ansi(4)addicted to elixirs. - eat galingale }}
#TRIGGER {^masochistic.$} {#sub {%ansi(7)masochistic. - smoke coltsfoot }}
#TRIGGER {^very lonely.$} {#sub {%ansi(7)very lonely. - smoke coltsfoot }}
#TRIGGER {^suffering from epilepsy.$} {#sub {%ansi(7)suffering from epilepsy. - eat kombu }}
#TRIGGER {^stricken by the vapors.$} {#sub {%ansi(4)stricken by the vapors. - eat kombu or drink melancholic }}
#TRIGGER {^a certified hypochondriac.$} {#sub {%ansi(7)a certified hypochondriac. - eat wormwood }}
#TRIGGER {^infected with stomach worms.$} {#sub {%ansi(7)infected with stomach worms. - drink choleric }}
#TRIGGER {^suffering from a bad bout of dysentery.$} {#sub {%ansi(7)suffering from a bad bout of dysentery. - drink choleric }}
#TRIGGER {^suffering from a punctured lung.$} {#sub {%ansi(7)suffering from a punctured lung. - drink melancholic }}
#TRIGGER {^infected with scabies mites.$} {#sub {%ansi(7)infected with scabies mites. - apply liniment }}
#TRIGGER {^suffering from massive organ failure.$} {#sub {%ansi(4)suffering from massive organ failure. - apply regeneration to gut }}
#TRIGGER {^punctured in the etheric substance of your aura.$} {#sub {%ansi(7)punctured in the etheric substance of your aura. - eat reishi }}
#TRIGGER {^plagued by childish daydreams.$} {#sub {%ansi(7)plagued by childish daydreams. - eat kafe }}
#TRIGGER {^suffering from a sliced tendon in the (*) leg.$} {#sub {%ansi(7)suffering from a sliced tendon in the %1 leg. - eat marjoram }}
#TRIGGER {^sprawled on the ground.$} {#sub {%ansi(7)sprawled on the ground. - stand }}
#TRIGGER {^transfixed.$} {#sub {%ansi(4)transfixed. - writhe }}
#TRIGGER {^agoraphobic.$} {#sub {%ansi(4)agoraphobic. - eat wormwood }}
#CLASS 0

Anarias2005-07-12 21:52:04
Precisely what I needed. Thank you so much.