RushDuel.AddFusionProcedure
Alias: RD.AddFusionProcedure. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.AddFusionProcedure(Card card, bool|any sub, bool|any insf, ... int|function|table) -> Effect|nilDescription
Registers a Rush Fusion material procedure using fixed material slots. Each slot may be a card code, a predicate, or a table of alternatives. sub controls substitutes and insf permits non-Fusion special-summon handling; use explicit booleans to make the call unambiguous.
Parameters
cardCard: Fusion monster.subbool|any: Substitute permission; non-booleans are interpreted as the first material slot.insfbool|any: Non-Fusion summon allowance; non-booleans are interpreted as a material slot....int|function|table: Material slots.
Returns
Effect|nil: Fusion procedure effect; nil while copying effects.
Source
Rush/Utilities/RDFusion.lua:15
lua
function RushDuel.AddFusionProcedure(card, sub, insf, ...)
if card:IsStatus(STATUS_COPYING_EFFECT) then
return
end
local vals = {...}
-- 简易融合
if type(insf) ~= "boolean" then
table.insert(vals, 1, insf)
insf = true
end
-- 融合素材替代
if type(sub) ~= "boolean" then
table.insert(vals, 1, sub)
sub = true
end
-- 融合素材
local codes, funcs = RushDuel.MakeFusionMaterial(card, table.unpack(vals))
RushDuel.SetFusionMaterialData(card, codes, #funcs, #funcs)
return RushDuel.CreateFusionProcedure(card, sub, insf, funcs, nil, 0, 0, nil)
endGuided Examples
Learn how to use this function in context:
Used By
Generated from the local Rush/Scripts/ folder and rush_cards.cdb.
- Detected in 307 indexed script(s).
- Search this function in the Script Explorer with
RushDuel.AddFusionProcedure.
Script Examples
Volcalizing Salamandeus (120272039)
Source: Rush/Scripts/c120272039.lua
lua
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],cm.matfilter)
--Atk Down
local e1=Effect.CreateEffect(c)Voidalfr Star Mayfly (120300034)
Source: Rush/Scripts/c120300034.lua
lua
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],cm.matfilter)
--To Hand
local e1=Effect.CreateEffect(c)Vapor Lancer the Super Graphagas (120260063)
Source: Rush/Scripts/c120260063.lua
lua
RD.AddCodeList(c,list)
--Fusion Material
RD.AddFusionProcedure(c,list[1],list[2])
--Discard Deck
local e1=Effect.CreateEffect(c)