Scripting:TWBaseScript

Building pieces of another world.
Revision as of 16:41, 19 June 2020 by gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs) (Created page with "All scripts provided by TWScript are derived from this base script. This base script provides one directive that the FM maker may include in the <code>Editor -> Design Note</c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

All scripts provided by TWScript are derived from this base script. This base script provides one directive that the FM maker may include in the Editor -> Design Note for any object that uses a TWScript script:

[ScriptName]Debug
Type: [[1]]
All scripts derived from TWBaseScript can have debugging output enabled by setting this parameter to a true value. Output goes to the DromEd Monolog window, and the information printed depends on the script being debugged. This defaults to false, and while you can leave debugging enabled when releasing your level, you may get small performance improvements by ensuring that debugging is turned off before release.
Example: TWTrapSetSpeedDebug=true


Authors

  • gravatar The Watcher [userbureaucratsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+]