To include a Lua file in your plugin, use this:
Code: Select all
"script":"file.lua",
The Lua code can be this:
Code: Select all
function script.nextMonth()
Debug.toast("Hello Month!")
end
The full list of the available functions in TheoTown is in https://theotown.com/forum/viewtopic.php?f=41&t=8587.