|
slicertool Magician
Joined: 09 Oct 2003 Posts: 459 Location: USA
|
Posted: 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. |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|