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
Kurst
Newbie


Joined: 16 Nov 2002
Posts: 4
Location: USA

PostPosted: Sat Nov 16, 2002 8:04 pm   

Lost ,Trying to create triggers .
 
I realize this site has many extremely computer literate members. I don't consider myself one of them. I'm trying to create triggers on a mud that I play (Devils Silence)and I'm goofing them up every which way. I once had triggers that allowed me to see when I got better at a skill(it would show me in color), to rub my eyes when I got dirt kicked into them and to stand when I was sent sprawling. I have lost these triggers to a corrupted hard drive. I'd like to join the ranks of the knowledgable because I enjoy my Zmud. Please help if possible.
Reply with quote
Dorrin
Novice


Joined: 08 Aug 2002
Posts: 41

PostPosted: Sat Nov 16, 2002 11:42 pm   
 
Since MUDs are so customizable, examples of output that you're wanting to us to set up the triggers would be helpful.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Nov 17, 2002 12:25 am   
 
The first place to look is the helpfile that comes up when you click Help. At the top of that window you'll see a row of buttons, including Contents and Index. Clicking on Contents will bring up a dialogue window where you can find Getting Started, which includes Introduction to Triggers. You'll also find Command Reference, which of course has a page devoted to the TRIGGER command. This is usually the easiest way to find help about specific commands. I mostly use the Index for quick access to Functions/ Predefined, Variables/Predefined, Patterns, and Expressions.

Triggers work by matching the text from the MUD and then doing something. There are many wildcards (see Patterns) which make it easier to find a match. For the three you asked about it would be something like
#TR {Your skill at * has improved} {#CW red}
#TR {kicks dirt in your eyes, blinding you} {rub eyes}
#TR {and sends you sprawling} {stand}

The patterns and MUD commands will naturally have to be changed if they don't exactly match what your MUD uses.

LightBulb
Senior Member
Reply with quote
Kurst
Newbie


Joined: 16 Nov 2002
Posts: 4
Location: USA

PostPosted: Sun Nov 17, 2002 12:53 am   
 
LightBulb and Dorrin, Examples of the phrases the mud sends me and what I'm looking to do is as follows.

You have become better at shield block!
You learn from your mistakes, and your kick skill improves.
Your are blinded by dirt in your eyes!
You are sent sprawling with a powerful bash!

I'd like to have Zmud send me a flag using the trigger for the first two in color saying your skill has improved in *

I'm going to try the other two triggers reccommended by LB
Reply with quote
DemonLlama
Beginner


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Sun Nov 17, 2002 3:59 am   
 
I'm not sure what you were saying about zMUD sending a flag. If you're talking about the #CW, well, that's what it does... puts it in color. Maybe this is what you're looking for:

#tr {You have become better at *!} {#cw red;#SUB Your skill has improved in %1}
#tr {You learn from your mistakes, and your * skill improves.} {#color red;#SUB Your skill has improved in %1}
Reply with quote
DemonLlama
Beginner


Joined: 03 Nov 2002
Posts: 27
Location: USA

PostPosted: Sun Nov 17, 2002 4:00 am   
 
I meant to point out that #CW and #COLOR, in this example, are the same. Normally, though, #CW only highlights the pattern you trigger on, while #COLOR always highlights the entire line, no matter how tiny the triggered pattern is.

That's why I used different ones in the two examples, hope it's not confusing :P
Reply with quote
Kurst
Newbie


Joined: 16 Nov 2002
Posts: 4
Location: USA

PostPosted: Sun Nov 17, 2002 5:02 am   
 
Lightbulb your triggers seem to work yet I have yet to see them in action on the Mud.

DemonLlama have a glitch in them when I paste it to my zmud every place where the word your is in mud text turns into the word skill.

Any help please?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Nov 17, 2002 6:45 am   
 
quote:

#SUB Your skill has improved in %1



This should have curly brackets, like this:

#SUB {Your skill has improved in %1}



li'l shmoe of Dragon's Gate MUD
Reply with quote
Kurst
Newbie


Joined: 16 Nov 2002
Posts: 4
Location: USA

PostPosted: Sun Nov 17, 2002 2:37 pm   
 
Matt thanks I'll give it a try so I can change the skill error.
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