Skip to content

Card.GetMaterialCount ​

Signature ​

lua
Card.GetMaterialCount(Card c) -> int

Description ​

Returns the number of cards currently recorded as c's materials.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 25 indexed script(s).
  • Search this function in the Script Explorer with Card.GetMaterialCount.
CardIDScriptDetected Calls
Ashened to Endlessness34813443Scripts/c34813443.lua1
Saryuja Skull Dread74997493Scripts/c74997493.lua3
Dark Alligator34479658Scripts/c34479658.lua1
Gold Pride - Pin Baller28497830Scripts/c28497830.lua2
Cosmic Quasar Dragon37442336Scripts/c37442336.lua1
Ravenous Crocodragon Archethys87188910Scripts/c87188910.lua1
Alba-Lenatus the Abyss Dragon3410461Scripts/c3410461.lua1
Clorless, Chaos King of Dark World22723778Scripts/c22723778.lua1
Wake Up Your Elemental HERO32828466Scripts/c32828466.lua1
The Arrival Cyberse @Ignister11738489Scripts/c11738489.lua1
Yubel - The Loving Defender Forever47172959Scripts/c47172959.lua1
Diabolantis the Menacing Mantis24634594Scripts/c24634594.lua1
Apollousa, Bow of the Goddess4280258Scripts/c4280258.lua1
Frightfur Sabre-Tooth80889750Scripts/c80889750.lua1
Tlakalel, His Malevolent Majesty82319644Scripts/c82319644.lua1
Shooting Quasar Dragon35952884Scripts/c35952884.lua1
Bloom Prima the Melodious Choir24672164Scripts/c24672164.lua1
Chimera the Illusion Beast38264974Scripts/c38264974.lua1
Evolution End Burst78217065Scripts/c78217065.lua2
Divine Grace - Northwemko61757117Scripts/c61757117.lua1
Chimeratech Overdragon64599569Scripts/c64599569.lua2
Synchro Strike30123142Scripts/c30123142.lua2
Intercept59695933Scripts/c59695933.lua1
Giganticastle63422098Scripts/c63422098.lua1
...and 1 more

Script Examples ​

Ashened to Endlessness (34813443) ​

Source: Scripts/c34813443.lua

lua
		e1:SetType(EFFECT_TYPE_SINGLE)
		e1:SetCode(EFFECT_UPDATE_ATTACK)
		e1:SetValue(tc:GetMaterialCount()*500)
		e1:SetReset(RESET_EVENT+RESETS_STANDARD)
		tc:RegisterEffect(e1)

Saryuja Skull Dread (74997493) ​

Source: Scripts/c74997493.lua

lua
function c74997493.regop(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	if c:GetMaterialCount()>=2 then
		local e1=Effect.CreateEffect(c)
		e1:SetDescription(aux.Stringid(74997493,0))

Dark Alligator (34479658) ​

Source: Scripts/c34479658.lua

lua
function c34479658.tkcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return c:IsSummonType(SUMMON_TYPE_ADVANCE) and c:GetMaterialCount()>0
end
function c34479658.tktg(e,tp,eg,ep,ev,re,r,rp,chk)