Card.GetOverlayCount
Signature
lua
Card.GetOverlayCount(Card c) -> intDescription
Returns the number of current Xyz Materials attached to c.
Parameters
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Performage Cup Tricker | 6812770 | Scripts/c6812770.lua | 2 |
| Galaxy-Eyes Photon Dragon | 93717133 | Scripts/c93717133.lua | 1 |
| Number 93: Utopia Kaiser | 23187256 | Scripts/c23187256.lua | 2 |
| The Phantom Knights' Rank-Up-Magic Launch | 3298689 | Scripts/c3298689.lua | 1 |
| Joyous Melffys | 53054164 | Scripts/c53054164.lua | 1 |
| Mimighoul Throne | 42940335 | Scripts/c42940335.lua | 1 |
| Laevatein, Generaider Boss of Shadows | 74615388 | Scripts/c74615388.lua | 1 |
| Bujin Regalia - The Jewel | 63049052 | Scripts/c63049052.lua | 1 |
| Traptrix Pinguicula | 1688285 | Scripts/c1688285.lua | 1 |
| Full Armored Dark Knight Lancer | 67630394 | Scripts/c67630394.lua | 1 |
| Overlay Network | 67378935 | Scripts/c67378935.lua | 1 |
| Melffy Mommy | 76833149 | Scripts/c76833149.lua | 2 |
| Number 79: Battlin' Boxer Nova Kaiser | 71921856 | Scripts/c71921856.lua | 1 |
| Evoltile Megachirella | 13046291 | Scripts/c13046291.lua | 1 |
| Number C5: Chaos Chimera Dragon | 69757518 | Scripts/c69757518.lua | 1 |
| Number C79: Battlin' Boxer General Kaiser | 10300821 | Scripts/c10300821.lua | 1 |
| Number S38: Titanic Galaxy | 16110708 | Scripts/c16110708.lua | 1 |
| Mereologic Aggregator | 9940036 | Scripts/c9940036.lua | 2 |
| Tantrum Toddler | 7020743 | Scripts/c7020743.lua | 2 |
| Transcendosaurus Drillygnathus | 30128445 | Scripts/c30128445.lua | 1 |
| Expurrely Happiness | 51822687 | Scripts/c51822687.lua | 2 |
| Rank-Up-Magic Revolution Force | 43476205 | Scripts/c43476205.lua | 1 |
| Springans Merrymaker | 48285768 | Scripts/c48285768.lua | 1 |
| Cyber Dragon Infinity | 10443957 | Scripts/c10443957.lua | 1 |
| ...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)