Skip to content

Duel.SelectCardsFromCodes

Source Code | 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

Returns


under-construction