Tabletop Simulator

Tabletop Simulator

Not enough ratings
Deck Alphabetizer [Broken]
   
Award
Favorite
Favorited
Unfavorite
Game Category: Card Games
Number of Players: 1, 2, 3, 4
Assets: Scripting
File Size
Posted
Updated
8.336 KB
6 Sep, 2017 @ 12:27am
6 Sep, 2017 @ 3:48pm
2 Change Notes ( view )

Subscribe to download
Deck Alphabetizer [Broken]

Description
**20/02/2019**
I have been notified that this Deck Alphabetizer is no longer functional. It is here for example purposes only now.

**Outdated**
This simple table will take a deck of cards and put them in alphabetical order.

Each card must be given a name in order for this to work.

This worked for my purposes; I hope it will be useful to some of you!
8 Comments
Indimeco  [author] 19 Feb, 2019 @ 11:54pm 
@3tamatulg Thanks, I have done so.
3tamatulg 19 Feb, 2019 @ 12:58pm 
I'd say just stick [BROKEN] at the end of the title - seeing the way someone's done something can be really useful. Maybe someone will come along and fix it, might just be a couple of lines.
Indimeco  [author] 19 Feb, 2019 @ 1:53am 
@3tamatulg There's a good chance it is as I made it a really long time ago and TTS has undergone lots of scripting changes. If you can confirm that it doesn't work for you I'll hide it in the workshop so nobody gets misled.
3tamatulg 18 Feb, 2019 @ 7:02am 
Is this currently broken?
H3xx 16 Sep, 2017 @ 10:47am 
This would be great with a deck of NPC cards... made using my scripted note cards </shameless.self.plug>
darleth 6 Sep, 2017 @ 11:35pm 
Thanks a lot...
Indimeco  [author] 6 Sep, 2017 @ 3:50pm 
@dzikakulka Ah yeah. I didn't think table.sort() would work with key/value pairs without messing up the table but I figured it out. Thanks.
dzikakulka 6 Sep, 2017 @ 7:24am 
Hey, nice job, just wanted to note that you don't need to search for the "highest" (earliest in the alphabet) name in the table each time, Lua compares strings alphabetically by default. You can just slap a table.sort() with default comparison and go ahead :)