Scripting Documentation

The Lua scripting language allows you to give your plugin more advanced features.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3406
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Scripting Documentation

#1

Post by Lobby » Thu Jan 17, 2019 18:32

Lua scripting is supported for several months now. It basically allows you to do more interactive plugins similar to fun.

The documentation contains both, some general information about Lua scripting as well a detailed description for all scripting libraries.

Lua Documentation :lua: :teach

It's not finished yet, but I'm working on :mine
The current state should allow you to already get started.
...Have a nice stay

User avatar
Mg3094066
Inhabitant of a Supercluster
Reactions:
Posts: 3207
Joined: Sun May 28, 2017 1:50
Location: United Mexican States
Plugins: Show
Version: Beta
Phone model: LG H320mb 5.0.1

Plugin Creator

Platform

Re: Scripting Documentation

#2

Post by Mg3094066 » Mon Jan 21, 2019 1:21

this allows you to modify the game? like adding new options and that things?
:lua: :calc
The end is near so... im turn edgy... a bit...

Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 533
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Scripting Documentation

#3

Post by Imran M » Wed Jan 23, 2019 22:46

Mg3094066 wrote:
Mon Jan 21, 2019 1:21
this allows you to modify the game? like adding new options and that things?
:lua: :calc
Maybe. It's basically more complex json that has more advanced options and doesn't describe buildings. You can use it to make a toast (basically a text that pops up, but isn't like ingame notifications). I'm kind of getting mixed up with fun functionality, so you should talk to someone else.

Edit: This has hardly any info... so you should probably just skip this. But you could read it if you want to.
https://m.youtube.com/watch?v=AqpYHdv3S00 gives 404 error.

User avatar
JustAnyone
Community manager
Reactions:
Posts: 2730
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: Scripting Documentation

#4

Post by JustAnyone » Wed Jan 23, 2019 22:52

You can create cool stuff like planets with this!

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 495
Joined: Mon Jul 17, 2017 16:16
Location: Antipolo, Philippines
Plugins: Show
Contact:

Platform

Plugin Creator

Re: Scripting Documentation

#5

Post by rjroldan1 » Sun Dec 22, 2019 14:05

If the game allow us to use java instead of lua?
T.P.C.


Theotown Philippine Corporation

PHILIPPINES :linux

User avatar
Lobby
Developer
Reactions:
Posts: 3406
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Scripting Documentation

#6

Post by Lobby » Sun Dec 22, 2019 15:43

No, because for that a compiler would be needed; it would be overkill to do that for scripting functionality.

In addition, it would be much harder to prevent Java programs from doing malicious things.
...Have a nice stay

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 495
Joined: Mon Jul 17, 2017 16:16
Location: Antipolo, Philippines
Plugins: Show
Contact:

Platform

Plugin Creator

Re: Scripting Documentation

#7

Post by rjroldan1 » Sun Dec 22, 2019 17:08

Lobby wrote:
Sun Dec 22, 2019 15:43
No, because for that a compiler would be needed; it would be overkill to do that for scripting functionality.

In addition, it would be much harder to prevent Java programs from doing malicious things.
Oh okay i get it
T.P.C.


Theotown Philippine Corporation

PHILIPPINES :linux

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 4979
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: Scripting Documentation

#8

Post by Ølsken » Mon Dec 23, 2019 2:12

Trust me Lua can do 99% of the stuff you want to do.
You could also make some malicious plugin by using l o o p s. :twisted:
ImageJust my opinion

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 495
Joined: Mon Jul 17, 2017 16:16
Location: Antipolo, Philippines
Plugins: Show
Contact:

Platform

Plugin Creator

Re: Scripting Documentation

#9

Post by rjroldan1 » Mon Dec 23, 2019 4:29

If all lua's definition or maybe tags ? and attribute is applicable?
T.P.C.


Theotown Philippine Corporation

PHILIPPINES :linux

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 4979
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: Scripting Documentation

#10

Post by Ølsken » Mon Dec 23, 2019 5:44

rjroldan1 wrote:
Mon Dec 23, 2019 4:29
If all lua's definition or maybe tags ? and attribute is applicable?
uhh, using all of the functions of Lua? then, yeah probably.
I know what tags and attributes are in html but not in Lua.
ImageJust my opinion

Post Reply Previous topicNext topic

Return to “Lua Scripting”