|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Thu Oct 31, 2002 8:22 pm
Another trigger question. |
I want a trigger that will do the following:
1. When XXXX sends me a tell message
like Lyth tells you hello, I want a
reply trigger ie: you tell lyth hey man
, or something like that. However, I'd
like the trigger go to off to whomever
sends the tell. How do I do this?
2. I'd like the trigger to go off only once.
How can I do this?
Thansk from your faviorit illiterate Zmud
programmer!
-Atuk |
|
|
|
Hastrom Newbie
Joined: 31 Oct 2002 Posts: 2 Location: USA
|
Posted: Thu Oct 31, 2002 9:30 pm |
well the simplest way I can think of is
Pattern: (%w) tells you
Value: tell %1 heyas
can also randomize what is said back to them but I'm away from Zmud ATM.
I Didn't do it, Noone saw me, Can't prove Anything. :) |
|
|
|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Thu Oct 31, 2002 10:11 pm |
Cool! How can I get it to only go off once?
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Oct 31, 2002 10:17 pm |
Make it a temporary trigger. of course, you will have to re-create it every time it fires whenver you want it to fire again.
Kjata |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Oct 31, 2002 10:20 pm |
You can set up a temporary trigger. Temp triggers only get executed once.
#TEMP {(%w) tells you} {tell %1 hi there}
If you creating this as a botting trigger to ward off IMM, I would also put in a slight delay, to make it seem like you actually typed the message out. So you could do this:
#TEMP {(%w) tells you} {#alarm +3 {tell %1 hi there}}
This will delay the response for 3 seconds, about the time it would take somebody to type it.
As Hastrom suggested, you may also want to add random messages, but that may be more than what your really asking for.
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.34
Zmapper Version 1.10 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 01, 2002 12:37 am |
I'm not really sure if a temp trigger is what he's looking for...I think all he wants is a response trigger that won't keep saying hi to someone every time they try to tell him something. If that's the case, he's probably better off with a regular trigger and a state variable that figures out if the speaker has been greeted already. This will leave the trigger available to act on other tells sent by others.
li'l shmoe of Dragon's Gate MUD |
|
|
|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Fri Nov 01, 2002 2:21 am |
Yes...what Mat Lofton said! :)
-Atuk. |
|
|
|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Fri Nov 01, 2002 2:22 am |
Actually, the temp trigger is good enough for what I need it to do.
Thanks guys!
-Atuk. |
|
|
|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Thu Nov 07, 2002 9:38 pm |
One more thing on this...how can I have the trigger re-set itself?
Cheers,
Atuk |
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Thu Nov 07, 2002 10:05 pm |
What do you mean by re-set itself? I think you need a more complicated system than just a set of simple triggers.
Kjata |
|
|
|
atuk Beginner
Joined: 18 Oct 2002 Posts: 24 Location: Canada
|
Posted: Thu Nov 07, 2002 11:33 pm |
I mean that once it goes off, do I have to make a new trigger for the next time?
Cheers,
Atuk. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Nov 08, 2002 1:11 am |
quote:
I mean that once it goes off, do I have to make a new trigger for the next time?
Cheers,
Atuk.
When using a #TEMP trigger, it either fires once, ever, and deletes itself or it appears as a very literal and permanent trigger somewhere in your settings file. For instance, this temporary trigger:
#temp {%1 says, ~"(%*)~"} {}
will turn into this trigger:
#trigger {Jeff says, ~"Hey, what are you doing tonight?~"} {}
Only one line will ever match that #trigger, so you'll wind up with several triggers that never get matched to anything.
li'l shmoe of Dragon's Gate MUD |
|
|
|
|
|