Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
stark62
Wanderer


Joined: 04 Apr 2003
Posts: 94
Location: United Kingdom

PostPosted: 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
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: 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}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net