|
veek Beginner
Joined: 28 Sep 2006 Posts: 21
|
Posted: Wed Nov 15, 2006 2:44 pm
Commenting code and Importing settings into zMUD. |
How come the docs make no mention of how whitespace is handled and how do i comment code!!
Anyway! I tried something like so:
#CLASS {Blah}
#VAR poo {}
#ALIAS goo {}
#CLASS 0
#CLASS {BlahBlah}
#CLASS 0
and weird things started happening! Code, and i suspect newlines started getting sent to the MUD when i imported my text file. Anyway i fixed it by doing this:
#CLASS {Blah}
#VAR poo {}
;
#ALIAS goo {}
#CLASS 0
;
;
#CLASS {BlahBlah}
;
;
#CLASS 0
1.
Is there a way to avoid peppering my code with idiotic ; Can't i just insert newlines? Also where is the whole whitespace handling and comment thingy documented? Am i doing it right?
2.
Is there a way to delete CLASSES silently. If i have to purge a bunch of classes i have to click gazillion times while it asks stupid questions. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Thu Nov 16, 2006 12:05 am |
1. You can't put blank lines between settings (not only does this likely generate a syntax error, it gets removed or sent to the mud). Technically all your code is contained on one really, really, REALLY long line.
2. Not silently (unless you gag or turn off all messages). Besides doing it from the Settings Editor GUI, there's the #UNCLASS command which generates a message telling you the class was deleted. |
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: Thu Nov 16, 2006 4:47 pm |
2. Or you can make a new class, move all the classes into it, and delete that. only one confirmation box then
|
|
|
|
veek Beginner
Joined: 28 Sep 2006 Posts: 21
|
Posted: Fri Nov 17, 2006 8:02 am |
Thanks Matt and Vitae. Doh! The UNCLASS thing should have occured to me.
|
|
|
|
|
|