The Lua scripting language allows you to give your plugin more advanced features.
Moderator: Plugin Moderators
Scripting Documentation
Replies: 13
by
JustAnyone »
Thu Jan 17, 2019 18:32
First post
Lua scripting is supported for several months now. It basically allows you to do more interactive plugins similar to fun.
The documentation...
Last post
You need to provide it with x, y and level arguments
13 Replies
3324 Views
Last post by JustAnyone
Sun Jun 07, 2020 17:32
GUI Compendium
Replies: 20
by
Lobby »
Sat Sep 05, 2020 10:42
First post
image.png
Cover image by Bearbear76 .
TheoTown features a powerful framework of user interface elements that are used throughout the whole game....
Last post
thank’s i used it for this:
local function text()
local iconFrame=Draft.getDraft('$pickle_kets_icon'):getFrame()
local dialog = GUI.createDialog{...
20 Replies
2486 Views
Last post by Eiyu
Wed Apr 07, 2021 20:33
Lua chatbox
Replies: 172
by
Bearbear76 »
Thu Jun 18, 2020 12:22
First post
A place to ask and share stuff about Lua!
Rules:
Must be about Lua, we have a general chatbox for other stuff.
Be nice to each other!
Last post
I couldn't get buildBuilding() to work with RCI either.
172 Replies
13545 Views
Last post by KINGTUT10101
Sat Mar 06, 2021 21:05
[Module] Custom GUI -Unofficial
Replies: 8
by
ian` »
Sat Jan 30, 2021 13:47
First post
This is an unofficial GUI functions that i made for other plugin creators.
How To Use
Place the module in the same folder with the main script....
Last post
Splitlabel require throws me an exceptions
8 Replies
472 Views
Last post by rjroldan1
Wed Mar 03, 2021 3:15
Animation Dev Tool (Open Source)
Replies: 8
by
ian` »
Wed Oct 21, 2020 9:08
First post
Since this plugin is open source, please do not commercialize or claim this plugin as yourself without any attempt to create a new one. This source...
Last post
Can you add more id of the lamp in next update sir ??
More lamp color and size...
Ohh in-game lamp id 4x4l2 error can't found after i apply to in...
8 Replies
1232 Views
Last post by ajimaul
Sun Feb 21, 2021 21:15
Luacheck linting for TheoTown
Replies: 10
by
Bearbear76 »
Sun May 24, 2020 9:00
First post
Hello!
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...
Last post
Windows/Lunix/Mac only!
You mean Linux, right?
This looks interesting and worth using I must say, keep up the effort.
Oof I'm going to fix...
10 Replies
1095 Views
Last post by Bearbear76
Wed Feb 10, 2021 12:06
[1.8.95] Plugin settings
Replies: 8
by
JustAnyone »
Wed Jul 08, 2020 14:39
First post
Version 1.8.95 will allow your plugin to add own settings to the game's settings window by providing a script:settings() function in a Lua script...
Last post
Is it really possible to add hidden :true for all the ingame drafts if a made plugin settings for it?
8 Replies
1264 Views
Last post by rjroldan1
Thu Nov 05, 2020 17:06
GUI example in Plugin Creator Tools
Replies: 2
by
JustAnyone »
Fri Aug 28, 2020 21:34
First post
image.png
The Plugin Creator Tool contains an example to present the GUI creation possibilities using using Lua in plugins.
image.png
Actually...
Last post
Can we use gui on building taps? As substitute to the onClick notif or its info itself
2 Replies
890 Views
Last post by rjroldan1
Sat Oct 17, 2020 20:48
Drawing basics
Replies: 24
by
Bearbear76 »
Sun Apr 12, 2020 12:58
First post
Introduction
Have you ever wanted to draw some image or text onto your screen?
If that's the case you came to the right place as I will tech you...
Last post
Awesome!!! It works...
24 Replies
3126 Views
Last post by Lakan Haraya
Sun Sep 06, 2020 17:29
Tree Planter Tool (Open Source)
by
JustAnyone »
Fri Aug 28, 2020 12:04
image.png
image.png
As of version 1.9.32 the game contains the so called tree planter tool that allows to plant a variety of trees easily by...
0 Replies
629 Views
Last post by Lobby
Fri Aug 28, 2020 12:04
0 Replies
352 Views
Last post by ian`
Mon Aug 17, 2020 2:23
[792] Real time script editing
Replies: 8
by
JustAnyone »
Tue Jan 07, 2020 18:28
First post
Hi,
if you tried to use Lua for your plugins in the past you may have noticed that restarting the game every time you made a change to the script...
Last post
Thanks for the help, that fixed the issue.
8 Replies
1457 Views
Last post by KINGTUT10101
Tue Jul 28, 2020 4:50
How to use Lua scripts
Replies: 14
by
FranchuFranchu »
Fri Oct 19, 2018 2:42
First post
Now Lua can be used in TheoTown. Lua is a real proggraming language. To learn it, read this .
To include a Lua file in your plugin, use this:...
Last post
Lua is still on the fast side though
14 Replies
4332 Views
Last post by Bearbear76
Tue Dec 24, 2019 0:03
Lua API documentation [780]
Replies: 7
by
FranchuFranchu »
Fri Oct 19, 2018 1:07
First post
Also see doc.theotown.com
void function Analytics.log(category, action, label)
void function Array:new(arr)
void function Array.normalize(arr)...
Last post
isBuildingFullOfDeadPeople
Wow, that's a bit dark.
7 Replies
3672 Views
Last post by Imran M
Sat Oct 26, 2019 21:40
Forum permissions
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum