Tabletop Simulator

Tabletop Simulator

Not enough ratings
Example of shuffling cards from zone and renewal of deck
   
Award
Favorite
Favorited
Unfavorite
Type: Modding
Complexity: Low Complexity
Assets: Scripting, Cards
File Size
Posted
Updated
36.919 KB
21 Nov, 2020 @ 5:16am
21 Nov, 2020 @ 10:51am
4 Change Notes ( view )

Subscribe to download
Example of shuffling cards from zone and renewal of deck

Description
Example of how to take cards from zone and shuffle them back into deck. Also example on how to handle deck running out of cards using Deck Zone and checking if a Deck exists within it. Hope it helps some people.

UPDATE:
Now correctly rotates the cards even when they're not just flipped but also rotated around.
Doesn't check rotation of every card but instead preemptively rotates them to right rotation = saves performance.

Alialun
3 Comments
Tim 8 Mar, 2021 @ 1:22pm 
I'm trying to get two of these zones working together but can't seem to figure it out (so; one deck with its own zone going back to its own deck, and another deck with its own zone going back to its own deck. Imagine an "Armor" & "Weapon" deck. Each need to remain separated. Any ideas?
JSJosh 22 Nov, 2020 @ 11:53am 
You are a true MVP, been trying to get into TTS scripting with previous experience in LUA, and this is helpful!

Pretty sweet that this also works with bags, not just decks!
(NGR) BadRequest 21 Nov, 2020 @ 7:47am 
This is some king shit! Thank you :tgrin: