Tabletop Simulator

Tabletop Simulator

Learning MORE Lua Table - A companion for the scripting guide
16 kommentarer
Of the Slivers and the Zerg 17. juni 2021 kl. 22:20 
@MusicNeverSleeps, you need to use modular arithmetic (something like 'counter%5').
MusicNeverSleeps 18. maj 2021 kl. 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 11. maj 2021 kl. 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 26. feb. 2020 kl. 3:24 
Love that you did this for us wanting to learn LUA in TTS. Much appreciated!
SmokyMiner 16. jan. 2019 kl. 7:44 
Great Examples. As a programmer, your tuts were somewhat useful for getting started. Now I can finally automate Family Business!
Cheddar 11. dec. 2018 kl. 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 21. juli 2018 kl. 18:56 
Oooh, you can turn off tooltips, handy!
Snorkel 21. juli 2018 kl. 18:56 
Oh wait...I didn't turn the cards over. Never mind :skull_rolleye:
MrStump  [ophavsmand] 21. juli 2018 kl. 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 21. juli 2018 kl. 18:13 
That was supposed to be an exclamation mark, not a question mark...
Snorkel 21. juli 2018 kl. 18:12 
Thank you? Can you tell me why your cards don't display their nickname when hovered over?
snowdrop 22. juli 2017 kl. 16:00 
Superb work!
DANDI 2. juni 2017 kl. 12:08 
Thank you stump !
lolcese 13. maj 2017 kl. 8:33 
Great guide!
One question: I need to find which player has a given card. If I name the card, another user can locate it. How can I know that given the GUID (or another thing?
Thanks
boris 3. maj 2017 kl. 18:10 
thanks!
Hiram Abiff 20. mar. 2017 kl. 14:27 
This was very helpful to me; thank you MrStump for your dedication to helping us beginners.