Group.FilterSelect
Source Code | Usage Examples | Group Functions
Make a player (int player) select members of a group (Group g) which meets the function (function f), with a minimum (int min) and a maximum (int max), then outputs the result as a new Group. Excludes a card (Card ex) if not nil. Function f accepts at least one parameter (f(c,...), with c as each member of the group), and the card will be included if f(c,...) returns true. If cancelable is true and the selection is canceled nil will be returned.
Signature
Group.FilterSelect(Group g, int player, function f, int min, int max, [bool cancelable = false, Group|Card|nil ex, any ...]) → Group
g:FilterSelect(player,f,min,max,cancelable,ex,...)Parameters
Group
g(To be added)
int
player(To be added)
function
f(To be added)
int
min(To be added)
int
max(To be added)
bool
cancelableOptional. Defaults to
false.(To be added)
Group|Card|nil
exOptional.
(To be added)
any
...Optional.
(To be added)