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
Zafrusteria
Wanderer


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Sun Jul 27, 2003 10:53 am   

turning on/off nested classes
 
Hi

How do you turn on/off a class that is a nested class.

So normally you use #T+ <class name> and #T- <class name> to toggle the class on and off,
what is the syntax for a nested class?

Example:
top class is Class1 with a nested or subclass called Sub1.
#T+ <what goes here> to toggle just Sub1?

Zaf
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Jul 27, 2003 5:20 pm   
 
zMud will find the class you mean wherever it is, so no special syntax is needed. The only time you would have to use any extra syntax is if you have 2 or more classes with the same name. Example:

#CLASS abc
#CLASS 0
#CLASS abc|def
#CLASS 0
#CLASS def
#CLASS 0
Now there are 2 different def classes. You would use the class character to differentiate them
#T- ./def
#T- ./abc/def
Reply with quote
Zafrusteria
Wanderer


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Mon Jul 28, 2003 7:38 pm   
 
The only problem is when you save the alias the ./ is removed from #T- ./def and the ./abc/ is removed from #T- ./abc/def so you end up with

#T- def
#T- def

I'll raise this as a bug with Zugg. :-(
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Mon Jul 28, 2003 11:57 pm   
 
#AL temp1 {#T- abc|def}
#AL temp2 {#T- def}
#AL temp3 {#T- .|def}
#AL temp4 {#T- .|abc|def}

Pick the ones you want. I haven't tested the . syntax, so I don't know what effect it will have, but it does save.
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