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