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


Joined: 30 Jul 2009
Posts: 11

PostPosted: Fri Aug 20, 2010 5:29 pm   

Alias using a Varible
 
Ok, I know this should be easy, but I am having problems with getting it to work. So you guys will ge a chuckle, I will hopefully get the answer :P

I have a simple alias to open a fight, K. Varible openatk=dirt

when I type K, I want this to happen:

@openatk %1 (dirt mob)

What I get is: dirtmob

Any idea why it is not leaving the space?

I have other triggers and aliases that have a Varible in them, but not leading off. They seem to work fine.
Reply with quote
Ithilion
Wanderer


Joined: 02 Sep 2005
Posts: 85

PostPosted: Fri Aug 20, 2010 11:14 pm   
 
Code:
#EXEC {@openatk %1}
should fix that.

if not, it's a problem with preferences or parsing or somesuch..
Reply with quote
Rtoo
Beginner


Joined: 30 Jul 2009
Posts: 11

PostPosted: Wed Aug 25, 2010 5:41 am   
 
It fixed it :)
Reply with quote
chamenas
Wizard


Joined: 26 Mar 2008
Posts: 1547

PostPosted: Fri Aug 27, 2010 2:09 pm   
 
#send %concat(@openatk, " ", %1)

should be a tiny bit more efficient, I believe.
_________________
Listen to my Guitar - If you like it, listen to more
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