 |
paleywiener Newbie
Joined: 01 Sep 2009 Posts: 7
|
Posted: 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 |
|
|
|
 |
Tech GURU

Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
 |
|
|
|