Card.CheckRemoveOverlayCard
Signature
lua
Card.CheckRemoveOverlayCard(Card c, int player, int count, int reason) -> boolDescription
Checks whether player can remove at least count Xyz Materials from c for reason. Replacement effects with EFFECT_OVERLAY_REMOVE_REPLACE can make this return true even when c itself has too few materials.
Parameters
cCardplayerintcountintreasonint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3582
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 88 indexed script(s).
- Search this function in the Script Explorer with
Card.CheckRemoveOverlayCard.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Grandpa Demetto | 44190146 | Scripts/c44190146.lua | 1 |
| Number 101: Silent Honor ARK - Soul Asylum | 2419596 | Scripts/c2419596.lua | 2 |
| Number 99: Utopia Dragonar | 95134948 | Scripts/c95134948.lua | 1 |
| D/D/D Deviser King Deus Machinex | 46593546 | Scripts/c46593546.lua | 2 |
| Darktellarknight Batlamyus | 64414267 | Scripts/c64414267.lua | 1 |
| Heroic Champion - Magnum Excalibur | 14301396 | Scripts/c14301396.lua | 1 |
| Salamangreat Blaze Dragon | 9608555 | Scripts/c9608555.lua | 1 |
| Squeeze, the Full Moon of Raise Moon - JACKPOT! | 9484285 | Scripts/c9484285.lua | 1 |
| Fairy Tail - Wiccat | 27632520 | Scripts/c27632520.lua | 1 |
| Raidraptor - Rising Rebellion Falcon | 71222868 | Scripts/c71222868.lua | 1 |
| Time Thief Redoer | 55285840 | Scripts/c55285840.lua | 2 |
| Exstellarknight Constellar Ptolemy Ω7 | 6195332 | Scripts/c6195332.lua | 1 |
| Sacred Noble Knight of King Custennin | 78876707 | Scripts/c78876707.lua | 1 |
| Tellarknight Ptolemaeus | 18326736 | Scripts/c18326736.lua | 2 |
| Infinitrack Earth Slicer | 97584719 | Scripts/c97584719.lua | 1 |
| Grenosaurus Giga-Cannon | 34481518 | Scripts/c34481518.lua | 1 |
| Number 6: Chronomaly Atlandis | 9161357 | Scripts/c9161357.lua | 1 |
| Number 39: Utopia Double | 62517849 | Scripts/c62517849.lua | 1 |
| Baby Spider | 60023855 | Scripts/c60023855.lua | 1 |
| Chasma, Dragon Ruler of Auroras | 4965193 | Scripts/c4965193.lua | 1 |
| Ebon High Magician | 85551711 | Scripts/c85551711.lua | 2 |
| Barrage Blast | 51369889 | Scripts/c51369889.lua | 1 |
| Madolche Puddingcess Chocolat-a-la-Mode | 44311445 | Scripts/c44311445.lua | 1 |
| Rubysapphirus, the Adamant Jewel | 6906306 | Scripts/c6906306.lua | 1 |
| ...and 64 more |
Script Examples
Grandpa Demetto (44190146)
Source: Scripts/c44190146.lua
lua
end
function c44190146.costfilter(c,tp)
return c:IsCode(75574498) and c:IsFaceup() and c:CheckRemoveOverlayCard(tp,1,REASON_COST)
end
function c44190146.spcost(e,tp,eg,ep,ev,re,r,rp,chk)Number 101: Silent Honor ARK - Soul Asylum (2419596)
Source: Scripts/c2419596.lua
lua
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,1,REASON_COST) end
c:RemoveOverlayCard(tp,1,1,REASON_COST)
local ct=Duel.GetOperatedGroup():GetFirst()Number 99: Utopia Dragonar (95134948)
Source: Scripts/c95134948.lua
lua
function c95134948.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:CheckRemoveOverlayCard(tp,2,REASON_COST)
and Duel.GetCustomActivityCount(95134948,tp,ACTIVITY_SPSUMMON)==0
and Duel.GetFlagEffect(tp,95134949)==0