|
knuffel Wanderer
Joined: 12 Jul 2002 Posts: 73
|
Posted: 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 |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Dec 06, 2009 8:18 am |
Use // to comment out code.
If you're using lua, use --.
Charneus |
|
|
|
DanteX Apprentice
Joined: 13 Aug 2007 Posts: 166
|
Posted: Sun Dec 06, 2009 11:56 am |
I use
;
at the very beginning of the line |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
knuffel Wanderer
Joined: 12 Jul 2002 Posts: 73
|
Posted: 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 :-) |
|
|
|
|
|