|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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} |
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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 |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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}} |
|
|
|
|
|