Card.IsCanBeXyzMaterial
Signature
lua
Card.IsCanBeXyzMaterial(Card c, [Card|nil sc]) -> boolDescription
Checks whether c can be used as Xyz Material, optionally for sc. The core rejects Tokens, cards whose Xyz-material type is not a monster, cards with STATUS_FORBIDDEN, and applicable EFFECT_CANNOT_BE_XYZ_MATERIAL effects.
Parameters
cCardscCard|niloptional
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3697
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 70 indexed script(s).
- Search this function in the Script Explorer with
Card.IsCanBeXyzMaterial.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Ghostrick Renovation | 61818176 | Scripts/c61818176.lua | 1 |
| Resurgam Xyz | 49082032 | Scripts/c49082032.lua | 1 |
| Shining Draw | 35906693 | Scripts/c35906693.lua | 1 |
| K9-EW Special Release Experiment | 26585784 | Scripts/c26585784.lua | 1 |
| Power Patron DoomZ | 81650695 | Scripts/c81650695.lua | 1 |
| Rank-Up-Magic Astral Force | 45950291 | Scripts/c45950291.lua | 1 |
| The Phantom Knights' Rank-Up-Magic Requiem | 62104532 | Scripts/c62104532.lua | 1 |
| K9-X Forced Release | 53792930 | Scripts/c53792930.lua | 1 |
| Phantom Knights' Rank-Up-Magic Force | 88504133 | Scripts/c88504133.lua | 2 |
| Super Quantal Mech Ship Magnacarrier | 10424147 | Scripts/c10424147.lua | 1 |
| Exosisters Magnifica | 59242457 | Scripts/c59242457.lua | 1 |
| Purrely | 25550531 | Scripts/c25550531.lua | 1 |
| Odd-Eyes Rebellion Dragon Overlord | 98452268 | Scripts/c98452268.lua | 1 |
| Darktellarknight Batlamyus | 64414267 | Scripts/c64414267.lua | 1 |
| Purrelyeap!? | 82983267 | Scripts/c82983267.lua | 1 |
| Gunkan Sushipyard Seaside Supper Spot | 62200831 | Scripts/c62200831.lua | 1 |
| Galaxy-Eyes Cipher X Dragon | 28346136 | Scripts/c28346136.lua | 1 |
| Raider's Knight | 28781003 | Scripts/c28781003.lua | 1 |
| Number 78: Number Archive | 29085954 | Scripts/c29085954.lua | 1 |
| Salamangreat Blaze Dragon | 9608555 | Scripts/c9608555.lua | 1 |
| CXyz N.As.Ch. Knight | 61374414 | Scripts/c61374414.lua | 1 |
| Rank-Up-Magic Zexal Force | 36224040 | Scripts/c36224040.lua | 1 |
| Materiactor Meltthrough | 66059345 | Scripts/c66059345.lua | 1 |
| Rank-Up-Magic Numeron Force | 48333324 | Scripts/c48333324.lua | 1 |
| ...and 46 more |
Script Examples
Ghostrick Renovation (61818176)
Source: Scripts/c61818176.lua
lua
end
function c61818176.filter2(c,e,tp,mc,code)
return c:IsType(TYPE_XYZ) and c:IsSetCard(0x8d) and not c:IsCode(code) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
endResurgam Xyz (49082032)
Source: Scripts/c49082032.lua
lua
end
function c49082032.spfilter2(c,e,tp,mc,race,rk)
return c:IsRace(race) and c:IsRank(rk) and c:IsSetCard(0x1048,0x1073) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
endShining Draw (35906693)
Source: Scripts/c35906693.lua
lua
end
function c35906693.filter2(c,e,tp,mc)
return c:IsSetCard(0x107f) and c:IsType(TYPE_XYZ) and not c:IsCode(mc:GetCode()) and mc:IsCanBeXyzMaterial(c)
and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_XYZ,tp,false,false) and Duel.GetLocationCountFromEx(tp,tp,mc,c)>0
end