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


Joined: 11 May 2002
Posts: 13
Location: Slovakia

PostPosted: Sat May 11, 2002 6:37 pm   

Clueless on #ALARM
 
Greetings, I have the following situation: I set trigger to look for a certain sentence. When this is triggered, an #ALARM trigger is (supposed to be) set, which should execute itself 10mins after this. This is how my starting trigger looks like (could most likely be written simplier):

#VAR tmp2 %time( "hh")
#MATH tmp 10+%time( "nn")
#IF (@tmp>59) {
#MATH tmp @tmp-60
#ADD tmp2 1
}
#IF (@tmp2>23) {#VAR tmp2 0}
#VAR tmp2 +@tmp2:@tmp:%time( "ss")
#ALARM @tmp2 {#ECHO TEST}

So, I'm using RL time +10 mins as the pattern for the #ALARM (also making sure it won't produce weird time like 69 min). All works fine until the #ALARM command, which (for whatever reason) sets "@tmp2" as the pattern instead of the string that is stored in it.
Help?
Reply with quote
Gandorf
Novice


Joined: 28 Oct 2000
Posts: 38
Location: Sweden

PostPosted: Sat May 11, 2002 7:39 pm   
 
I might be wrong but wouldn't it be simply to do it like this

#tr {the sentence you would like triggered} {#alarm +10:00 {#ECHO TEST}}

Out in the night they laugh about me and my knowledge
Reply with quote
Silvayn
Beginner


Joined: 11 May 2002
Posts: 13
Location: Slovakia

PostPosted: Sun May 12, 2002 10:16 am   
 
Unfortunatelly, this didn't work. For whatever reason, the TEST message appeared 1 or 2 seconds after the triggering sentence appeared. Maybe I have just configured something in the wrong way but I can't find out what.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun May 12, 2002 3:16 pm   
 
First, clear out all your old alarms.
Then use
#TR {the sentence you would like triggered} {#ALArm (+600) {#ECHO TEST}}
It appears that the + syntax only works with seconds.



LightBulb
Vague questions get vague answers
Reply with quote
Silvayn
Beginner


Joined: 11 May 2002
Posts: 13
Location: Slovakia

PostPosted: Tue May 14, 2002 12:47 am   
 
Many thanks! This worked :)
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