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


Joined: 20 Jul 2002
Posts: 2
Location: Australia

PostPosted: Thu Nov 07, 2002 11:51 am   

%db() and Data Records
 
I am having a problem using a Data Record. I am using the Data Record to store a series of "steps" that I want to perform via script. Below are the definition of my variables:

#VAR steps ""

#ADDKEY steps 1 's;e;k man'
#ADDKEY steps 2 's;s;k woman'

#VAR stepnum 1

#ALIAS step %db( @steps, @stepnum)


The problem is that when the "step" is executed, the input is not seperated. It sends "s;e;k man" to the mud, without seperating the line to:
s

e
k man


Is there anyway to seperate this? Now I tried adding a step with a variable (i.e. #ADDKEY steps 3 'l @target'), and the @target variable is substituted correctly. Can anyone point me in the right direction?

Thanks for your help,
-Reave
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Thu Nov 07, 2002 12:19 pm   
 
Use the #EXEC command.
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