Duel.SelectFusionMaterial
Signature
lua
Duel.SelectFusionMaterial(int player, Card c, Group g, [Card|nil gc], [int chkf], [bool not_material]) -> GroupDescription
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
playerintcCardgGroupgcCard|niloptionalchkfintoptional - default: PLAYER_NONEnot_materialbooloptional - 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.
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) thenAstrograph 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) thenArtmage 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)