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
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: Mon Aug 26, 2002 5:45 am   

Rem statement for Zmud triggers?
 
Is it possible to have a remark or comment in the scripting for Zmud? If so what is the syntax?

2nd place just means your a 1st place loser.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Aug 26, 2002 5:50 am   
 
// quote
Or in the settings editor have a ; at the beginning of a line.

View->Preferences->Script Parser

See the check boxes for the comments on the right side.

Ton Diening
Reply with quote
Thunderbuster
Novice


Joined: 07 Nov 2001
Posts: 45
Location: USA

PostPosted: Mon Aug 26, 2002 6:08 am   
 
Thank you much. For some reason the // catches the syntax checker as an error, but the ; did the trick. Both // and ; were selected by default so I am not sure why syntax checker was failing on the // but I will settle for the ;

Thanks again
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Aug 26, 2002 6:20 am   
 
Heh. // doesn't work at the begining of a line only after things

You can always
#NOOP Comment here.

Ton Diening
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Mon Aug 26, 2002 10:18 pm   
 
quote:

Thank you much. For some reason the // catches the syntax checker as an error, but the ; did the trick. Both // and ; were selected by default so I am not sure why syntax checker was failing on the // but I will settle for the ;

Thanks again



Also, you can't do comments within code-blocks:



;this comment is a-ok with the syntax-checker
#if (some condition) {
do some commands
} {
;this annoys the syntax checker
do some other commands
} //so is this comment


li'l shmoe of Dragon's Gate MUD
Reply with quote
Zafrusteria
Wanderer


Joined: 11 Oct 2000
Posts: 94
Location: United Kingdom

PostPosted: Tue Aug 27, 2002 9:35 am   
 
Do not use ; as a comment if you intend to export your setting as a form of backup.
When you import them the comment ; is taken as a line seperator and can screw up your trigger.

This was reported to zugg about a year ago, I was basicaly told to live with it. All to do with keeping zmud compatable with tintin *boggle*

use this instead
#noop a comment can be put in here

If you want to comment out some code when debugging scripts you have to put any lines with commands ie #if, #Var etc in quotes "#if blah blah", this is to get round an bug in the syntax checker in zMud.




Zaf
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