Tabletop Simulator

Tabletop Simulator

Zbyt mało ocen
Card Deck Renamer
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Assets: Scripting
Rozmiar pliku
Zamieszczono
22.567 KB
9 stycznia 2018 o 22:28
1 lista zmian ( zobacz )

Zasubskrybuj, aby pobrać
Card Deck Renamer

Opis
Quickly rename decks of cards! Because laziness!

Go through a deck and select their values. Much quicker than manually typing it one by one (in most cases).

Set up your own naming conventions and even change what values are possible to select via a table in the script!

Instructions are included on useage.



Minor Warning: This is a tool for pretty niche situations when making custom content, I built it to speed up some work on another mod. If you don’t need to name cards in a deck using a variation of values or labels, this probably isn’t that useful for you.
Komentarzy: 11
Habanero 30 lipca o 2:12 
Made a version of this with GM Note support.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3537898477
Habanero 22 maja o 18:36 
Also, I recommend editing the script and turning the width up to at least 8000 for both fields.
Habanero 12 marca o 14:02 
Useful, but kinda janky. Be careful when using. I think I loaded a save or tried to move a card in the middle of renaming, and it ended up making "ghost" cards that couldn't be drawn or searched for (and if you try to draw it, it plays the draw SFX infinitely). It also pads the deck card count, which was annoying when I was QCing a mod. Drawing the cards and then deleting the leftover ghost deck might fix it, have to test.

Honestly since this script is almost 10 years old, maybe a newer one is needed.
Coping Kobold 14 czerwca 2022 o 10:56 
Minor Bug: When there are 3 of the same card, it outputs 5 indices of that card on validation.
Coping Kobold 14 czerwca 2022 o 10:48 
@ugleh You can do that by typing the card's name in the top field for every card.
Ugleh 27 stycznia 2022 o 18:04 
When renaming huge decks for use in scripting, like games like Medium, I have had to use custom scripts that use chat. Every chat message is the cards name + Next. This is also cool but I think you should consider adding what I do as a toggable option?
Kranston Snord 1 grudnia 2020 o 10:25 
Utterly brilliant tool. Super easy to use. No bugs and a really great piece of coding. Currently working on Port Royal, but I'll use this every time for future projects !!!!! THANK YOU THANK YOU THANK YOU
Lumito 14 lipca 2020 o 11:25 
Trying to make decks for blackjack and that script do not accept 1, 2,3 etc.
Only One, Two, Three etc.
Lumito 14 lipca 2020 o 11:18 
Could you make it so you can choose the values? I mean 1 or One, 2 or Two etc..
KALTec Games 7 marca 2019 o 15:04 
I used this tool for naming the decks for Hull Breach.

Some things I changed (other than the suit and value).

Line 132 - I used "[suit]: [value]" so it would be nice for this to be a variable up top
Line 169 - Ditto
Line 230 - Ditto
Line 265 - Added data_nameFormat=card.getName() - this causes it to default to the current card name
Line 296 - Added self.editInput({index=0,value=card.getName()}) for the same reason

It would be nice to have similar functionality added for the previous button.
This makes it easier to keep what you have if you made a (partial) mistake on the first run thru.

Also I found it useful to run the deck's thru Mr. Stumps "Deck Duplicate GUID Fixer" after I got done. https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1180142950