 |
Sir1l Wanderer
Joined: 01 Oct 2005 Posts: 54
|
Posted: Mon Jul 24, 2006 7:15 pm
Variables and Classes |
What determines when a new variable is created which class it goes in? I made a trig that captures the hp and everything of a groupmember and puts it all into a variable, but it's putting it in different classes when I want it to be in the "root" class, the default or whatever
|
|
|
|
 |
edb6377 Magician

Joined: 29 Nov 2005 Posts: 482
|
Posted: Mon Jul 24, 2006 7:26 pm |
#VA [variable] [value] [defaultval] [classname]
|
|
_________________ Confucious say "Bugs in Programs need Hammer" |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Mon Jul 24, 2006 9:38 pm |
if you want to ensure creation in the root class, I believe a "" in place of [classname] would suffice. However, if class is not specified then all created settings (not just variables) are created in whatever is the default class at the time of creation. If I recall, the default class is changed every time a #CLASS command is executed. I believe the default changes both in explicitly used commands (ie, #trigger {blah} {#class test}) as well as during execution of aliases, triggers, and other settings.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
|
|
|