Tabletop Simulator

Tabletop Simulator

Not enough ratings
[Tool] Script Injector
2
   
Award
Favorite
Favorited
Unfavorite
Type: Utility
Complexity: Low Complexity
Language: English
File Size
Posted
Updated
35.400 KB
Jul 1, 2022 @ 8:03am
Jan 8, 2024 @ 5:22am
7 Change Notes ( view )

Subscribe to download
[Tool] Script Injector

In 1 collection by Ediforce44
Basic Script Components
7 items
Description
Script Injector
This is a map to help with redundant stuff. This map will help you:
  • If you need to write the same line of Lua-Code into multiple scripts
  • If you want to create the same variable in multiple scripts with different values
  • if you want to add the same tags to a lot of objects

Example use case
We use this map to write variables into the script of 100+ cards. The cards represent monsters in our map for the game Isaac: Four Souls. Each variable represent a stat of the monster.
So we sorted the monster cards by there stat value, built decks and injected in each card of each deck the stat variable with the proper value for the deck of cards.

Disclaimer
If you use this map with decks or bags, which contain many cards or objects, it is possible that your game lags/freezes for a couple of seconds depending on your PC.
It shouldn't be longer than 30-60sec (worst case). But it will be a lot faster than writing every lua-code-line by hand.

How to use it?
  1. Load your own mod map and create the objects you want to inject. (This is important for the generation of the guids of the objects)
  2. Put all the objects you want to inject into an container (deck or bag).
  3. Save the containers you created as game objects. (So you can load them later in other maps over the menu: Objects->Saved Objects)
  4. Load the Script Injector map.
  5. Follow the instructions on the table.

Other Projects
Popular Discussions View All (1)
1
Oct 7, 2022 @ 2:31pm
This is cool thanks, any similar workshop items?
redact-sandbox