Inserting comments/remarks in scripts

Asked by Sean Gillette

I'm getting ready to write my first script and was wondering if there was a way to insert comments or remarks that are ignored by Nightshade, but provide me with an outline of what I want the script to do?

Question information

Language:
English Edit question
Status:
Solved
For:
Nightshade Legacy Edit question
Assignee:
No assignee Edit question
Solved by:
Lionel RUIZ
Solved:
Last query:
Last reply:
Revision history for this message
Best Lionel RUIZ (astro2kpremium) said :
#1

Hello,

Yes there's a simple way to do that by putting a # sign in front of the comment line.

Example:

#Wait one hour of sky time
timerate rate 360
wait duration 10
# Go back to a normal flow of time
timerate rate 1
# wait until the K key is pressed
script action pause

Good scripting!

And don't forget that there's a upcoming scripting challenge:
http://www.lss-planetariums.info/index.php?lang=en&menu=compendium&page=compendium2011

Lionel RUIZ

Revision history for this message
Sean Gillette (spgillette) said :
#2

Thanks Lionel RUIZ, that solved my question.