aux.SelectUnselectGroup
Source Code | Usage Examples | aux Functions
Checks if a group contains a subgroup that fulfills a function.
Signature
aux.SelectUnselectGroup(Group g, Effect e, int tp, int minc, int maxc, SubgroupCheck|nil rescon, int chk) → bool
aux.SelectUnselectGroup(g,e,tp,minc,maxc,rescon,chk)Parameters
Group
gThe group to check.
Effect
eThe effect that will be passed to
rescon.int
tpThe player that will be passed to
rescon.int
mincThe minimum size of the subgroup that must exist in
g.int
maxcThe maximum number of the subgroup that must exist in
g.SubgroupCheck|nil
resconThe function that must return
truefor a matching subgroup.int
chkMust be
0when checking.
Returns
Overload
aux.SelectUnselectGroup(Group g, Effect e, int tp, int minc, int maxc, SubgroupCheck|nil rescon, int chk, int seltp, int hintmsg, [SubgroupCheck|nil cancelcon, SubgroupCheck|nil breakcon, bool cancelable]) → Group
aux.SelectUnselectGroup(g,e,tp,minc,maxc,rescon,chk,seltp,hintmsg,cancelcon,breakcon,cancelable)Makes a player select a subgroup from a group.
Parameters
Group
gThe group to select from.
Effect
eThe effect that will be passed to
rescon,cancelcon, andbreakcon.int
tpThe player that will be passed to
rescon,cancelcon, andbreakcon.int
mincThe minimum number of cards to be selected.
int
maxcThe maximum number of cards to be selected.
SubgroupCheck|nil
resconThe function that must return
truefor a matching subgroup.int
chkMust be
1to perform the selection.int
seltpThe player performing the selection.
int
hintmsgThe HintMessage that will be displayed on selection.
SubgroupCheck|nil
cancelconOptional.
A function that allows the player to cancel the selection if it returns
truefor the currently selected cards.SubgroupCheck|nil
breakconOptional.
A function that forcibly stops the selection it returns
truefor the currently selected cards.bool
cancelableOptional.
If
true, allows the player to cancel the selection even if the conditions are not fulfilled.