Brass: Birmingham is an economic strategy game sequel to Martin Wallace' 2007 masterpiece, Brass. Birmingham tells the story of competing entrepreneurs in Birmingham during the industrial revolution, between the years of 1770-1870. Welcome to Lua Scripting in Tabletop Simulator! Scripting is an advanced feature and it’s expected you already know something about it. However, for complete novices, check out this beginners scripting guide to Lua created by MrStump, to help you along the way. A game is composed of one Global Script and zero to many Object Scripts. Create and import your own content, discover new and exciting games, and take your tabletop gaming experience to a whole new level. Tabletop Simulator is the only simulator where you can let your aggression out by flipping the table! There are no rules to follow: just you, a physics sandbox, and your friends. Make your own online board games or play the thousands of community created mods. How to Use To use this mod go to your Documents Tabletop Simulator Saves and drop it anywhere in there. Munchkin will appear in game under Games Save & Load it will be under Munchkin!as the name instead of a number and will have a? Ever get tired of having to keep up with all your weapons and levels while playing Munchkin.
(n_and)
I wrote nanDECK and BGG1tool
This file (you have this if you have TTS installed in your c: drive) is the template for a D6: C:SteamSteamAppscommonTabletop SimulatorModdingDice Templatesd6.png
You can customize it with a script like this (standard dots, and BGG logo for '1'): ;I create the faces and save them cardsize=6,6 image=1,bgg_logo.png,3%,3%,96%,96%,0,P circle='3,5',36%,36%,27%,27%,#FF5100 circle='2,3,4,5,6',3%,3%,27%,27%,#FF5100 circle=6,3%,36%,27%,27%,#FF5100 circle='4,5,6',3%,69%,27%,27%,#FF5100 circle='4,5,6',69%,3%,27%,27%,#FF5100 circle='6',69%,36%,27%,27%,#FF5100 circle='2,3,4,5,6',69%,69%,27%,27%,#FF5100 save=1-6,face{§}.png,0,0,100%,100% ;load the template in the canvas (card #0) canvassize=17.33973333,17.33973333 image=0,'c:SteamSteamAppscommonTabletop SimulatorModdingDice Templatesd6.png',0,0,100%,100% ;draw the faces in the canvas image=0,face2.png,0.2,6.03,5.25,5.27 image=0,face4.png,6.05,6.03,5.25,5.27 image=0,face5.png,11.88,6.03,5.25,5.27 image=0,face1.png,0.2,11.88,5.25,5.27,180 image=0,face3.png,6.05,11.88,5.25,5.27,180 image=0,face6.png,11.88,11.88,5.25,5.27,180 ;save the template save=0,template_d6.png,0,0,100%,100%,2048,2048 This is the result: And the result loaded as a custom d6 in TTS:
Tabletop Simulator Detach
Welcome to Lua Scripting in Tabletop Simulator! Scripting is an advanced feature and it’s expected you already know something about it. However, for complete novices, check out this beginners scripting guide to Lua created by MrStump, to help you along the way.
A game is composed of one Global Script and zero to many Object Scripts. The Global Script is a script that lives in your game that can run background tasks and do general game management type functions. Object scripts are attached to an individual object. Objects are anything with a physical model in the game - chess piece, dice, decks, cards, bags, custom models, boards, etc. Both types of scripts can call the same functions, but Object scripts have access to a reference of the Object it is attached to with the self keyword.
Resources
You are able to follow the links on the left side of the page for available tools to help utilize and learn the basics of scripting. When at the top of the page, you will see a link to the Lua API for documentation on all of the available Tabletop Simulator Lua functionality. Links on the right side of the page help navigate the article you are viewing.
Tabletop Simulator Workshop
Writing Lua Scripts
The Lua code is written via our in-game code editor or via our Official Plugin for the Atom Text Editor. Lua scripts are stored in the .json file of the save game as a plain text string. There is no need for an external internet host for Lua scripts, everything is self-contained in your game’s save file. Workshop uploads work the same way.