Skip to content

Card.IsCanBeXyzMaterial ​

Signature ​

lua
Card.IsCanBeXyzMaterial(Card c, [Card|nil sc]) -> bool

Description ​

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 ​

  • c Card
  • sc Card|nil optional

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.
CardIDScriptDetected Calls
Ghostrick Renovation61818176Scripts/c61818176.lua1
Resurgam Xyz49082032Scripts/c49082032.lua1
Shining Draw35906693Scripts/c35906693.lua1
K9-EW Special Release Experiment26585784Scripts/c26585784.lua1
Power Patron DoomZ81650695Scripts/c81650695.lua1
Rank-Up-Magic Astral Force45950291Scripts/c45950291.lua1
The Phantom Knights' Rank-Up-Magic Requiem62104532Scripts/c62104532.lua1
K9-X Forced Release53792930Scripts/c53792930.lua1
Phantom Knights' Rank-Up-Magic Force88504133Scripts/c88504133.lua2
Super Quantal Mech Ship Magnacarrier10424147Scripts/c10424147.lua1
Exosisters Magnifica59242457Scripts/c59242457.lua1
Purrely25550531Scripts/c25550531.lua1
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Darktellarknight Batlamyus64414267Scripts/c64414267.lua1
Purrelyeap!?82983267Scripts/c82983267.lua1
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
Galaxy-Eyes Cipher X Dragon28346136Scripts/c28346136.lua1
Raider's Knight28781003Scripts/c28781003.lua1
Number 78: Number Archive29085954Scripts/c29085954.lua1
Salamangreat Blaze Dragon9608555Scripts/c9608555.lua1
CXyz N.As.Ch. Knight61374414Scripts/c61374414.lua1
Rank-Up-Magic Zexal Force36224040Scripts/c36224040.lua1
Materiactor Meltthrough66059345Scripts/c66059345.lua1
Rank-Up-Magic Numeron Force48333324Scripts/c48333324.lua1
...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
end

Resurgam 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
end

Shining 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