Skip to content

RushDuel.SelectAndSet ​

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

Signature ​

lua
RushDuel.SelectAndSet(any filter, any tp, any s_range, any o_range, any min, any max, any expect, any e, any break_effect) -> any

Description ​

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

Upstream source comment ​

text
操作: 选择魔法, 陷阱卡盖放

Parameters ​

  • filter any: Type and behavior are not yet reviewed; see the source.
  • tp any: Type and behavior are not yet reviewed; see the source.
  • s_range any: Type and behavior are not yet reviewed; see the source.
  • o_range any: Type and behavior are not yet reviewed; see the source.
  • min any: Type and behavior are not yet reviewed; see the source.
  • max any: Type and behavior are not yet reviewed; see the source.
  • expect any: Type and behavior are not yet reviewed; see the source.
  • e any: Type and behavior are not yet reviewed; see the source.
  • break_effect 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/RDAction.lua:188

lua
function RushDuel.SelectAndSet(filter, tp, s_range, o_range, min, max, expect, e, break_effect)
    local ct = RushDuel.GetSZoneCount(tp, max)
    if ct >= min then
        return RushDuel._private_action_select_match(HINTMSG_SET, filter, tp, s_range, o_range, min, ct, expect, false, false, RushDuel._set_spell_trap, e, tp, break_effect)
    end
    return 0
end

Used By ​

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

  • Detected in 30 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SelectAndSet.
CardIDScriptDetected Calls
The Black Witch Facing the Temple120309048Rush/Scripts/c120309048.lua1
Magician's Sense120246088Rush/Scripts/c120246088.lua1
Fusionic Defense120257064Rush/Scripts/c120257064.lua1
Celeb Rose Rich Magicians120287040Rush/Scripts/c120287040.lua1
Iris the Rare Shadow Flower120228018Rush/Scripts/c120228018.lua1
Looter Force120228064Rush/Scripts/c120228064.lua1
Voidvelg Logisticos120244007Rush/Scripts/c120244007.lua1
Zuse the Wisdom Vassal120244014Rush/Scripts/c120244014.lua1
Light-Calling Griffore120280008Rush/Scripts/c120280008.lua1
Shariel, the Novice Sushi Fairy120228028Rush/Scripts/c120228028.lua1
Purple-Eyes Star Cat120235014Rush/Scripts/c120235014.lua1
Shield in the Right Hand120246048Rush/Scripts/c120246048.lua1
Yabume the Frost-Purifying Purebreed120298045Rush/Scripts/c120298045.lua1
Necromaid Doctor120294015Rush/Scripts/c120294015.lua1
Astrobio Drake120235026Rush/Scripts/c120235026.lua1
Wooly Wonderland Planewe120208020Rush/Scripts/c120208020.lua1
Matsugumi the Ruler's Squad120188006Rush/Scripts/c120188006.lua1
Double Chill Dragons120235034Rush/Scripts/c120235034.lua1
DBF Rebuildra120244005Rush/Scripts/c120244005.lua1
Nehime the Dimensional Sworn Ally120309029Rush/Scripts/c120309029.lua1
Winged Dragon of Chaos120280006Rush/Scripts/c120280006.lua1
Trap Mole120238039Rush/Scripts/c120238039.lua1
Charging Remora120253018Rush/Scripts/c120253018.lua1
Swordfish Vanguard Gaju120208022Rush/Scripts/c120208022.lua1
...and 6 more

Script Examples ​

The Black Witch Facing the Temple (120309048) ​

Source: Rush/Scripts/c120309048.lua

lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	RD.SelectAndSet(aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e)
end

Magician's Sense (120246088) ​

Source: Rush/Scripts/c120246088.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.SelectAndSet(aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,2,nil,e)~=0 then
		local e1=Effect.CreateEffect(e:GetHandler())
		e1:SetDescription(aux.Stringid(m,1))

Fusionic Defense (120257064) ​

Source: Rush/Scripts/c120257064.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.SelectAndSet(aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e)~=0 then
		local filter=RD.Filter(cm.filter,tp)
		RD.CanSelectAndDoAction(aux.Stringid(m,1),aux.Stringid(m,2),filter,tp,LOCATION_MZONE,0,1,1,nil,function(g)