If you ever wanted to use linting in your text editor but do not like the fact the every TheoTown global is linted as an warning, I got the plugin for you!
This plugin will let Luacheck identify all the TheoTown specific globals.
Installation
First you would have to download Luacheck found here: https://github.com/mpeterv/luacheck
follow the instructions there to install Luacheck onto your device. If you have any trouble with installing ask me!
Windows/Linux/Mac only!
Implementation
This plugin is basically a config file that contains all TheoTown globals inside (i.e. those that were listed on the Reference).
Download the zip file provided below and extract the ".luacheckrc" file from it.
The placement of the file should be in the plugin folder of the TheoTown folder (assuming that you will develop plugins from there).
If for some reason you develop your plugins in your Downloads folder put it in there.
downloaded the file but it doesn't appear?
If you downloaded the file but you can't find it, it's because the file starts with a "." which means it hidden. You would need to
enable the "show hidden files" option on your file explorer.
Without this plugin: Edit: ignore the local house mistake
With this plugin: Download
Download from here:
Found a bug?
All the globals were manually typed and I would be lying if I told you I checked every global, so if you find a global that highlights as a warning
tell me and I will fix it as soon as possible!
So far tested with Visual Studio Code and Sublime Text 3 and Atom
Bear out!