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
a157n
Newbie


Joined: 02 Jun 2010
Posts: 2

PostPosted: Thu Jul 22, 2010 5:22 pm   

Help w/ Respawn timer
 
I was wondering if there's a way to create a respawn timer that shows a countdown to a zone respawn?

The way I have it right now I just use #alarm to echo a message when the zone is about to respawn. But what I'm looking for is something similiar to the tick timer.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Fri Jul 23, 2010 12:09 pm   
 
You can use #ALARM to send a message every minute, or whatever. You could have the #ALARM set a #STATUS, which will appear in the status bar above the command line, or #STWIN to have it appear in the status window.
Reply with quote
a157n
Newbie


Joined: 02 Jun 2010
Posts: 2

PostPosted: Fri Jul 23, 2010 7:44 pm   
 
If I'm understanding you right I should use.

#alarm "respawn" {+20} {#ECHO Fired.}
#st %alarm(respawn)

How do I get the status to refresh? Do i have to set a repeating alarm to refresh it every X seconds or minutes?

On a side note, is there a way to do #math with %time?
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Aug 02, 2010 1:44 pm   
 
Sorry, I was away on vacation for a week.

The status bar or status window will automatically refresh when the variable which it refers to changes.

You could use a repeating alarm, or create a new alarm each time.

Unfortunately, Cmud does not have any built-in functions for doing math with time values.
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