Group.CheckSubGroup
Signature
lua
Group.CheckSubGroup(Group g, function f, [int min], [int max], ... any) -> boolDescription
Checks whether g has a subgroup with size between min and max that satisfies f, while respecting already selected cards from Duel.GrabSelectedCard and Auxiliary.GCheckAdditional.
Parameters
gGroupffunctionminintoptionalmaxintoptional...any
Returns
bool- true if a valid subgroup exists.
Source
Utilities/utility.lua:1233
Guided Examples
Learn how to use this function in context:
- Filters, Card Objects, and Group Objects
- Selection And Group Handling
- Special Summon-Only Monster Guide
- Synchro Procedure Guide
- Tribute Summon Materials
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 346 indexed script(s).
- Search this function in the Script Explorer with
Group.CheckSubGroup.
Script Examples
Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(s.LCheckGoal,minc,maxc,tp,c,gf,lmat)
end
endLady's Dragonmaid (48658295)
Source: Scripts/c48658295.lua
lua
local tp=c:GetControler()
local fg=Duel.GetMatchingGroup(s.fusfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
return fg:CheckSubGroup(s.fselect,2,2)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
if fg:IsExists(aux.MustMaterialCounterFilter,1,nil,mg) then return false end
Duel.SetSelectedCard(fg)
return mg:CheckSubGroup(s.LCheckGoal,minc,maxc,tp,c,gf,lmat)
end
end