Skip to content

Group.CheckWithSumGreater ​

Signature ​

lua
Group.CheckWithSumGreater(Group g, function f, int acc, [... any]) -> bool

Description ​

Checks whether g can satisfy an f-sum of at least acc. Cards previously set with Duel.SetSelectedCard are forced into the sum and the must-select list is cleared before returning.

Parameters ​

  • g Group
  • f function
  • acc int
  • ... any optional

Returns ​

  • bool

Source ​

  • D:\Programs\GitHub\ygopro-core\libgroup.cpp:922

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 15 indexed script(s).
  • Search this function in the Script Explorer with Group.CheckWithSumGreater.
CardIDScriptDetected Calls
Meteoroa Drytron24166324Scripts/c24166324.lua1
Pere-Zenet Em Heru46273941Scripts/c46273941.lua1
Am Duazenet45151304Scripts/c45151304.lua1
Meteonis Drytron22398665Scripts/c22398665.lua1
Theia, the Primal Being85687952Scripts/c85687952.lua1
Machina Ruinforce46033517Scripts/c46033517.lua2
Subterror Nemesis Warrior16719140Scripts/c16719140.lua1
Toon Black Luster Soldier28711704Scripts/c28711704.lua1
Machina Fortress5556499Scripts/c5556499.lua2
Kozmo Dark Planet85991529Scripts/c85991529.lua2
King Beast Barbaros63972571Scripts/c63972571.lua1
Armor Dragon Ritual58827995Scripts/c58827995.lua1
Ten Thousand Dragon10000Scripts/c10000.lua1
Duck Fighter54813225Scripts/c54813225.lua1
Emperor Tanuki's Critter Count20560620Scripts/c20560620.lua1

Script Examples ​

Meteoroa Drytron (24166324) ​

Source: Scripts/c24166324.lua

lua
	if atk==0 then return false end
	Duel.SetSelectedCard(g)
	return g:CheckWithSumGreater(aux.GetCappedAttack,atk)
end
function s.RitualCheckEqual(g,c,atk)

Pere-Zenet Em Heru (46273941) ​

Source: Scripts/c46273941.lua

lua
	if Duel.GetMZoneCount(tp,g)<=0 then return false end
	Duel.SetSelectedCard(g)
	return g:CheckWithSumGreater(s.getrlv,lv,c)
end
function s.spfilter(c,e,tp,m)

Am Duazenet (45151304) ​

Source: Scripts/c45151304.lua

lua
	if Duel.GetMZoneCount(tp,g)<=0 then return false end
	Duel.SetSelectedCard(g)
	return g:CheckWithSumGreater(s.getrlv,lv,c)
end
function s.spfilter(c,e,tp,m)