About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
austin
Beginner


Joined: 07 Dec 2006
Posts: 16

PostPosted: Thu Dec 07, 2006 10:08 pm   

[1.20] timer
 
The timer does not appear to be working:


* HP:Healthy MV:Fresh > Tick timer disabled.
Tick timer enabled.
Tick in 180 secs
Tick in 180 secs
Tick in 180 secs
Tick in 180 secs
Tick in 180 secs
Tick timer disabled.
Tick timer enabled.
Tick in 180 secs
Tick in 180 secs
Tick in 180 secs

Calhar chats 'anyone close to WB ?'
* HP:Healthy MV:Fresh > Tick in 180 secs
Tick in 180 secs
Tick in 180 secs
Tick in 180 secs

Daron narrates 'He was so crit.'
* HP:Healthy MV:Fresh > Tick in 180 secs
Tick in 180 secs
Tick in 180 secs

Chrystina chats 'bye all :)'
* HP:Healthy MV:Fresh > Tick in 180 secs
Tick in 180 secs
Tick in 180 secs


Also I can't find the syntax for how to use the optional parameters for the #TIMER command. If I want to change the command, would I do something like: #TI {} {newcommand} {} {}


It would be a cool feature to be able to create multiple timers. I've seen this feature in other mud clients. For example:

#TIMER {timername} {interval} {action}
#TIMERON {timername}
#TIMEROFF {timername}

Or something like that.
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Dec 07, 2006 10:18 pm   
 
Multiple timers are usually created using the #alarm command, which is very versatile and can probably do whatever you want to use timers for. You can use #t+ and #t- to enable or disable a specific alarm. Here is the help for #timer, and here for #alarm.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
austin
Beginner


Joined: 07 Dec 2006
Posts: 16

PostPosted: Thu Dec 07, 2006 10:50 pm   
 
The timer is working now for me after CMUD crashed and I had to restart it. One thing that might have been involved was that I'm not sure I had the tick timer checkbox checked in the Preferences window when I first tried to use #timer.

Thanks for the tip about #alarm. I was unaware of it.

By the way, I'm still confused about how CMUD handles optional parameters. For example with the #timer command, the help file lists [timer-state command message-flag margin] as optional commands. So if I type:
#timer save
or
#timer 1
How does CMUD know which parameter I'm trying to set? Does it automatically assume I'm trying to set the first one, timer-state? What if I only want to change the second parameter? Can I do something like #timer {} {save} ?
Reply with quote
Fang Xianfu
GURU


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

PostPosted: Thu Dec 07, 2006 11:10 pm   
 
I think the timer command is an exception to these - it either expects no parameters (to toggle the tick timer) or a full set (to set up the tick timer for the first time). It's not really meant to do dynamic things, I don't think - that's the reason alarms were created.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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