Can you add comments to scripts?

Discussions about scenario games and user-defined scripts.
Post Reply
User avatar
Stylesjl
Community Contributor
Community Contributor
Posts: 274
Joined: Sun Oct 29, 2023 4:01 am
Location: Sydney, Australia
Has thanked: 2 times
Been thanked: 13 times

Can you add comments to scripts?

Post by Stylesjl »

Is it possible to add comment lines in scripts? I can't see anything in the script documentation which allows for lines that are ignored by the script reader.
User avatar
Stylesjl
Community Contributor
Community Contributor
Posts: 274
Joined: Sun Oct 29, 2023 4:01 am
Location: Sydney, Australia
Has thanked: 2 times
Been thanked: 13 times

Re: Can you add comments to scripts?

Post by Stylesjl »

Actually never mind, I found it:

You can add a \\ at the start of the line:

\\Will be ignored
Will cause an error
User avatar
cantdownloadit
Community Contributor
Community Contributor
Posts: 654
Joined: Sat Aug 30, 2014 12:14 pm
Has thanked: 5 times
Been thanked: 11 times

Re: Can you add comments to scripts?

Post by cantdownloadit »

the new ones appear in so many different places in the forums, it would be nice to have a pinned post in this channel with every possible value and what they did, I know most of them are on the website on different pages, but all on one page would be easier for searching and the like.
Post Reply