Skip to content

Auxiliary.SameValueCheck ​

Signature ​

lua
Auxiliary.SameValueCheck(Group g, function f) -> bool

Description ​

Checks whether every card in g shares at least one bit returned by f; groups of 0 or 1 card return true.

Parameters ​

  • g Group
  • f function

Returns ​

  • bool

Source ​

  • Utilities/utility.lua:1843

Used By ​

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

  • Detected in 19 indexed script(s).
  • Search this function in the Script Explorer with Auxiliary.SameValueCheck.
CardIDScriptDetected Calls
Lady's Dragonmaid48658295Scripts/c48658295.lua1
D/D Count Surveyor5997110Scripts/c5997110.lua2
Cyberse Contract Witch37458564Scripts/c37458564.lua1
Keel, Shipwright Fur Hire66736884Scripts/c66736884.lua1
Stellarnova Binding69678646Scripts/c69678646.lua1
ASHLAN U100044376395Scripts/c44376395.lua2
Akashic Magician28776350Scripts/c28776350.lua1
Shipping Archfiend57256127Scripts/c57256127.lua2
Charmer Quartet in Bloom27519978Scripts/c27519978.lua4
Curious, the Lightsworn Dominion98095162Scripts/c98095162.lua1
Virtual World Phoenix - Fanfan27069566Scripts/c27069566.lua2
Karma of the Destruction Swordsman78348934Scripts/c78348934.lua1
Summon Sorceress61665245Scripts/c61665245.lua1
Herald of Mirage Lights46935289Scripts/c46935289.lua2
Judgment, the Dragon of Heaven41659072Scripts/c41659072.lua1
Ra'ten, the Heavenly General30163008Scripts/c30163008.lua1
Darkness Metal, the Dragon of Dark Steel79266769Scripts/c79266769.lua2
Virtual World Dragon - Longlong61641818Scripts/c61641818.lua2
Resonance Device26864586Scripts/c26864586.lua2

Script Examples ​

Lady's Dragonmaid (48658295) ​

Source: Scripts/c48658295.lua

lua
end
function s.fselect(g)
	return g:GetClassCount(Card.GetLevel)==2 and aux.SameValueCheck(g,Card.GetFusionAttribute) and g:IsExists(Card.IsLocation,1,nil,LOCATION_ONFIELD) and g:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE)
end
function s.spcon(e,c)

D/D Count Surveyor (5997110) ​

Source: Scripts/c5997110.lua

lua
end
function s.gcheck(g)
	return (Auxiliary.SameValueCheck(g,Card.GetRace) or Auxiliary.SameValueCheck(g,Card.GetAttribute))
		and g:IsExists(s.atkfilter,1,nil,g)
end

Cyberse Contract Witch (37458564) ​

Source: Scripts/c37458564.lua

lua
end
function s.lcheck(g)
	return aux.SameValueCheck(g,Card.GetLinkRace)
end
function s.thcon(e,tp,eg,ep,ev,re,r,rp)