Skip to content

RushDuel.CreateAdvanceCheck ​

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

Signature ​

lua
RushDuel.CreateAdvanceCheck(any card, any filter, any count, any flag) -> any

Description ​

Rush Duel helper declared in RDSummon.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.
  • filter any: Type and behavior are not yet reviewed; see the source.
  • count any: Type and behavior are not yet reviewed; see the source.
  • flag 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/RDSummon.lua:180

lua
function RushDuel.CreateAdvanceCheck(card, filter, count, flag)
    local e1 = Effect.CreateEffect(card)
    e1:SetType(EFFECT_TYPE_SINGLE)
    e1:SetCode(EFFECT_MATERIAL_CHECK)
    e1:SetValue(function(e, c)
        local mg = c:GetMaterial()
        local ct = math.min(count, #mg)
        local label = 0
        if c:IsLevelBelow(6) and count == 2 then
            -- 当前等级小于解放要求
        elseif ct > 0 and mg:IsExists(filter, ct, nil, e) then
            label = flag
        end
        e:SetLabel(label)
    end)
    card:RegisterEffect(e1)
    local e2 = Effect.CreateEffect(card)
    e2:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
    e2:SetCode(EVENT_SUMMON_SUCCESS)
    e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
    e2:SetLabelObject(e1)
    e2:SetCondition(RushDuel.AdvanceCheckCondition)
    e2:SetOperation(RushDuel.AdvanceCheckOperation)
    card:RegisterEffect(e2)
    return e1, e2
end

Used By ​

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

  • Detected in 11 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CreateAdvanceCheck.
CardIDScriptDetected Calls
Royal Rebel's Heavy Metal120130031Rush/Scripts/c120130031.lua1
Royal Rebel's Extreme120306006Rush/Scripts/c120306006.lua1
Super Galaxy King Lord of Galactica120254038Rush/Scripts/c120254038.lua1
Royal Rebel's Doom Metal120170024Rush/Scripts/c120170024.lua1
Jointech Hero120249008Rush/Scripts/c120249008.lua1
Secret Guardian Miscalculate120257023Rush/Scripts/c120257023.lua1
Royal Rebel's Progrock120254017Rush/Scripts/c120254017.lua1
Contact Dark Matter Wyvern120264003Rush/Scripts/c120264003.lua1
Royal Rebel's Hard Rock120203012Rush/Scripts/c120203012.lua1
Royal Rebel's Growl120140016Rush/Scripts/c120140016.lua1
Royal Rebel's Invasion120140015Rush/Scripts/c120140015.lua1

Script Examples ​

Royal Rebel's Heavy Metal (120130031) ​

Source: Rush/Scripts/c120130031.lua

lua
function cm.initial_effect(c)
	--Tribute
	RD.CreateAdvanceCheck(c,cm.tricheck,1,20130031)
	--Destroy
	local e1=Effect.CreateEffect(c)

Royal Rebel's Extreme (120306006) ​

Source: Rush/Scripts/c120306006.lua

lua
function cm.initial_effect(c)
	--Tribute
	RD.CreateAdvanceCheck(c,cm.tricheck,1,20309006)
	--Release
	local e1=Effect.CreateEffect(c)

Super Galaxy King Lord of Galactica (120254038) ​

Source: Rush/Scripts/c120254038.lua

lua
	RD.AddMaximumProcedure(c,4000,list[1],list[2])
	--Tribute
	RD.CreateAdvanceCheck(c,cm.tricheck,1,20254038)
	--To Hand
	local e1=Effect.CreateEffect(c)