Sorry, we don't support your browser.  Install a modern browser

API: Draw Card#1414

Given a reference to both an instance of a player and a reference to a deck object, it should be possible with just a single function to have that player draw from the deck. Either deck:draw(player, number_of_cards) or player:draw(deck, number_of_cards) and maybe an optional is_faceup argument.

2 years ago

https://api.tabletopsimulator.com/object/#deal deck.deal(number, player_color, index) does this already, or am I misunderstanding the suggestion?

2 years ago
Changed the status to
Needs Clarification
2 years ago