Duel.SelectCardsFromCodes
Source Code | Usage Examples | Duel
Functions
Make (int sel_player) select between (int min) and (int max) cards among the passed card codes. If cancelable is true and the selection is canceled nil will be returned. If return_index is true a number of tables equal to the number of selected cards will be returned, each table will have the selected code index (starting by 1) as the first element and the code itself as second element. Otherwise the selected codes will be returned as multiple return values.
Signature
Duel.SelectCardsFromCodes(int sel_player
, int min
, int max
, bool cancelable
, bool return_index
, int code1
, any ...
) → table, int, int, int, any
lua
Duel.SelectCardsFromCodes(sel_player,min,max,cancelable,return_index,code1,...)
Parameters
int
sel_player
(To be added)
int
min
(To be added)
int
max
(To be added)
bool
cancelable
(To be added)
bool
return_index
(To be added)
int
code1
(To be added)
any
...
(To be added)