Skip to content

Group.SelectUnselect

Source Code | Group Functions

Selects cards in a loop that allows unselection/cancellation. (Group g1) is the group of not selected cards, (Group g2) is the group of already selected cards, (int player) is the player who selects the card, (bool finishable) indicates that the current selection has met the requirements and thus can be finished with the right click, (bool cancelable) indicates that the selection can be canceled with the right click (in the procedures this is set when the selected group is empty and no chain is going on), (int max) and (int min) does nothing to the function, they are only the max and min values shown in the hint. Every card in both the groups can be selected. The function returns a single card

Signature

Group.SelectUnselect(Group g1, Group g2, int player, [bool finishable, bool cancelable, int min, int max]) → Card

lua
g1:SelectUnselect(g2,player,finishable,cancelable,min,max)

Parameters

Returns


under-construction