Skip to content

Card.GetMaterial ​

Signature ​

lua
Card.GetMaterial(Card c) -> Group

Description ​

Returns a Group containing the cards currently stored as c's material cards.

Parameters ​

  • c Card - Card whose stored material list is being read.

Returns ​

  • Group - New Group containing c's stored material cards; the Group is empty if no material cards are stored.

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 215 indexed script(s).
  • Search this function in the Script Explorer with Card.GetMaterial.
CardIDScriptDetected Calls
Ultra Polymerization76647978Scripts/c76647978.lua2
Destratification Dino Stratiae3841104Scripts/c3841104.lua1
Particle Fusion39261576Scripts/c39261576.lua1
Ostinato9113513Scripts/c9113513.lua1
Magikey Dragon - Andrabime71159974Scripts/c71159974.lua1
S:P Little Knight29301450Scripts/c29301450.lua1
Dracotail Arthalion33760966Scripts/c33760966.lua1
Hi-Speedroid Cork Shooter23361526Scripts/c23361526.lua2
X-Saber Pellina9978697Scripts/c9978697.lua1
Odd-Eyes Rebellion Dragon Overlord98452268Scripts/c98452268.lua1
Nirvana High Paladin80896940Scripts/c80896940.lua1
Dual Avatar - Manifested A-Un28798938Scripts/c28798938.lua1
Genex Ally Triforce52709508Scripts/c52709508.lua1
Genex Ally Triarm17760003Scripts/c17760003.lua1
Metaltron XII, the True Dracombatant57761191Scripts/c57761191.lua1
Cupid Pitch21915012Scripts/c21915012.lua1
Kewl Tune Remix88170262Scripts/c88170262.lua1
Salamangreat Blaze Dragon9608555Scripts/c9608555.lua1
Borrelcode Dragon67288539Scripts/c67288539.lua1
Crystron Halqifibrax Prism65400671Scripts/c65400671.lua1
Salamangreat Raging Phoenix57134592Scripts/c57134592.lua1
Salamangreat Sunlight Wolf87871125Scripts/c87871125.lua1
Dual Avatar Feet - Armored Un-Gyo7631534Scripts/c7631534.lua1
Kewl Tune B2B65961304Scripts/c65961304.lua1
...and 191 more

Script Examples ​

Ultra Polymerization (76647978) ​

Source: Scripts/c76647978.lua

lua
function c76647978.spfilter(c,e,tp)
	if c:IsFaceup() and c:GetFlagEffect(76647978)~=0 and c==e:GetLabelObject() then
		local mg=c:GetMaterial()
		local ct=mg:GetCount()
		return ct>0 and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE)

Destratification Dino Stratiae (3841104) ​

Source: Scripts/c3841104.lua

lua
end
function s.valcheck(e,c)
	local g=c:GetMaterial()
	local atk=0
	for tc in aux.Next(g) do

Particle Fusion (39261576) ​

Source: Scripts/c39261576.lua

lua
function c39261576.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	local tc=eg:GetFirst()
	local mat=tc:GetMaterial()
	if chkc then return chkc:IsSetCard(0x1047) and mat:IsContains(chkc) end
	if chk==0 then return mat:IsExists(Card.IsSetCard,1,nil,0x1047) end