|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat Nov 25, 2006 7:31 am |
So it's working now?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|