Skip to content

RushDuel.CanSelectAndSet ​

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

Signature ​

lua
RushDuel.CanSelectAndSet(any desc, 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 ​

  • desc any: Type and behavior are not yet reviewed; see the source.
  • 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:196

lua
function RushDuel.CanSelectAndSet(desc, 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_can_select_match(desc, 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 29 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.CanSelectAndSet.
CardIDScriptDetected Calls
Wish of the Skysavior120253064Rush/Scripts/c120253064.lua1
Insect Taurus120300060Rush/Scripts/c120300060.lua1
Grace Princess Hina120287020Rush/Scripts/c120287020.lua1
Plasmatic Model Smart Owl120285019Rush/Scripts/c120285019.lua1
Skysavior Defense120301054Rush/Scripts/c120301054.lua1
Goe Goe the Rumored Ninja120306029Rush/Scripts/c120306029.lua1
Grace Princess Emaki120300021Rush/Scripts/c120300021.lua1
Etraynze the Shadow Flower Restricter120254041Rush/Scripts/c120254041.lua1
Condurglar the Assisting Anthem120293064Rush/Scripts/c120293064.lua1
Celeb Rose Sorcerer120244010Rush/Scripts/c120244010.lua1
Cat Claw Girl120235016Rush/Scripts/c120235016.lua1
Doushin Kaika the Shadow Flower Full Moon120228037Rush/Scripts/c120228037.lua1
Destroyer of Dragon Sorcerers120231049Rush/Scripts/c120231049.lua1
Handy Partners120290032Rush/Scripts/c120290032.lua1
Hagoromo the Cloudle-Handling Celestial Seamstress120246042Rush/Scripts/c120246042.lua1
James the Steam Swallow120257020Rush/Scripts/c120257020.lua1
Space Bud Exploit120260015Rush/Scripts/c120260015.lua1
Lightning Bringer Wako120272024Rush/Scripts/c120272024.lua1
Endoll120170018Rush/Scripts/c120170018.lua1
Fortitude Dragon120170017Rush/Scripts/c120170017.lua1
Straynge Cat Signal120246020Rush/Scripts/c120246020.lua1
Shrine Rhynchus120300027Rush/Scripts/c120300027.lua1
Javelin Dux the Shadow Flower Piercer120228038Rush/Scripts/c120228038.lua1
Healthie Cafferin120306019Rush/Scripts/c120306019.lua1
...and 5 more

Script Examples ​

Wish of the Skysavior (120253064) ​

Source: Rush/Scripts/c120253064.lua

lua
	RD.SelectAndDoAction(HINTMSG_TODECK,Card.IsAbleToDeck,tp,0,LOCATION_MZONE,1,1,nil,function(g)
		if RD.SendToDeckBottom(g,e,tp,REASON_EFFECT)~=0 then
			RD.CanSelectAndSet(aux.Stringid(m,1),aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,true)
		end
	end)

Insect Taurus (120300060) ​

Source: Rush/Scripts/c120300060.lua

lua
			RD.AttachAtkDef(e,tc,atk,0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
		end)
		RD.CanSelectAndSet(aux.Stringid(m,2),aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e)
	end
end

Grace Princess Hina (120287020) ​

Source: Rush/Scripts/c120287020.lua

lua
		local ex=tc:IsCode(list[1])
		if Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 and ex then
			RD.CanSelectAndSet(aux.Stringid(m,1),aux.NecroValleyFilter(cm.setfilter),tp,LOCATION_GRAVE,0,1,1,nil,e)
		end
	end)