Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Sun May 26, 2019 2:50 am   

Class duplicated?
 
For some reasons when I run the below trigger.. lots of variable gets duplicated in the SpeedStatusON and SpeedStatusOFF folder...

You focus your mind.
#CLASS SpeedStatusOn 1
#CLASS SpeedStatusOff 0

You relax your mind
#CLASS SpeedStatusOn 0
#CLASS SpeedStatusOff 1

Any idea why?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Sun May 26, 2019 12:41 pm   
 
If the class so disabled houses the variables, and something tries to redefine them before it gets turned back on, it is forced to create a new instance of the variable as the current one is also disabled.
_________________
Discord: Shalimarwildcat
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue May 28, 2019 7:10 am   
 
"If the class so disabled houses the variables"

hmm nope.. all my variable in held in a class call "variables"

i kind of solve the issue by renaming all my variables "#VAR ./Variables/VariableName'
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4671
Location: Pensacola, FL, USA

PostPosted: Tue May 28, 2019 3:04 pm   
 
Oh, how silly of me, that is the intended function.
All settings declared between a #CLASS 1 and a #CLASS 0 are rerouted to the named class.

Are you trying to toggle said class on and off, if so, that is the wrong syntax.

#T+ ClassName
is on

#T- Classname
is off
_________________
Discord: Shalimarwildcat
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Thu May 30, 2019 2:33 pm   
 
"All settings declared between a #CLASS 1 and a #CLASS 0 are rerouted to the named class. "

oo.. i got it right now!
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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