Card.SetMaterial
Signature
lua
Card.SetMaterial(Card c, [Group|nil g]) -> voidDescription
Sets g as c's material group for a Summon, or clears c's materials when g is nil.
Parameters
cCardgGroup|niloptional
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3569
Guided Examples
Learn how to use this function in context:
- Fusion Procedure Guide
- Link Procedure Guide
- Ritual Procedure Guide
- Synchro Procedure Guide
- Tribute Summon Materials
- Xyz Procedure Guide
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 488 indexed script(s).
- Search this function in the Script Explorer with
Card.SetMaterial.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc:SetMaterial(mat1)
if mat1:IsExists(s.fdfilter,1,nil) then
local cg=mat1:Filter(s.fdfilter,nil)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or ce~=nil and not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc:SetMaterial(mat)
if mat:IsExists(Card.IsFacedown,1,nil) then
local cg=mat:Filter(Card.IsFacedown,nil)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or ce and not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc:SetMaterial(mat1)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect()