Tabletop Simulator

Tabletop Simulator

45 人が評価
Learning MORE Lua Table - A companion for the scripting guide
   
アワード
お気に入り
お気に入り
お気に入りから削除
Assets: Scripting
タグ: Misc, Templates
ファイルサイズ
投稿日
更新日
37.980 KB
2017年3月8日 9時27分
2017年9月6日 9時00分
3 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
Learning MORE Lua Table - A companion for the scripting guide

解説
A table of scripting examples, for use with the Learning MORE Lua guide. That guide is Part 2 of a three part series. If you are interested in learning Lua, I recommend you start with Learning Lua (Part 1).
16 件のコメント
Of the Slivers and the Zerg 2021年6月17日 22時20分 
@MusicNeverSleeps, you need to use modular arithmetic (something like 'counter%5').
MusicNeverSleeps 2021年5月18日 17時25分 
I am having trouble with states. I want to make a '+' and '-' button to cycle through the 5 states I have have on an object. if PLUS is clicked on state 5 it goes to 1 or MINUS on 1 goes to 5 etc...

sbwilson 2021年5月11日 6時00分 
These examples are wonderful! Concerning the takeObject() function: after an object is pulled and placed, how do you change the color and lock it? I just can't seem to figure out the syntax and not sure what I'm missing. So, assuming that I wanted to pull the white cube from the bag, change it's color to red (not the player's color...just red) and then lock it in place, what would the callback function look like?
mageKnight 2020年2月26日 3時24分 
Love that you did this for us wanting to learn LUA in TTS. Much appreciated!
SmokyMiner 2019年1月16日 7時44分 
Great Examples. As a programmer, your tuts were somewhat useful for getting started. Now I can finally automate Family Business!
Cheddar 2018年12月11日 18時54分 
im working through learning this, i sent i friend request if ok, i am having something i cant figure out. Its likely a basic error related to changing font color. but it is really frustrating me. hoping someone out there can give it a look and help me...:-)
Snorkel 2018年7月21日 18時56分 
Oooh, you can turn off tooltips, handy!
Snorkel 2018年7月21日 18時56分 
Oh wait...I didn't turn the cards over. Never mind :skull_rolleye:
MrStump  [作成者] 2018年7月21日 18時36分 
If they are face-down, it is to prevent people from seeing card names. Or their tooltips are turned off (in the context menu of the object)
Snorkel 2018年7月21日 18時13分 
That was supposed to be an exclamation mark, not a question mark...