Skip to content

Script Flags

Thomas Weber edited this page Aug 29, 2020 · 10 revisions

TurboWarp lets you control how your scripts are compiled through "Script Flags". These are comments attached to the hat block of a script that start with tw.

This is what they look like:

tw stuck

  • The comment must start with tw followed by a space.
  • Right now, the tw must be the first line of the comment.
  • It must be attached to the hat block of a script, for example "when green flag clicked" or "define procedure". Adding it to the first block in the script or any other block in the script will not work.

tw stuck

Adding this comment to a script will make it use stuck checking regardless of whether the stuck checking global option is enabled or not.

tw nocompile

Adding this comment to a script will cause it to not be compiled.

When one procedure used by a script cannot be compiled, the entire script will not be compiled.

Clone this wiki locally