Skip to content

RushDuel.CreateMultiChooseEffect ​

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

Signature ​

lua
RushDuel.CreateMultiChooseEffect(any card, any condition, any cost, any hint1, any target1, any operation1, any hint2, any target2, any operation2) -> any

Description ​

Rush Duel helper declared in RDBase.lua. Its argument names are extracted from the pinned source; parameter and return types have not yet been reviewed.

Upstream source comment ​

text
创建效果: 选择效果

Parameters ​

  • card any: Type and behavior are not yet reviewed; see the source.
  • condition any: Type and behavior are not yet reviewed; see the source.
  • cost any: Type and behavior are not yet reviewed; see the source.
  • hint1 any: Type and behavior are not yet reviewed; see the source.
  • target1 any: Type and behavior are not yet reviewed; see the source.
  • operation1 any: Type and behavior are not yet reviewed; see the source.
  • hint2 any: Type and behavior are not yet reviewed; see the source.
  • target2 any: Type and behavior are not yet reviewed; see the source.
  • operation2 any: Type and behavior are not yet reviewed; see the source.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDBase.lua:182

lua
function RushDuel.CreateMultiChooseEffect(card, condition, cost, hint1, target1, operation1, hint2, target2, operation2)
    local e1 = Effect.CreateEffect(card)
    e1:SetType(EFFECT_TYPE_IGNITION)
    e1:SetRange(LOCATION_MZONE)
    if condition ~= nil then
        e1:SetCondition(condition)
    end
    if cost ~= nil then
        e1:SetCost(cost)
    end
    local e2 = e1:Clone()
    e1:SetDescription(hint1)
    e2:SetDescription(hint2)
    e1:SetTarget(RushDuel.MultiChooseEffectTarget(target1))
    e2:SetTarget(RushDuel.MultiChooseEffectTarget(target2))
    e1:SetOperation(operation1)
    e2:SetOperation(operation2)
    card:RegisterEffect(e1)
    card:RegisterEffect(e2)
    return e1, e2
end

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.CreateMultiChooseEffect.
CardIDScriptDetected Calls
Yamiterasu the Divine Ruler120199036Rush/Scripts/c120199036.lua1
The Trinity Dragiastar120109031Rush/Scripts/c120109031.lua1
The Dragiastar120235035Rush/Scripts/c120235035.lua1
Metarion King Cobrastar120205039Rush/Scripts/c120205039.lua1
Roadstar Gladimagia120272042Rush/Scripts/c120272042.lua1
CAN:D LIVE120199035Rush/Scripts/c120199035.lua1
Chartres the Skysavior Shining Light120301037Rush/Scripts/c120301037.lua1
Gulflare, the Skysavior120253049Rush/Scripts/c120253049.lua1
Sevens Paladin120196015Rush/Scripts/c120196015.lua1
Void Strike Dragon Zerogaigias120211001Rush/Scripts/c120211001.lua1
Fullmetarion Ashurastar120271016Rush/Scripts/c120271016.lua1
Princess Omega the Shining Megastar120217025Rush/Scripts/c120217025.lua1
Gaia, Conqueror of Champions120249046Rush/Scripts/c120249046.lua1
Metarion Vritrastar120196002Rush/Scripts/c120196002.lua1
Metarion Armarostar120272046Rush/Scripts/c120272046.lua1
Sevensgias the Magical Dragon Knight120208037Rush/Scripts/c120208037.lua1
Solciere, the Radiant Skysavior120235038Rush/Scripts/c120235038.lua1
Semeterasu the Divine Ruler120205036Rush/Scripts/c120205036.lua1
Raidacross Ash, Hero of Chaos120199034Rush/Scripts/c120199034.lua1
Endless Romance Blitz120205034Rush/Scripts/c120205034.lua1
Solid Strike Dragon Metagiastar F120217004Rush/Scripts/c120217004.lua1
Omega Guitarna the Shining Megastar120217024Rush/Scripts/c120217024.lua1
Hyperstrike Dragon Dragiastar IF120294040Rush/Scripts/c120294040.lua1
Metarion Medustar120271018Rush/Scripts/c120271018.lua1
...and 17 more

Script Examples ​

Yamiterasu the Divine Ruler (120199036) ​

Source: Rush/Scripts/c120199036.lua

lua
	RD.AddFusionProcedure(c,list[1],list[2])
	--Multi-Choose Effect
	local e1,e2=RD.CreateMultiChooseEffect(c,nil,cm.cost,aux.Stringid(m,1),nil,cm.operation1,aux.Stringid(m,2),cm.target2,cm.operation2)
	e1:SetCategory(CATEGORY_ATKCHANGE)
	e2:SetCategory(CATEGORY_POSITION)

The Trinity Dragiastar (120109031) ​

Source: Rush/Scripts/c120109031.lua

lua
	RD.AddFusionProcedure(c,list[1],list[1],list[1])
	--Multi-Choose Effect
	local e1,e2=RD.CreateMultiChooseEffect(c,cm.condition,cm.cost,aux.Stringid(m,1),cm.target1,cm.operation1,aux.Stringid(m,2),cm.target2,cm.operation2)
	e2:SetCategory(CATEGORY_TOGRAVE+CATEGORY_GRAVE_ACTION+CATEGORY_DESTROY)
end

The Dragiastar (120235035) ​

Source: Rush/Scripts/c120235035.lua

lua
	RD.AddFusionProcedure(c,list[1],list[1])
	--Multi-Choose Effect
	local e1,e2=RD.CreateMultiChooseEffect(c,cm.condition,cm.cost,aux.Stringid(m,1),cm.target1,cm.operation1,aux.Stringid(m,2),cm.target2,cm.operation2)
	e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_GRAVE_SPSUMMON)
end