Tabletop Simulator
Недостаточно оценок
Restart Game Button
   
Наградить
В избранное
В избранном
Удалить
Размер файла
Добавлен
Изменён
84.174 KB
12 фев. 2021 г. в 2:54
23 фев. 2021 г. в 5:26
Обновлений: 15 (просмотреть)

Подпишитесь, чтобы загрузить
Restart Game Button

В 1 коллекции, созданной Liyarin
Utility Scripts by Nyss AKA Liyarin
Предметов: 19
Описание
This is a tool that makes it easier to restart any game.

You can simply import it to your game of choice and it'll remember where all the pieces are at the start of the game, so that you can reset it easily later on.

This mod was a Fiverr commission by Chris for LSL: Cards & Combat at www.learningstufflane.com.



To use this tool:

The rectangular object has 2 big buttons: One on each side of it. There is also one third, smaller button next to the "Reset" button.

One of it scans the table for all the objects on it and saves their starting location. Ideally, you'll import the object to your game of choice before you start playing and press this button to save all the locations.

The other one uses the saved locations from the previous button and moves all the objects to those locations. You would press this button whenever you want to restart the game later on.

The smaller button next to the "Reset" button, lets you toggle whether you want the "Reset" button to just move all the pieces and do nothing else, or if you want it to also look for objects that were not there at the start of the game and delete them. An example of why you'd use this is if you took items from infinite bags and want to get rid of them.



Made by Liyarin:
If you like my mods and wish to support me, you may do so here[paypal.me].

I now make tabletop simulator mods by commission, if you're interested, request one here[www.fiverr.com].
Комментариев: 12
Liyarin  [создатель] 19 авг. 2024 г. в 0:35 
You'll have to try, I can't guarantee anything. I tried to make it account for multiple scenarios, but there's probably always things that won't work quite right
LPCrocIsBoss 16 авг. 2024 г. в 20:32 
Think it will work in a game like armada?
Liyarin  [создатель] 9 апр. 2024 г. в 5:52 
@tzetsienghwaang I am currently very busy with other projects, I'll try to take another look at this when I can.
There are a LOT of different scenarios where this can go wrong, and it's hard to account for all of them. If you can share the game where you're having issues with this, it would help.
tzetsienghwaang 7 апр. 2024 г. в 22:15 
I've been getting a lot of bugs with this... For custom decks, it seems that the cards stay where they are instead of going back into the deck. Secondly, there are some other decks and objects I added after I clicked "save table" which are not meant to be returned to their start positions (they're there to keep track of score while the rest of the table resets), but were often returned anyway.
Mr_Book 28 апр. 2023 г. в 7:21 
Liyarin, love this! I don't know anything about scripting but this works perfectly for my workshop game (Tactigon).
Liyarin  [создатель] 30 дек. 2021 г. в 21:26 
@CNDA_TheEhTeam This script is far from perfect, there's a lot of assumptions that had to be made, seeing as every single save file is different and everyone creates their games differently.

That said, it *should* handle custom decks properly, I'll take a look at it sometime next week. If I can't reproduce the bug, can you share a save file for me to test it in?
CNDA_TheEhTeam 30 дек. 2021 г. в 14:30 
Seems to delete cards from my custom deck. If I pull out 6 cards from the 112 pile and press reset, it appears they go back to the pile but it only counts 106 in the deck. I made sure to disable delete extras just in case that was causing the issue but happens either way.
Liyarin  [создатель] 29 сен. 2021 г. в 5:58 
@jjpunk Possible? Yes, it is, but not with the mod as-is, I would need to change the script quite a bit.
jjpunk 25 сен. 2021 г. в 8:01 
Is it possible for it to scan only a set part of the map? Like if you have a sheet with tokens to mark stuff that gets reset every turn, is it possible to have the button only act for that sheet? Like make a zone over it and have it only scan that?

Would something like that be possible? great mod!
Liyarin  [создатель] 17 мар. 2021 г. в 11:18 
@fulanomengano Yes, that's the main use of this tool