|
Thunderbuster Novice
Joined: 07 Nov 2001 Posts: 45 Location: USA
|
Posted: 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. |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
Thunderbuster Novice
Joined: 07 Nov 2001 Posts: 45 Location: USA
|
Posted: 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 |
|
|
|
TonDiening GURU
Joined: 26 Jul 2001 Posts: 1958 Location: Canada
|
Posted: 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 |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Zafrusteria Wanderer
Joined: 11 Oct 2000 Posts: 94 Location: United Kingdom
|
Posted: 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 |
|
|
|
|
|