Tabletop Simulator

Tabletop Simulator

评价数不足
Card Deck Renamer
   
奖励
收藏
已收藏
取消收藏
Assets: Scripting
文件大小
发表于
22.567 KB
2018 年 1 月 9 日 下午 10: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 7 月 30 日 上午 2:12 
Made a version of this with GM Note support.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3537898477
Habanero 5 月 22 日 下午 6:36 
Also, I recommend editing the script and turning the width up to at least 8000 for both fields.
Habanero 3 月 12 日 下午 2: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 2022 年 6 月 14 日 上午 10:56 
Minor Bug: When there are 3 of the same card, it outputs 5 indices of that card on validation.
Coping Kobold 2022 年 6 月 14 日 上午 10:48 
@ugleh You can do that by typing the card's name in the top field for every card.
Ugleh 2022 年 1 月 27 日 下午 6: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 2020 年 12 月 1 日 上午 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 2020 年 7 月 14 日 上午 11:25 
Trying to make decks for blackjack and that script do not accept 1, 2,3 etc.
Only One, Two, Three etc.
Lumito 2020 年 7 月 14 日 上午 11:18 
Could you make it so you can choose the values? I mean 1 or One, 2 or Two etc..
KALTec Games 2019 年 3 月 7 日 下午 3: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