Tabletop Simulator

Tabletop Simulator

Not enough ratings
Dynamic Grid components [v1.0]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
911.345 KB
18 May, 2020 @ 9:00pm
1 Change Note ( view )

Subscribe to download
Dynamic Grid components [v1.0]

In 1 collection by Unreal Ed
TTS tools
363 items
Description
This mod contains components that dynamically change the Grid when picked up! Re-use it in your own mods!
It's useful when you want to have certain pieces fall in certain spots and other pieces to fall in other spots, or when you just want to show the grid when picking up a piece and quickly hide it afterward.





What is this?
This is a set of pieces that will reveal the grid when picked up and have it slowly fade over a short period of time. When you pick them up, they also change the settings for the grid, like its spacing, offset, colors, etc.

This has 2 uses:
- Just showing the grid only when picking up pieces that interact with it, helping the player visualize it only when needed.
- Having several grids "at the same time". One type of components (for example cards) can use a certain grid while another set of components (resources that are placed ON cards) can use a different grid that is slightly offset.
- (and maybe more I'm not seeing right now!)

You can easily edit the settings of the script with the variables at the top of the script. Each of them has an explanation.

Also, you can right-click the components and press "Show grid for this" to quickly display the grid that piece will use.

I made this script for people to import into their mods, so feel free to do so! You can credit me or not.


How to import into your game/mod
Right-click -> Scripting -> Scripting Editor. Copy the code that appears and paste it in the code for any object you want to show the Grid when picked up.

You can easily edit the settings of the script with the variables at the top of the script. Each of them has an explanation.


Planned to add:
- Make a version that applies to all objects of a certain type
- Add settings for a "default grid" which the component set the grid back to after the grid has faded.


Special thanks to:
MrStump for his Gridlock token which disables the display of the grid on the standard tables. You might want to bring it into your mods as well.
1 Comments
Eldin 19 May, 2020 @ 12:46am 
Very nice!