Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
knuffel
Wanderer


Joined: 12 Jul 2002
Posts: 73

PostPosted: Sun Dec 06, 2009 7:45 am   

How to put some comments in a trigger (or any code for that matter)
 
I must be stupid, but what is the character that put a line in comment.
So it is not parsed but helps explaining what it does ?

E.g.

** The grey stuff will heal.
eat grey smurrie

Thanks.
Boris.

PS. Have been searching for this a while, hence I ask here Embarassed
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Dec 06, 2009 8:18 am   
 
Use // to comment out code.

If you're using lua, use --.

Charneus
Reply with quote
DanteX
Apprentice


Joined: 13 Aug 2007
Posts: 166

PostPosted: Sun Dec 06, 2009 11:56 am   
 
I use

;

at the very beginning of the line
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Dec 06, 2009 6:50 pm   
 
DanteX wrote:
I use

;

at the very beginning of the line


And that's a very unhealthy way of doing things, as ; is used as a command separator and might confuse CMUD as to what you're actually doing.

Charneus
Reply with quote
knuffel
Wanderer


Joined: 12 Jul 2002
Posts: 73

PostPosted: Sun Dec 06, 2009 8:25 pm   
 
Thanks a lot, will give the // a go :-)

Sounds so natural when you say it.

Thanks,
B.

* Getting too old for all the different escape characters :-)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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