|
jarda128 Beginner
Joined: 10 Jan 2004 Posts: 28
|
Posted: 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 |
|
|
|
jarda128 Beginner
Joined: 10 Jan 2004 Posts: 28
|
Posted: 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.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|