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
slicertool
Magician


Joined: 09 Oct 2003
Posts: 459
Location: USA

PostPosted: Sun Nov 12, 2006 11:10 am   

[1.15] Status bar doesn't update actively with %alarm()
 
If I create a status bar as follows:

Code:
#ST {hp: @hppercent% cash: @cash exp: @exp | exp change: @expchange | smug: @pillvl jedi: @jedilvl dip: @diplvl | idle: %eval( 59 - %eval( %alarm( snooze)/ 60000))m %eval( 59 - %eval( %mod( %alarm( snooze), 60000)/1000))s}




The status bar only updates whenever a full variable from the status bar updates and not constantly for the alarms. This same status bar works fine in zMud.
_________________
Ichthus on SWmud: http://www.swmud.org/
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Nov 13, 2006 8:07 pm   
 
That is correct. In zMUD, buttons and status bars were updated whenever *anything* changed, and also by a background timer. CMUD has a "smarter" updater that only updates when a variable that is actually used in the status bar changes.

What you'll need to do if you want the status bar to update every second is to create an alarm that changes a variable used in the status bar.

For example, something like this:

#ALARM *1 {#VAR timer %alarm(snooze)}

and then use @timer in your status bar instead of calling %alarm directly.
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