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
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 25, 2006 6:52 am   

[1.16]#T- disabling wrong setting
 
Roundtime package
#variable RT 0
#trigger {Roundtime: (%d) sec.} {RT = %1;#T+ tRTAlarm}
#alarm "tRTAlarm" {*1} {#if (@RT) {#add RT -1} {#t- tRTAlarm}}

Main (Dragonrealms) package
#status "CharStatus" {%trim(%gsl.P) %if(@Roundtime/RT > 0,%ansi(red,bold)@Roundtime/RT seconds,%ansi(green,bold)">")}

If the Roundtime package contents are moved to the main package, it works perfectly. Once I move them to Roundtime, the variable updates but the alarm is never enabled. If I then manually enable the alarm the script continues to execute along proper lines until RT = 0, at which point the Roundtime: (%d) sec. trigger is disabled rather than the tRTAlarm trigger I specified.

Am I doing something wrong, or is this another bug?

EDIT: yep, I was doing something wrong. Forgot to destroy my old package files, though since they didn't actually have anything but preferences and defaults in them I didn't think they needed to be.
_________________
EDIT: I didn't like my old signature
Reply with quote
Zugg
MASTER


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

PostPosted: Sat Nov 25, 2006 7:31 am   
 
So it's working now?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Nov 25, 2006 8:06 am   
 
Yep, all's well. The fixes you make are becoming about as subtle as the bugs they're squashing.
_________________
EDIT: I didn't like my old signature
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