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


Joined: 10 Jan 2004
Posts: 28

PostPosted: Tue Sep 04, 2007 12:49 am   

how use content of variable in path name of the class ?
 
i wish to have class weapons and many subclasses with weapon names.weapon name would be extracated from combat messages on my mud and stored in variable CurrentWeapon and now i want to increment variable ItemCount in subclass named after currentweapon.But i dont know how to create subclass from variable content.Is that somehow possible ??? example:
CurrentWeapon="Steel flail" i want to create subclass in weapons named steel flail but i donk know how to force cmud to expand variable in class name.can it be done somehow ???
thank you in advance for any response
Reply with quote
jarda128
Beginner


Joined: 10 Jan 2004
Posts: 28

PostPosted: Tue Sep 04, 2007 12:53 am   
 
btw cmud 1.34 works on czech windows again it was that corrupted compiler bug which was fixed in 1.34 that caused malfunction on some systems.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Tue Sep 04, 2007 1:20 am   
 
Something like this:
Code:
#class %concat("weapons/",@CurrentWeapon) 1

will create and enable the class that you want.
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