Tabletop Simulator

Tabletop Simulator

Not enough ratings
DJBot - Scripter
   
Award
Favorite
Favorited
Unfavorite
Number of Players: 1, 2, 3, 4
Assets: Scripting
File Size
Posted
Updated
12.648 KB
26 Aug, 2017 @ 3:33am
10 Nov, 2017 @ 10:11pm
4 Change Notes ( view )

Subscribe to download
DJBot - Scripter

Description
Allows you to script using chat.


1. Perfect for learning to code or teaching someone else to code.

2. Access to every single method in the scripting API

3. Lightweight. You can save it to your chest and use it anywhere.

4. Makes a sound when you click on its trigger cause why the hell not.

5. I have a youtube, patreon etc etc.

11 Comments
star  [author] 10 Nov, 2017 @ 1:52pm 
x=nil
DeJMan  [author] 9 Nov, 2017 @ 9:40pm 
How would the variables be cleared? Would there be a !clearmem function to clear the memory?
star  [author] 9 Nov, 2017 @ 1:11pm 
Fixed an issue. Added command "debug()" - it will write all BlockSquare code to Notebook (to see whats wrong)
https://pastebin.com/UnFzsmRF
star  [author] 9 Nov, 2017 @ 12:28pm 
Added custom variables to save state. For example you can save/load, and x, y will exist
https://pastebin.com/260cLZhs
star  [author] 9 Nov, 2017 @ 12:16pm 
Okay, I did it!
http://f3.s.qip.ru/1HDgF5xJ.png
Yes, now I can type x=1;y=2 and on the next line print(x+y)
https://pastebin.com/WD48ssW7
Also you can type "return 123" - it will write result to the Notebook
star  [author] 9 Nov, 2017 @ 11:31am 
Fixed issues. For example, I use setLock(true) instead of deprecated lock()
Added "p" as alias for "print"
Tested: saved and loaded a lot of times.
https://pastebin.com/zhH4vADc
star  [author] 7 Nov, 2017 @ 10:50am 
Hey, DejMan, I improved your script. Now it supports save and load correctly.
https://pastebin.com/QVthTknW
DeJMan  [author] 7 Nov, 2017 @ 8:29am 
Yeah. Everything you need should be in one chat command. Everytime you hit enter, its a new program.
star  [author] 7 Nov, 2017 @ 7:28am 
I typed "x=1", then I typed "print(x)" but the result was "nil".
http://f6.s.qip.ru/1HDgF5x7.png
So I can't initialize variables or make global functions.
dzikakulka 9 Sep, 2017 @ 4:15pm 
This really could use at least recognizing blocks (if ... end, function ... end, etc) and taking lines until one is finished, then executing it :)