 |
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Sat Mar 12, 2005 3:18 pm
Trigger Priority? |
Is there a way to make one trigger more imporant / trigger before another trigger? I have 20 or so triggers to make up a script, and I need to be able to make one trigger activate before another one.. Is this possible? It doesn't usually happen, but when it does it isn't happening fast enough to switch the flow of the script, and it's messing me up.. any help?
|
|
|
|
 |
Aarlot Adept

Joined: 30 Dec 2003 Posts: 226
|
Posted: Sat Mar 12, 2005 4:55 pm |
One thing you can do is change the order the triggers are listed in settings. They fire in the order they are listed. If you can't change this, I would suggest looking at the #PRIORITY command.
|
|
_________________ Everyone is entitled to their beliefs - until they die. Then only the truth matters. |
|
|
 |
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Sat Mar 12, 2005 7:00 pm |
I've tried drag & dropping the triggers to a different order, but that doesn't do anything. The only way I managed to change the order is by changing how they're listed (no sort, alphabetical, etc) but it didn't fix anything. How would I use #pri ? The help file isn't very explanatory. do I use #PRI instead of #TR?
|
|
|
|
 |
Dharkael Enchanter

Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sat Mar 12, 2005 7:52 pm |
combine all the triggers into a multistate trigger and use reparse
something like this
| Code: |
#CLASS {REP}
#TRIGGER {*} {}
#COND {^You sense that *$} {#echo 1} {reparse}
#COND {^You sense that bob {is|are} fully healed.} {#echo 2} {reparse}
#COND {Some other pattern} {#echo 3} {reparse}
#COND {^You sense that bob {is|are} fully healed.} {#echo 4} {reparse}
#CLASS 0 |
In this example if on a new line you recieve:
You sense that bob is fully healed.
it echos 1,2 and 4 each on a new line
if you recieve:
Some other pattern
it echos 3
The first trigger is just an empty catch all trigger to make sure all the triggers have a chance to fire.
One downfall with this is that you cant enable or disable specific sub triggers, you have to enable or disable all of them. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
 |
Dharkael Enchanter

Joined: 05 Mar 2003 Posts: 593 Location: Canada
|
Posted: Sat Mar 12, 2005 8:15 pm |
hmm on second glance I think Aarlot had the right idea, change the sort to none.
Then highlight a trigger and use the Up and Down buttons to sort them in the order you want them to fire.
The Up and Down buttons on the menu not the keys. |
|
_________________ -Dharkael-
"No matter how subtle the wizard, a knife between the shoulder blades will seriously cramp his style." |
|
|
 |
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Sat Mar 12, 2005 8:29 pm |
problem is, I don't see any up/down arrows.
|
|
|
|
 |
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Sat Mar 12, 2005 8:31 pm |
nevermind.. I see the buttons now. but it's still not working. Still doesn't fire properly.
|
|
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Mar 12, 2005 8:41 pm |
Trigger processing time also plays a part. If you have two triggers depending on each other, then it's possible the timing will get messed up as one trigger fires and completes before the other one can fire and complete.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|
|