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
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Sat Jan 19, 2002 3:53 am   

Mussed up alarm trigger
 
Anyone have any idea why this won't work?

#trigger {You start resting} {#alarm {+300} {wake}}

Whenever it fires, it makes a new trigger like:

#trigger {+300} {wake}
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jan 19, 2002 4:28 am   
 
That actually is correct. Alarms are a special type of trigger. If you select the options tab for it you see Alarm listed as its type.
Reply with quote
undergod
Wanderer


Joined: 27 Jun 2001
Posts: 82

PostPosted: Sat Jan 19, 2002 4:29 am   
 
Will the {+300} trigger disappear after it fires once?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jan 19, 2002 4:56 am   
 
quote:

Will the {+300} trigger disappear after it fires once?



The problem you're having involves the curly braces around the +300. They're not needed in an #alarm trigger (though I'm not sure if they're harmless or not). If you have a complex expression, you can use the parentheses or use a user-defined function.

EDIT: #TRIGGER triggers don't get deleted (if I recall correctly, temporary triggers use the #TEMP command)

li'l shmoe of Dragon's Gate MUD
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