Skip to content

RushDuel.CreateRitualEffect ​

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

Signature ​

lua
RushDuel.CreateRitualEffect(Card card, int type, [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], [bool including_self], [bool self_leave]) -> Effect

Description ​

Creates an Effect with Rush Ritual target and operation callbacks. Configure the returned Effect's activation type, code, category and other requirements, then register it. The comparison mode is one of RITUAL_*; material locations default to zero and material movement defaults to RD.RitualToGrave. Original/current selects which value of the Ritual monster sets the requirement. Material Level sums use Card.GetRitualLevel and ATK sums use Card.GetAttack in this snapshot; ORIGINAL does not universally mean reading every material's printed stat. Use this factory for the pinned Ritual scripts. Resolution chooses an Extra Deck monster, then a material route and a legal material Group. Canceling material selection returns to monster selection. The operation callback receives the selected materials and Ritual monster, not a numeric summon result.

Parameters ​

  • card Card: Card receiving the unregistered summoning Effect.
  • type int: RITUAL_* comparison mode; required.
  • 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.
  • 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/RDRitual.lua:46

lua
function RushDuel.CreateRitualEffect(card, type, matfilter, spfilter, exfilter, s_range, o_range, mat_check, mat_move, target_action, operation_action, limit_action, including_self, self_leave)
    local self_range = s_range or 0
    local opponent_range = o_range or 0
    local move = mat_move or RushDuel.RitualToGrave
    local include = including_self or false
    local leave = self_leave or false
    local e = Effect.CreateEffect(card)
    e:SetTarget(RushDuel.RitualTarget(card, type, matfilter, spfilter, exfilter, self_range, opponent_range, mat_check, include, leave, target_action))
    e:SetOperation(RushDuel.RitualOperation(card, type, matfilter, spfilter, exfilter, self_range, opponent_range, mat_check, move, include, leave, 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 41 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CreateRitualEffect.
CardIDScriptDetected Calls
Ceremonial Gate120280031Rush/Scripts/c120280031.lua1
Black Magic Ritual120280030Rush/Scripts/c120280030.lua1
Jeweled Tusk Ritual120290056Rush/Scripts/c120290056.lua1
Skullrise Squall120298011Rush/Scripts/c120298011.lua1
Dimension Pair Link L120309030Rush/Scripts/c120309030.lua1
Dimension Pair Link R120309031Rush/Scripts/c120309031.lua1
Healthy's High!120306051Rush/Scripts/c120306051.lua1
I'm Having Trouble with My Fields Being Destroyed!120298028Rush/Scripts/c120298028.lua1
I Need Holy Water to Ward Off Evil Spirits!120298029Rush/Scripts/c120298029.lua1
Endless Partner120300050Rush/Scripts/c120300050.lua1
Monumenthes Festival -The Isyria Seance-120300046Rush/Scripts/c120300046.lua1
Ninjitsu Art of Ultimate Transformation120306056Rush/Scripts/c120306056.lua1
Plasmatic Model Another Play120301070Rush/Scripts/c120301070.lua1
Skullrise Violent120298012Rush/Scripts/c120298012.lua1
Plasmatic Model Another Docking120290051Rush/Scripts/c120290051.lua1
Beastly Mirror Calling120304057Rush/Scripts/c120304057.lua1
Altar of the Twin Blaze Fiends120287036Rush/Scripts/c120287036.lua1
Plasmatic Model Play120285058Rush/Scripts/c120285058.lua1
Necromaid Resize120294050Rush/Scripts/c120294050.lua1
Plasmatic Model Docking120285057Rush/Scripts/c120285057.lua1
Healthy Mind Speedy Buzzer Battle!120306052Rush/Scripts/c120306052.lua1
Bluefin Oath120287085Rush/Scripts/c120287085.lua1
Legend Possessed120293068Rush/Scripts/c120293068.lua1
War-Lion Assault120294058Rush/Scripts/c120294058.lua1
...and 17 more

Script Examples ​

Ceremonial Gate (120280031) ​

Source: Rush/Scripts/c120280031.lua

lua
	RD.AddCodeList(c,list)
	--Activate
	local e1=RD.CreateRitualEffect(c,RITUAL_ORIGINAL_LEVEL_GREATER,cm.matfilter,cm.spfilter)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_ACTIVATE)

Black Magic Ritual (120280030) ​

Source: Rush/Scripts/c120280030.lua

lua
	RD.AddCodeList(c,list)
	--Activate
	local e1=RD.CreateRitualEffect(c,RITUAL_ORIGINAL_LEVEL_GREATER,nil,cm.spfilter)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_ACTIVATE)

Jeweled Tusk Ritual (120290056) ​

Source: Rush/Scripts/c120290056.lua

lua
	Duel.AddCustomActivityCounter(m,ACTIVITY_SPSUMMON,cm.ctfilter)
	--Activate
	local e1=RD.CreateRitualEffect(c,RITUAL_ORIGINAL_LEVEL_GREATER,cm.matfilter,cm.spfilter,nil,0,0,nil,RD.RitualToGrave,nil,cm.operation)
	e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e1:SetType(EFFECT_TYPE_ACTIVATE)