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
Tree
Newbie


Joined: 27 Dec 2011
Posts: 2

PostPosted: Tue Dec 27, 2011 4:01 am   

Alias help
 
okay i'm using cmud version 3.34.

What i am trying to do is create an alias that will change gear. However my gear is constantly changing all the time.. so it will need to be a list of variables. now the variable list is simple to create. The problem i run into is when it expands the items.

#alias manareg remove @boots @ring @helm;wear @mboots @mring @mhelm


returns all the variables expanded but without a space and cause item not found on the mud. How do i retain the space between the variables?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue Dec 27, 2011 4:31 am   
 
Try the %concat function. Something like this:
Code:
#alias manareg {#SEND %concat("remove ", @boots, " ", @ring, " ", @helm);#SEND %concat("wear ", @mboots, " ", @mring, " ", @mhelm)}

Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Dec 27, 2011 11:29 am   
 
Actually, shouldn't need to use %concat.

#SEND {remove @boots @ring @helm}
#SEND {wear @mboots @mring @mhelm}

should work.
Reply with quote
Tree
Newbie


Joined: 27 Dec 2011
Posts: 2

PostPosted: Wed Dec 28, 2011 12:51 am   
 
Thankyou. The #send was exactly what i needed. Nice and short and works great :).
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