Skip to content

RushDuel.CreateFusionEffect ​

Alias: RD.CreateFusionEffect. Requires the matching Rush Duel Lua bootstrap.

Signature ​

lua
RushDuel.CreateFusionEffect(Card card, [function|nil matfilter], [function|nil spfilter], [function|nil exfilter], [int s_range], [int o_range], [function|nil mat_check], [function mat_move], [function|nil target_action], [function|nil operation_action], [function|nil limit_action], [int sum_pos], [bool including_self], [bool self_leave]) -> Effect

Description ​

Creates an Effect with Rush Fusion target and operation callbacks. It does not register an activation: set type, code, category, description and any costs on the returned Effect, then register it. Locations default to zero, material movement to RD.FusionToGrave, and summon position to POS_FACEUP. Legality checks do not choose the monster or materials. Resolution rebuilds both pools, chooses the monster and any alternative material route, then selects materials. The operation callback receives materials then the chosen monster; the internal executor does not forward the core summon count.

Parameters ​

  • card Card: Card receiving the unregistered summoning Effect.
  • matfilter function|nil (optional): Filter for the ordinary material pool, called with a Card.
  • spfilter function|nil (optional): Summon-candidate filter receiving card, effect, player, material Group, optional route filter and check flags.
  • exfilter function|nil (optional): Filter for extra material locations; separate from matfilter.
  • s_range int (optional): Extra material locations on the player side; default 0. These add to the ordinary pool.
  • o_range int (optional): Extra material locations on the opponent side; default 0.
  • mat_check function|nil (optional): Whole-material-Group restriction evaluated with player, selected Group and summon candidate (plus Fusion check flags for Fusion).
  • mat_move function (optional): Material-movement callback (player, selected Group, effect); defaults to the matching FusionToGrave or RitualToGrave helper.
  • target_action function|nil (optional): Additional target-stage action; not called for chk==0.
  • operation_action function|nil (optional): Additional resolution callback (e,tp,eg,ep,ev,re,r,rp,materials,summon_card) after the executor returns; not proof of a positive summon count.
  • limit_action function|nil (optional): Runs after resolution cleanup even when no candidate remains.
  • sum_pos int (optional): Allowed summon positions; defaults to POS_FACEUP.
  • including_self bool (optional): Require the handler among selected materials; default false.
  • self_leave bool (optional): Exclude the handler from materials and account for its departure when checking zones; default false.

Returns ​

  • Effect: Configured but unregistered effect.

Source ​

Rush/Utilities/RDFusion.lua:365

lua
function RushDuel.CreateFusionEffect(card, matfilter, spfilter, exfilter, s_range, o_range, mat_check, mat_move, target_action, operation_action, limit_action, sum_pos, including_self, self_leave)
    local self_range = s_range or 0
    local opponent_range = o_range or 0
    local move = mat_move or RushDuel.FusionToGrave
    local include = including_self or false
    local leave = self_leave or false
    local pos = sum_pos or POS_FACEUP
    local e = Effect.CreateEffect(card)
    e:SetTarget(RushDuel.FusionTarget(card, matfilter, spfilter, exfilter, self_range, opponent_range, mat_check, include, leave, pos, target_action))
    e:SetOperation(RushDuel.FusionOperation(card, matfilter, spfilter, exfilter, self_range, opponent_range, mat_check, move, include, leave, pos, operation_action, limit_action))
    return e
end

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Rush/Scripts/ folder and rush_cards.cdb.

  • Detected in 56 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CreateFusionEffect.
CardIDScriptDetected Calls
Void Dust Fusion120277052Rush/Scripts/c120277052.lua1
Flash Memory Fusion120285062Rush/Scripts/c120285062.lua1
Tama Bond120285053Rush/Scripts/c120285053.lua1
Rising Equip120304062Rush/Scripts/c120304062.lua1
Dragon Tribe Fusion120238024Rush/Scripts/c120238024.lua1
Speed Sniper120301060Rush/Scripts/c120301060.lua2
Galaxy Chaos Fusion120277051Rush/Scripts/c120277051.lua1
Road Apostle Slinger120285032Rush/Scripts/c120285032.lua1
Imaginary Arc Surge120271040Rush/Scripts/c120271040.lua1
Delirium Rebirth120274067Rush/Scripts/c120274067.lua1
Princess Cosmos Stirs120293054Rush/Scripts/c120293054.lua1
Cyber Rush Fusion120278029Rush/Scripts/c120278029.lua1
Power Bond120231070Rush/Scripts/c120231070.lua1
Delirium Embrace120274065Rush/Scripts/c120274065.lua1
Deep Warning Fusion120260020Rush/Scripts/c120260020.lua1
Super Polymerization120307014Rush/Scripts/c120307014.lua1
Elemental HERO Voltic Wingman120277065Rush/Scripts/c120277065.lua1
The United Front with Timaeus120309016Rush/Scripts/c120309016.lua1
Dragons Boost Fusion120244049Rush/Scripts/c120244049.lua1
Cyber Surveillance Dragon120285043Rush/Scripts/c120285043.lua1
The Versus Fusion120283051Rush/Scripts/c120283051.lua1
Metarion Fusion120271036Rush/Scripts/c120271036.lua1
Miracle Secret Arts120290054Rush/Scripts/c120290054.lua1
Psyquip Fusion120253051Rush/Scripts/c120253051.lua1
...and 32 more

Script Examples ​

Void Dust Fusion (120277052) ​

Source: Rush/Scripts/c120277052.lua

lua
function cm.initial_effect(c)
	--Activate
	local e1=RD.CreateFusionEffect(c,aux.FALSE,cm.spfilter,cm.matfilter,LOCATION_GRAVE,0,cm.matcheck,RD.FusionToDeck,nil,cm.operation)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_DESTROY)
	e1:SetType(EFFECT_TYPE_ACTIVATE)

Flash Memory Fusion (120285062) ​

Source: Rush/Scripts/c120285062.lua

lua
	RD.AddCodeList(c,list)
	--Activate
	local e1=RD.CreateFusionEffect(c,aux.FALSE,cm.spfilter,cm.matfilter,LOCATION_GRAVE,0,nil,RD.FusionToDeck,nil,cm.operation)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_GRAVE_SPSUMMON)
	e1:SetType(EFFECT_TYPE_ACTIVATE)

Tama Bond (120285053) ​

Source: Rush/Scripts/c120285053.lua

lua
	RD.AddCodeList(c,list)
	--Activate
	local e1=RD.CreateFusionEffect(c,cm.matfilter,cm.spfilter,nil,0,0,nil,RD.FusionToGrave,nil,cm.operation)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_FUSION_SUMMON+CATEGORY_ATKCHANGE)
	e1:SetType(EFFECT_TYPE_ACTIVATE)