Tabletop Simulator
Няма достатъчно оценки
Card Deck Renamer
   
Награда
Добавяне към любими
В любими
Премахване от любими
Assets: Scripting
Размер на файла
Публикуван на
22.567 KB
9 ян. 2018 в 22:28
1 бележка за промяна ( преглед )

Абониране, за да се свали
Card Deck Renamer

Описание
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.
11 коментара
Habanero 30 юли в 2:12 
Made a version of this with GM Note support.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3537898477
Habanero 22 май в 18:36 
Also, I recommend editing the script and turning the width up to at least 8000 for both fields.
Habanero 12 март в 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 юни 2022 в 10:56 
Minor Bug: When there are 3 of the same card, it outputs 5 indices of that card on validation.
Coping Kobold 14 юни 2022 в 10:48 
@ugleh You can do that by typing the card's name in the top field for every card.
Ugleh 27 ян. 2022 в 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 дек. 2020 в 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 юли 2020 в 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 юли 2020 в 11:18 
Could you make it so you can choose the values? I mean 1 or One, 2 or Two etc..
KALTec Games 7 март 2019 в 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