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
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Sat Dec 29, 2007 12:09 am   

Trigger to identify anything uncommon.
 
I want to make a trigger system to recognize only certain things, anything out of those I want it to highlight the items.. Example:

You begin chanting a series of chants.
You continue to chant.
You continue to chant.
Your chant is done, you cast a barrier of fire around yourself.

That would be the normal procedure, but if this happens.

You begin chanting a series of chants.
You continue to chant.
You continue to chant.
You accidentally chant a wrong word. (This being the part I want to make stand out)
Your chant is done, you cast a barrier of fire around yourself.


Another question:

Want to make a capture to pick up only certain events. Examples:

Waylumi: George says, "Darn scripts"
(I want to ignore this, but capture this one)

George says, "Darn scripts"

Basically if it has Waylumi, Guild, Religion, etc I want it to ignore those ones.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Dec 29, 2007 4:39 am   
 
^%w says, ~"*~"

The ^ character matches the beginning of the line.

For your other question, just use a normal trigger:

#trig {You accidentally chant a wrong word.} {#color bold,red}
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Sat Dec 29, 2007 5:25 pm   
 
Well, here's the problem, it has a wide variety of things it can use as a distraction.. I've rarely seen the same one once.
So I'm trying to find something that'll recognize the ones that's always the same, but highlight any difference.
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sat Dec 29, 2007 6:53 pm   
 
If you know every phrase that can occur, you can set it into a variable, then trigger off that. For instance:

Code:
#var whattolookfor {You accidentally chant a wrong word.|You stutter on a word, and fail to cast.|Blah blah blah 1| Blah blah blah 2|blah blah blah3}


Then your trigger would be:

Code:
#TRIGGER {{@whattolookfor}} {#color bold,red}


Hope that helps.

Charneus
Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Sat Dec 29, 2007 7:32 pm   
 
Okay let me see if this rephrases better...
I want the trigger everything sent for whattolook for, if it is not on the what to look for list, I want to make it highlight it.
T
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Sat Dec 29, 2007 7:37 pm   
 
I see. Perhaps this?

#trig {You begin chanting a series of chants.} {#t+ chant}
#cond {Your chant is done} {#t- chant}

#trig "chant" {*} {#if (!%match(%line,"You continue to chant.") {#color red}}
_________________
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