Changes

Jump to navigation Jump to search
m
Updated comments section to explain that comments can't be added between the first three event commands.
Line 644: Line 644:     
===Comments===
 
===Comments===
A command which begins with <code>--</code> is ignored. This can be used to insert comments or to disable commands temporarily while debugging an event. The comment ends at the next slash delimiter (<code>/</code>), so it can't contain slashes.
+
A command which begins with <code>--</code> is ignored. This can be used to insert comments or to disable commands temporarily while debugging an event. The comment ends at the next slash delimiter (<code>/</code>), so it can't contain slashes. Comments cannot be added between the first three commands (music, viewport coordinates, character setup). This means you can't add a comment after the music or viewport coordinates commands, but you can add a comment after character setup.
    
For example:
 
For example:
 
<syntaxhighlight lang="js">
 
<syntaxhighlight lang="js">
"666/": "none/-1000 -1000/farmer 5 7 0/skippable/viewport 5 7 10/--set viewport near door/pause 2000/end"
+
"666/": "none/-1000 -1000/farmer 5 7 0/--you can add comments from here/skippable/viewport 5 7 10/--set viewport near door/pause 2000/end"
 
</syntaxHighlight>
 
</syntaxHighlight>
  
7

edits

Navigation menu