FANDOM


Scripts are somewhat difficult to debug, since they do not have a fully fledged IDE keeping up to date on all the variables that exist. There are things you can do however to help you identify what's going on.

Print Edit

The following example demonstrates a way of printing out what a particular variable is.

print(triggerer);

This makes use of (abuses) the engine's warningList feature to send you information in a separate box. In this example, triggerer can be anything, text, an entity, an instruction.. it will print the input's toString() method if available.

More methods of debugging to come!

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.