|
stark62 Wanderer
Joined: 04 Apr 2003 Posts: 94 Location: United Kingdom
|
Posted: Sat Dec 09, 2006 10:53 am
Trigger Solution Needed Please |
Ok I have a situation like this :-
You are afflicted by amnesia.
You are afflicted by vertigo.
You are afflicted by insomnia.
OK 1st I have a trigger to send these to a window so I can keep updated as to what I have
#tr You are afflicted by (*) pattern #WIN Disease %1
seems to work ok and I have a line between each diagnose so if its cured it wont show on next diagnose
Also I have triggers for
#trig You are afflicted by insomnia. pattern #additem megilloscure1 insomnia
this adds to my megillos (herb) cure variable
Ok My Question
this system has a trigger to send various dises to window
then a sort of duplicate number of triggers sending to various variables depending on disease
Is this Efficient - im not sure if multiple triggers of a trigger word is more efficient than multiple patterns off one trigger?
Thanks |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Dec 09, 2006 1:03 pm |
I'm not sure what you mean when you say "multiple patterns". The pattern is the part that the trigger tries to match to the MUD output - the script is the part that the trigger runs when it gets a match.
Instead of having two triggers for the same text, you can just enter multiple commands into the script window. Just put them on separate lines, or separate them with a semicolon. So:
#trig {blah} {:window:#echo %line;#var somename somevalue} |
|
|
|
|
|