Skip to content

Card.GetOverlayCount ​

Signature ​

lua
Card.GetOverlayCount(Card c) -> int

Description ​

Returns the number of current Xyz Materials attached to c.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3580

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 83 indexed script(s).
  • Search this function in the Script Explorer with Card.GetOverlayCount.
CardIDScriptDetected Calls
Performage Cup Tricker6812770Scripts/c6812770.lua2
Galaxy-Eyes Photon Dragon93717133Scripts/c93717133.lua1
Number 93: Utopia Kaiser23187256Scripts/c23187256.lua2
The Phantom Knights' Rank-Up-Magic Launch3298689Scripts/c3298689.lua1
Joyous Melffys53054164Scripts/c53054164.lua1
Mimighoul Throne42940335Scripts/c42940335.lua1
Laevatein, Generaider Boss of Shadows74615388Scripts/c74615388.lua1
Bujin Regalia - The Jewel63049052Scripts/c63049052.lua1
Traptrix Pinguicula1688285Scripts/c1688285.lua1
Full Armored Dark Knight Lancer67630394Scripts/c67630394.lua1
Overlay Network67378935Scripts/c67378935.lua1
Melffy Mommy76833149Scripts/c76833149.lua2
Number 79: Battlin' Boxer Nova Kaiser71921856Scripts/c71921856.lua1
Evoltile Megachirella13046291Scripts/c13046291.lua1
Number C5: Chaos Chimera Dragon69757518Scripts/c69757518.lua1
Number C79: Battlin' Boxer General Kaiser10300821Scripts/c10300821.lua1
Number S38: Titanic Galaxy16110708Scripts/c16110708.lua1
Mereologic Aggregator9940036Scripts/c9940036.lua2
Tantrum Toddler7020743Scripts/c7020743.lua2
Transcendosaurus Drillygnathus30128445Scripts/c30128445.lua1
Expurrely Happiness51822687Scripts/c51822687.lua2
Rank-Up-Magic Revolution Force43476205Scripts/c43476205.lua1
Springans Merrymaker48285768Scripts/c48285768.lua1
Cyber Dragon Infinity10443957Scripts/c10443957.lua1
...and 59 more

Script Examples ​

Performage Cup Tricker (6812770) ​

Source: Scripts/c6812770.lua

lua
end
function s.filter(c)
	return c:IsFaceup() and c:IsType(TYPE_XYZ) and c:GetOverlayCount()>0
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)

Galaxy-Eyes Photon Dragon (93717133) ​

Source: Scripts/c93717133.lua

lua
	local g=Group.FromCards(c,tc)
	local mcount=0
	if tc:IsFaceup() then mcount=tc:GetOverlayCount() end
	if Duel.Remove(g,0,REASON_EFFECT+REASON_TEMPORARY)~=0 then
		local og=Duel.GetOperatedGroup()

Number 93: Utopia Kaiser (23187256) ​

Source: Scripts/c23187256.lua

lua
aux.xyz_number[23187256]=93
function c23187256.mfilter(c,xyzc)
	return c:IsXyzType(TYPE_XYZ) and c:IsSetCard(0x48) and c:GetOverlayCount()>0
end
function c23187256.xyzcheck(g)