 |
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Fri Oct 25, 2002 8:44 pm
Trigger Assistance please - a toughie? |
Heya! I want a trigger that will only fire once. For example, I want my pets to assist when a word or words appear on the screen. Then, disengage when another word or words appear. However, I want the trigger to fire only once, as once the word appears it will appear several times, but I need the trigger to only go off once. Then, when the battle is over, how do I re-set the trigger? Please help!
Atuk of darkover. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Oct 25, 2002 10:26 pm |
quote:
Heya! I want a trigger that will only fire once. For example, I want my pets to assist when a word or words appear on the screen. Then, disengage when another word or words appear. However, I want the trigger to fire only once, as once the word appears it will appear several times, but I need the trigger to only go off once. Then, when the battle is over, how do I re-set the trigger? Please help!
Atuk of darkover.
#trigger "tPetAssist" {pattern containing the word} {#T- tPetAssist}
#trigger {pattern at end of battle} {#T+ tPetAssist}
li'l shmoe of Dragon's Gate MUD |
|
|
 |
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Sat Oct 26, 2002 6:32 pm |
So, in the edit trigger box:
Pattern:
TN: Atuk TC: 283
Value:
order wolf assist atuk
Then, in another edit trigger box:
Pattern:
EC: awful
Value:
order wolf disen
Please re-explain your program in the above context.
*Atuk slaps self for being dense!*
Cheers,
Atuk. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Oct 26, 2002 6:40 pm |
quote:
So, in the edit trigger box:
Pattern:
TN: Atuk TC: 283
Value:
order wolf assist atuk
Then, in another edit trigger box:
Pattern:
EC: awful
Value:
order wolf disen
Please re-explain your program in the above context.
*Atuk slaps self for being dense!*
Cheers,
Atuk.
The trigger syntax is as follows:
#TRIGGER "trigger name" {trigger pattern} {trigger code to execute} "trigger class"
Given the triggers I gave you, all you need to change is the stuff in blue. The first trigger is the trigger to make your pet assist. The second trigger is to identify the end of the battle so that the assist trigger can be turned on again.
li'l shmoe of Dragon's Gate MUD |
|
|
 |
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Fri Nov 08, 2002 12:12 am |
In the trigger editor, the trigger name and the trigger pattern are the same thing. There is no box for trigger name, and on the trigger list the pattern appears as under then name column. I tried changing the name, but it ended up changing the pattern.
What am I missing?
-Cheers,
Atuk. |
|
|
 |
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Fri Nov 08, 2002 12:40 am |
Now I think I get it. You're comming from entering a program into the blank white box at the bottom, and I've been trying to put stuff in using the editor.
-atuk |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 08, 2002 12:59 am |
quote:
Now I think I get it. You're comming from entering a program into the blank white box at the bottom, and I've been trying to put stuff in using the editor.
-atuk
Yep, but pattern and name are NOT the same thing. Within the Settings Editor, the name of the trigger can be found on the Options tab of the Editor window.
li'l shmoe of Dragon's Gate MUD |
|
|
 |
|
|