Skip to content

Duel.SelectFusionMaterial ​

Signature ​

lua
Duel.SelectFusionMaterial(int player, Card c, Group g, [Card|nil gc], [int chkf], [bool not_material]) -> Group

Description ​

Lets player select a valid Fusion Material group for Fusion Monster c from g and returns the selected Group. gc, when supplied, must be included. The returned Group also contains gc, matching the core selection behavior.

Parameters ​

  • player int
  • c Card
  • g Group
  • gc Card|nil optional
  • chkf int optional - default: PLAYER_NONE
  • not_material bool optional - default: false

Returns ​

  • Group

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 229 indexed script(s).
  • Search this function in the Script Explorer with Duel.SelectFusionMaterial.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua2
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua2
Artmage Non-Finito74631897Scripts/c74631897.lua2
Lady's Dragonmaid48658295Scripts/c48658295.lua2
Eternal Favorite87532344Scripts/c87532344.lua2
Surprise Fusion35167375Scripts/c35167375.lua2
Spellbook of the Grand Circle11911336Scripts/c11911336.lua2
Ultra Polymerization76647978Scripts/c76647978.lua2
Melffy Playtime Surprise58036097Scripts/c58036097.lua2
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua2
Yomagna the Fire Phantom17350692Scripts/c17350692.lua2
Fiendsmith's Sequence49867899Scripts/c49867899.lua2
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua2
Mementotlan Fusion66518509Scripts/c66518509.lua2
Favorite HERO Flame Wingman13243124Scripts/c13243124.lua2
Mixousia the Confounder80843006Scripts/c80843006.lua2
Gem-Knight Dispersion24220368Scripts/c24220368.lua2
Invoked Sorath43989315Scripts/c43989315.lua2
Spirit Illusion71939275Scripts/c71939275.lua2
Lubellion the Searing Dragon70534340Scripts/c70534340.lua2
Destratification Dino Stratiae3841104Scripts/c3841104.lua2
Magnet Bonding65514302Scripts/c65514302.lua2
Hecahands Tartaros57809669Scripts/c57809669.lua2
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua2
...and 205 more

Script Examples ​

Salamandra with Chain (62091148) ​

Source: Scripts/c62091148.lua

lua
		local tc=tg:GetFirst()
		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

Astrograph Sorcerer, the Starfrost Magician (48171151) ​

Source: Scripts/c48171151.lua

lua
		local tc=tg:GetFirst()
		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

Artmage Non-Finito (74631897) ​

Source: Scripts/c74631897.lua

lua
		local tc=tg:GetFirst()
		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)