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
killunix
Beginner


Joined: 18 Nov 2007
Posts: 28

PostPosted: Sun Jan 24, 2010 12:33 pm   

how can i put the variable in the special class?
 
hi,all.
I need put one variables in the special class such as "job" class, this variable be created buy a alias in th "job" class, In the alias i use
Code:
#VAR ./test1 1234
command to create the variable, but it always be created in the root. sometime in the other window's root.
How can i resolve this question.
My cmud version is cmud pro 2.37
Poor English,hope you can understand what i said.
Thank you very much!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Jan 24, 2010 8:43 pm   
 
change ./ to the specific //module/class/class path to this variable. Or get rid of the ./ and let CMud do the finding.
_________________
EDIT: I didn't like my old signature
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Mon Jan 25, 2010 1:30 pm   
 
You can also specify a classname as one of the parameters to the #var command when creating it:
#VAR varname value defaultval classname
Reply with quote
killunix
Beginner


Joined: 18 Nov 2007
Posts: 28

PostPosted: Tue Jan 26, 2010 7:35 am   
 
thanks you。
i did what you say. it worked well. but sometimes they still be created in the root class. or other module root class.
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