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


Joined: 01 Sep 2009
Posts: 7

PostPosted: Tue Sep 01, 2009 8:42 am   

Importing a cfg file into zMUD and how do I comment?
 
Hi,

1. I have something like below in a file that I need to import into zMUD. It breaks because #ALIAS has to be a single line??? Is everything (FUNCTIONS/ALIAS'S) in zMUD, a single line??? Isn't there any way to indent stuff??
2. How do I comment something?

#CLASS Walk
#VA noOfLinesReceived 0
#VA minFlowRate 0.7
#VA waitTime 3000
#REGEX "GrabLine" {^.+$} {#AD noOfLinesReceived 1; #COLOR Yellow; } "" {disable}

#ALIAS Main {
#T+ GrabLine;
#WALK %1;
#SEND brief on;
#WAIT @waitTime;
#WHILE ( @noOfLinesReceived/@time > @minFlowRate) {
#VA time %random(3000, 10000);
#WAIT @time;
#VA noOfLinesReceived 0;
}
#SEND brief off;
#T- GrabLine;
}
#CLASS 0
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Wed Sep 02, 2009 3:38 pm   
 
I've often found the simplest way to do it is to just paste the commands on the command line.

If you specifically want to import from a file, then go to the Settings Editor, the go to File -> Import Text and browse to the file you want to import.

As for indenting zMUD automatically formats the code with a feature called Pretty Print. It sometimes proved to be a double-edged sword in complex scripts.
_________________
Asati di tempari!
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