chris-74269 Magician
Joined: 23 Nov 2004 Posts: 364
|
Posted: Tue Mar 04, 2008 3:02 am
[2.18] Disappearing Variables |
I've had a problem with variables not updating properly, and some variables that I set (record vars are the ones I usually notice) are deleting themselves after exitting cMUD. I have my packoff off read-only mode, and I have the shared box unchecked(just trying this now to see if I have better results. I wish I could provide some steps to reproduce this, but I'm hoping that maybe somebody else has already encounterred this problem. I tried searching the forums...but I'm not a fan of the new search so I couldnt find anything relevent. Thanks for any help.
alias that my variable isn't working with:
znote add 'blah'
znote delete #
Code: |
#if (%1 = add) {
#addkey notes %eval(%numkeys(@notes)+1) %-2
#EXECWIN notes {#CLR}
#EXECWIN notes {#showdb @notes}
}
#if (%1 = delete) {
#EXECWIN Notes {#CLR}
#SWITCH (%2 = %numkeys(@notes)) {#delkey notes %2} (%2 = all) {notes=""} {#LOOP %2,%eval(%numkeys(@notes)-1) {#addkey notes %i %db(@notes,%eval(%i+1))}
#delkey notes %eval(%numkeys(@notes))}
#EXECWIN Notes {#showdb @notes}
}
|
Notes is not retaining its value after I exit/restart CMUD. Also, there are no other variables named Notes, or any other call to set this variable, no events, ect. |
|