Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Wed Feb 04, 2009 10:23 pm   

Differentiating Input [Solved?]
 
I'm looking for a way to make a timer trigger, but I need to know how to tell the difference between trigger input and my input. What I want to do is make a trigger that, every X minutes, asks if I am still there. This is because I have a lot of auto triggers that will keep my logged in and not voiding, though that's not their intention. When I'm at the keyboard but multi-tasking, this is awesome. Last night, however, I fell asleep and forgot to log out, I was penned. And so I realized that I needed a way to make sure I was really there, or otherwise log out. However, since my triggers send input, simply working it from oninput would still lead me to the same issue since each trigger would reset the timer.

Is there anything I can do?
_________________
Listen to my Guitar - If you like it, listen to more

Last edited by chamenas on Thu Feb 05, 2009 2:03 am; edited 1 time in total
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Wed Feb 04, 2009 10:56 pm   
 
Short answer: no

Long answer: yes, make it based on something that the triggers don't send, either by compiling a list of things that your triggers might do and triggering on anything that isn't on that list, or by requiring a specific input from you, like "dzfjartfg".
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Feb 05, 2009 2:02 am   
 
Thanks.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Thu Feb 05, 2009 2:03 am   
 
Why not have an alarm do #PROMPT to ask you if your still there and if you don't respond then log you out? You should be able to use an #ONINPUT trigger to reset it.

Another approach is to set a very long Tick Timer, use #ONINPUT to call #TSET to keep it high when you entering from the command line. And you can have the Timer command disconnect directly if it runs out, or at do the prompt.
_________________
Asati di tempari!
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Thu Feb 05, 2009 3:13 pm   
 
I can do those, certainly. I was just hoping to have it reset whenever I put in input. But, if I did that, then it would also fire for triggers.
_________________
Listen to my Guitar - If you like it, listen to more
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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