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


Joined: 06 Aug 2007
Posts: 5
Location: Las Vegas, Nevada

PostPosted: Mon Aug 20, 2007 12:48 am   

parsing commands stored in variables
 
Hello, I am having a small problem.

As an example:

Code:

#ALIAS send_Test {@Test}
#VAR Test {#WALK tree}
send_Test


sends "#WALK tree" to the mud instead of parsing the #WALK command. How to handle this so that it parses the #WALK command?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Mon Aug 20, 2007 12:57 am   
 
Quotes are internally stored for variables. Every attempt is made for them to be transparent for script purposes. Executing a command from such a variable requires the use of #EXECUTE. Perhaps if you posted an actual script instead of a mock up we could suggest other methods that would take advantage of all the speed improvments CMud has made in recent versions.
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
TheHardCount
Newbie


Joined: 06 Aug 2007
Posts: 5
Location: Las Vegas, Nevada

PostPosted: Mon Aug 20, 2007 1:27 am   
 
Using the #EXECUTE command solved my problem, thank you.
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