Skip to content

Group.CheckSubGroup ​

Signature ​

lua
Group.CheckSubGroup(Group g, function f, [int min], [int max], ... any) -> bool

Description ​

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 ​

  • g Group
  • f function
  • min int optional
  • max int optional
  • ... any

Returns ​

  • bool - true if a valid subgroup exists.

Source ​

  • Utilities/utility.lua:1233

Guided Examples ​

Learn how to use this function in context:

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.
CardIDScriptDetected Calls
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua1
Yomagna the Fire Phantom17350692Scripts/c17350692.lua1
Meteoroa Drytron24166324Scripts/c24166324.lua1
Performage Cup Tricker6812770Scripts/c6812770.lua1
Pere-Zenet Em Heru46273941Scripts/c46273941.lua1
Am Duazenet45151304Scripts/c45151304.lua1
Ursarctic Polari27693363Scripts/c27693363.lua1
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua1
D/D Count Surveyor5997110Scripts/c5997110.lua1
Barian's Chaos Draw97769122Scripts/c97769122.lua3
Artmage Masterwork -Succession-37517035Scripts/c37517035.lua1
Enlightenment Dragon46186135Scripts/c46186135.lua1
Bujinki Ahashima71095768Scripts/c71095768.lua1
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Dracotail Shaulas42125140Scripts/c42125140.lua1
Vidolium the Unstable Power Patron of Unity70488851Scripts/c70488851.lua1
DoSolfachord Coolia80776622Scripts/c80776622.lua1
Radiant Typhoon Varuroon, the Marine Eidolon39341885Scripts/c39341885.lua1
Yummy★Snatchy30581601Scripts/c30581601.lua1
El Shaddoll Meshachrer32467459Scripts/c32467459.lua1
...and 322 more

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
end

Lady'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