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
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Tue Feb 12, 2002 12:53 am   

Variable Classes
 
Im trying to make an alias to open a a class without atually having the class name in the alias...hmmm hard to explain.Example:

#ALIAS {fbot} {group;#T+ blvl@mylvl}

The group command provides the output for @mylvl, and it captures the lvl correctly, but wont enable the class.I reall dont want to have to make a string of ifs for 500 some odd lvls, so if anyone can think of a work around, or maybe fix the syntax for this(tho i dont belive its possible this way, even tho it looked like the variable got expanded, the class did not enable), I would apreciate it.Thanks.
Reply with quote
EdwinDroom
Wanderer


Joined: 25 Jan 2002
Posts: 77
Location: Ireland

PostPosted: Tue Feb 12, 2002 1:17 am   
 
Hmmm - works for me, in 6.26 beta.

Could be type problem - try converting the variable first e.g.
strMyLvl=%concat(blvl, %String(@mylvl))
#T+ strMyLvl

Let us know if it works

All the best freaks are here, please stop staring at me
Reply with quote
dacheeba
Adept


Joined: 29 Oct 2001
Posts: 250

PostPosted: Tue Feb 12, 2002 1:28 am   
 
Hmmm, started working for me also, the problem had something to do with having 'Disable Class when connecting to a Mud' checked.I unchecked its, ran the script, and it worked! Recheck Disable class, and turned it off, ran script again, and it still worked Dont know what happened there

Well, thanks for the confirmation :)
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