[Mod] World Action Script (programming+ electronics) [was]

Post Reply
User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

[Mod] World Action Script (programming+ electronics) [was]

by AiTechEye » Post

Image

Depends: none
Licenses: code: LGPL-2.1, media: CC BY-SA-4.0
Version: 1
Source
Download:

Just programming ingame

This is a basic programing/language (not lua), that you can do in game, even players can do it becaouse functions requires privileges to be used.
Also some functions requires the "was" privilege to be able.
find info about functions in the gui.

Find Instruktions here

Image
Attachments
screenshot_20190116_182611.png
screenshot_20190116_182611.png (177.05 KiB) Viewed 518 times
screenshot_20190108_131229.png
screenshot_20190108_131229.png (128.66 KiB) Viewed 518 times
Last edited by AiTechEye on Sun Jan 20, 2019 21:47, edited 19 times in total.

User avatar
MCL
Member
Posts: 654
Joined: Mon Aug 20, 2018 00:44
GitHub: MCLx86
IRC: migdyn
In-game: singleplayer
Contact:

Re: [Mod] World Action Script (ingame programming) [was]

by MCL » Post

Looks good
2014-02-14 - 2024-02-14 TEN YEARS OF MCL

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] World Action Script (ingame programming) [was]

by AiTechEye » Post

corrently it works with
mesecons, digilines and pipeworks
also have its own kind of wire.

the for loop is currently messing, (print was messing) but otherwise everything should work.

im also working to add tables / datatype (will mess with all the other datatypes)

event is send as the variables, im working to add them as event.type, event.channel etc..


everything should work fine

event.type=="timer"
event.type=="wire")
event.channel, event.msg event.from_channel (slower then digilines, but safer cuz you can see what it sent from)
event.type=="mesecon on"
event.type=="mesecon off"
event.type=="digiline"
event.channel event.msg
event.type=="pipeworks"
even.msg={item count}

is anyone using this mod?
the goal is to make it much more than the lua controller, and more units...

Image
Attachments
screenshot_20190112_111112.png
screenshot_20190112_111112.png (222.93 KiB) Viewed 518 times

User avatar
AiTechEye
Member
Posts: 1000
Joined: Fri May 29, 2015 21:14
GitHub: AiTechEye
Location: Sweden

Re: [Mod] World Action Script (programming+ electronics) [wa

by AiTechEye » Post

print and some units can still mess, but everything else should work fine

and if someone wonder, i made a program language just to try to make one.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 11 guests