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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Sir1l
Wanderer


Joined: 01 Oct 2005
Posts: 54

PostPosted: 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
Reply with quote
edb6377
Magician


Joined: 29 Nov 2005
Posts: 482

PostPosted: Mon Jul 24, 2006 7:26 pm   
 
#VA [variable] [value] [defaultval] [classname]
_________________
Confucious say "Bugs in Programs need Hammer"
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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