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
CrazyKid
Beginner


Joined: 28 Mar 2001
Posts: 27

PostPosted: Wed Jul 17, 2002 3:38 am   

Really simple.. Trigger on anything sent to mud?
 
Can i cause an event to trigger if i type ANYTHING (or nothing) and hit enter?

Basicly to detect when i'm 'back' to my computer. Thanks!
-Matt
Reply with quote
Evangelist
Adept


Joined: 10 Oct 2000
Posts: 224
Location: USA

PostPosted: Wed Jul 17, 2002 7:41 am   
 
First, I don't see why you would want to do that. I mean, if you type something, don't you know that you are back? As far as triggering something on ANYTHING, you could use %w* among many many others. But, if you want it triggered on anything, it will be repetative. So say, if you made the trigger fire on %w*, and wanted to #ECHO I Am Back, it will fire fine, but will fire on every line, then fire again as the I Am Back is displayed. You need something set to turn it on and off.

Some muds say like You are no longer AFK. But you have to type afk first :)

If you had something to start the trigger, and turn it on, it might be possible.

Try this, before you go away from your computer.

Make an alias called Away that will do #ECHO I Am Away
Make another alias called Back that will do #ECHO I Am Back
Have a trigger fire on the pattern I Am Back

That is all I can think of but it still boggles me why you would want a trigger to tell yourself why you are back.

Evangelist
www.phidar.com
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Jul 17, 2002 11:05 am   
 
I think CrazyKid is thinking in terms of an AFK script that will turn off automatically when he starts typing again.

The best thing for this is #ONINPUT

Something like

#CLASS {AFK} {disable}
#TRIGGER {^(%w) tells you '%*'$} {tell %1 I am currently AFK}
#ONINPUT {^%*$} {#T- AFK;#SAY No longer AFK}
#CLASS 0
#ALIAS afk {#T+ AFK;#SAY Going AFK;#NOOP}



 - Charbal
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