|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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? |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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' |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4715 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
ToyMage Apprentice
Joined: 01 Sep 2005 Posts: 120
|
Posted: 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! |
|
|
|
|
|