Skip to content

Duel.GetSynchroMaterial ​

Signature ​

lua
Duel.GetSynchroMaterial(int player, [bool facedown]) -> Group

Description ​

Gets the group of cards player can use as Synchro Material. Face-down cards in the Monster Zone are omitted unless facedown is true.

Parameters ​

  • player int
  • facedown bool optional - default: false

Returns ​

  • Group

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4992

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 18 indexed script(s).
  • Search this function in the Script Explorer with Duel.GetSynchroMaterial.
CardIDScriptDetected Calls
Accel Synchro Stardust Dragon30983281Scripts/c30983281.lua1
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua2
Yummy★Snatchy30581601Scripts/c30581601.lua2
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua2
Saiba the Soldier Swordsmith36608728Scripts/c36608728.lua2
Flower Cardian Moonflowerviewing33541430Scripts/c33541430.lua2
R-Genex Turing61052897Scripts/c61052897.lua2
Naturia Blessing34813545Scripts/c34813545.lua2
Stand Up Centur-Ion!41371602Scripts/c41371602.lua2
Re-dyce-cle85704698Scripts/c85704698.lua2
T.G. Cyber Magician64910482Scripts/c64910482.lua2
Dragunity Whirlwind89450409Scripts/c89450409.lua1
Etude of the Branded45675980Scripts/c45675980.lua2
PSY-Frame Circuit575512Scripts/c575512.lua2
Gold Pride - Leon23512906Scripts/c23512906.lua2
Tatsunoko55863245Scripts/c55863245.lua2
Tatsunecro3096468Scripts/c3096468.lua2
Yang Zing Unleashed77783947Scripts/c77783947.lua2

Script Examples ​

Accel Synchro Stardust Dragon (30983281) ​

Source: Scripts/c30983281.lua

lua
function c30983281.scfilter(c,e,tp,rc,chkrel,chknotrel,tgchk,opchk)
	if not (c:IsCode(44508094) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)) then return false end
	local mg=Duel.GetSynchroMaterial(tp)
	if mg:IsExists(Card.GetHandSynchro,1,nil) then
		local mg2=Duel.GetMatchingGroup(nil,tp,LOCATION_HAND,0,nil)

Flower Cardian Peony with Butterfly (57261568) ​

Source: Scripts/c57261568.lua

lua
	if lv<=c:GetLevel() and lv<=c57261568.cardiansynlevel(c) then return false end
	local g=Group.FromCards(c)
	local mg=Duel.GetSynchroMaterial(tp):Filter(c57261568.synfilter,c,syncard,c,f)
	return mg:IsExists(c57261568.syncheck,1,g,g,mg,tp,lv,syncard,minc,maxc)
end

Yummy★Snatchy (30581601) ​

Source: Scripts/c30581601.lua

lua
	if chk==0 then
		if not Duel.IsPlayerCanSpecialSummon(tp) then return false end
		local mg=Duel.GetSynchroMaterial(tp)
		if mg:IsExists(Card.GetHandSynchro,1,nil) then
			local mg2=Duel.GetMatchingGroup(nil,tp,LOCATION_HAND,0,nil)