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


Joined: 20 Apr 2008
Posts: 69
Location: Watervliet, NY

PostPosted: Mon Jan 19, 2015 9:45 am   

#ALARM Does nothing?
 
When I input the following command, absolutely nothing happens. It is as though I didn't put anything through the command line. Any ideas?

#alarm {+1} {#ECHO HELLO}

Code:
0.0069 |
0.0109 | l   Aetolia |    Trigger "_Alarm17" compiled (Pattern) : +1.5
0.0040 | d   Aetolia |  [4] Aetolia Comline : stopped
1.5056 | f   Aetolia |  Alarm: +1.5
0.0047 | l   Aetolia |  Trigger "_Alarm17" compiled (Pattern) : +1.5
0.0042 | l   Aetolia |  Trigger "_Alarm17" compiled (Normal) : #ECHO HELLO
0.0041 | a   Aetolia |ERROR: Trigger "+1.5" fired but did not compile
0.0001 |


Output from the debugging window.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Mon Jan 19, 2015 11:48 am   
 
dont put the time parameter in brackets
_________________
Discord: Shalimarwildcat
Reply with quote
Stowslee
Wanderer


Joined: 20 Apr 2008
Posts: 69
Location: Watervliet, NY

PostPosted: Wed Jan 21, 2015 11:21 am   
 
Interesting, I have always utilized the brackets when using #ALARM. Is this something that is incorrect with the documentation?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Wed Jan 21, 2015 11:30 am   
 
its the only thing different from the syntax i use, other then making use of the id field
_________________
Discord: Shalimarwildcat
Reply with quote
chris123zugg
Apprentice


Joined: 23 Aug 2013
Posts: 175

PostPosted: Wed Feb 18, 2015 5:01 am   
 
#ala "nameofalarm" {+1} {command(s)} {class|class|class|class|class}

works 100% of time... and thats for a one time alarm, for a permanent one, use {numberoftime} instead of {+numberoftime}
Reply with quote
apfinger
Novice


Joined: 19 Nov 2006
Posts: 40

PostPosted: Wed Feb 25, 2015 7:45 am   
 
#ALARM {+@stunDelay} { #EXEC %db(@stunInfo, type) }

works for me in my stun loop triggers

I ran #alarm {+1} {#ECHO HELLO}

got the expected successful result.

In your debug, it appears you are running #alarm {+1.5} {#ECHO HELLO}

I don't think decimals are eligible numbers for the alarm time.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Wed Feb 25, 2015 12:09 pm   
 
From the help files:

A normal alarm cannot match a time smaller than or equal to half a second, so the fastest-repeating alarm you could have would be #alarm 0.501 {commands}. These restrictions don't apply to one-time alarms. The smallest unit of time you can use is a millisecond.

So the decimal is not the issue.

Try creating the alarm in a blank package (just hit escape from the session selection window).
It won't save, but it will let you see if the issue is specific to the one package or not.
This will let us rule out a corrupted package file.

Otherwise... you may need to export to XML and start over with a fresh session.
Importing the XML on a new package file might be enough to fix it, but you may have to start over.
_________________
Discord: Shalimarwildcat
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