Command: Difference between revisions

From Wiki of ZZT
Jump to navigation Jump to search
Asie (talk | contribs)
Created page with "ZZT-OOP lines starting with <code>#</code> are treated as commands. The ZZT-OOP interpreter has a maximum number of commands which will be processed during a cycle; after the '''33.''' (thirty-third) command is processed, execution will stop and continue only on the next cycle. This limit does not apply to other types of lines, such as message text or comments. == Quirks == * For commands which are executed as part of another command (such as [[If|#if]..."
 
Asie (talk | contribs)
No edit summary
 
Line 8: Line 8:
** These additional commands count towards the limit of processed commands, but execution will not stop before such a command.
** These additional commands count towards the limit of processed commands, but execution will not stop before such a command.
* Text placed after ZZT-OOP commands may be ignored in a manner similar to comments, due to how the interpreter parses code lines.
* Text placed after ZZT-OOP commands may be ignored in a manner similar to comments, due to how the interpreter parses code lines.
{{ZZT-OOP navbox}}

Latest revision as of 08:56, 24 December 2025

ZZT-OOP lines starting with # are treated as commands.

The ZZT-OOP interpreter has a maximum number of commands which will be processed during a cycle; after the 33. (thirty-third) command is processed, execution will stop and continue only on the next cycle. This limit does not apply to other types of lines, such as message text or comments.

Quirks

  • For commands which are executed as part of another command (such as #if or #take), the # may be omitted.
    • These additional commands count towards the limit of processed commands, but execution will not stop before such a command.
  • Text placed after ZZT-OOP commands may be ignored in a manner similar to comments, due to how the interpreter parses code lines.