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


Joined: 13 Aug 2003
Posts: 10

PostPosted: Thu Aug 14, 2003 3:55 am   

can i merge varibales?
 
hi again.

Regarding that visualize act spell from my earlier post...
can i merge 2 varibales together?
one would be for the visualize to be on and the other for the type of viusalize i'm casting
is that possible?
example:
cast visualize act at tonal control
#va spells casting {'viusalize act' %1 %2}
#va visu_type {%1 %2}
#va song_visu %ctime
#va s_visu -and here- visu_type "ON"

that'd return me the exact visualization as ON and not just paste over the last visu i did, if i do more then 1 at a time.

help appreciated!!
thanks
terl
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 14, 2003 4:41 am   
 
Special parameters %-1 through %-99 are also defined which represent the parameter plus all text following it. Thus, %-1 contains all text following the alias.
#AL visu {cast visualize act at %-1
#va casting {'visualize act' %-1}
#va visu_type {%-1}
#va song_visu %ctime
#va s_visu_%remove( " ", %-1) "ON"}
Reply with quote
terl
Beginner


Joined: 13 Aug 2003
Posts: 10

PostPosted: Thu Aug 14, 2003 4:45 am   
 
Hrm,
gave me a syntax error on the last line.
#va s_visu_%remove( " ", %-1) "ON"}
^ syntax error

also can u plz explain what exactly it does, since i need to use the variable in another alias to echo to me the songs i'm currently singing :)

thx
Terl

edit: ok i found the error. :)
if u could just explain exactly what it does, would be great!!
Terl
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 14, 2003 5:22 am   
 
It casts visualize act and makes/updates four variables.
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