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
veek
Beginner


Joined: 28 Sep 2006
Posts: 21

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: 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
_________________
http://www.Aardwolf.com
Reply with quote
veek
Beginner


Joined: 28 Sep 2006
Posts: 21

PostPosted: Fri Nov 17, 2006 8:02 am   
 
Thanks Matt and Vitae. Doh! The UNCLASS thing should have occured to me.
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