Skip to content

RushDuel.SelectAndSpecialSummon ​

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

Signature ​

lua
RushDuel.SelectAndSpecialSummon(function filter, int tp, int s_range, int o_range, int min, int max, Card|Group|nil expect, Effect e, int pos, [bool break_effect], [int target_player]) -> int

Description ​

Checks destination Monster Zone capacity, selects a nonempty Group and performs an ordinary Special Summon with summon type 0, nocheck=false and nolimit=false. The filter must supply per-card summon legality; zone capacity alone does not make every monster summonable. Unlike the general SelectAndDoAction wrapper, this helper passes e,tp,pos,break_effect,target_player as extra filter arguments. The return value is the actual Duel.SpecialSummon count, or 0 when no selection/summon occurs. Face-down summon confirmation is handled by the Rush private wrapper.

Parameters ​

  • filter function: Candidate predicate; receives card,e,tp,pos,break_effect,target_player. Include per-card summon legality.
  • tp int: Selecting and summoning player.
  • s_range int: Source locations on tp side.
  • o_range int: Source locations on the opponent side.
  • min int: Minimum selected count.
  • max int: Maximum count, capped by the destination zone count.
  • expect Card|Group|nil: Excluded Card(s), or nil.
  • e Effect: Source effect passed to the filter.
  • pos int: Required summon position mask.
  • break_effect bool (optional): Call Duel.BreakEffect immediately before summoning; default false.
  • target_player int (optional): Destination player; defaults to tp. Does not change which player makes the choice.

Returns ​

  • int: Actual summon count, or 0 if capacity/candidates/selection do not permit the operation.

Source ​

Rush/Utilities/RDAction.lua:123

lua
function RushDuel.SelectAndSpecialSummon(filter, tp, s_range, o_range, min, max, expect, e, pos, break_effect, target_player)
    local ct = RushDuel.GetMZoneCount(target_player or tp, max)
    if ct >= min then
        return RushDuel._private_action_select_match(HINTMSG_SPSUMMON, filter, tp, s_range, o_range, min, ct, expect, false, false, RushDuel._special_summon, e, tp, pos, break_effect, target_player)
    end
    return 0
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 270 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SelectAndSpecialSummon.
CardIDScriptDetected Calls
Nativity of the Monarchs120244063Rush/Scripts/c120244063.lua1
Instant Gift120306059Rush/Scripts/c120306059.lua1
Valkyrian Guard120231066Rush/Scripts/c120231066.lua1
Hybridrive Back Fusion120261052Rush/Scripts/c120261052.lua1
Jinzo the Machine Menace120257028Rush/Scripts/c120257028.lua1
YXZ-Cannon Dragon120305004Rush/Scripts/c120305004.lua1
Evolution Result Flash120290063Rush/Scripts/c120290063.lua1
Devil Foolish120244026Rush/Scripts/c120244026.lua1
Sunset Rebirth120257066Rush/Scripts/c120257066.lua1
Necromaid Timer120294014Rush/Scripts/c120294014.lua1
Road Servant Flare120109050Rush/Scripts/c120109050.lua1
Blaze Fiend Overlord Zebulth120287033Rush/Scripts/c120287033.lua1
Shadow Flower Clone120228049Rush/Scripts/c120228049.lua1
Cosmostar the White Hole Polairy120293045Rush/Scripts/c120293045.lua1
Plasmatic Model Tool Ceto120301069Rush/Scripts/c120301069.lua1
Speed Carrier120301059Rush/Scripts/c120301059.lua1
Etraynze the Shadow Flower Ninja120170029Rush/Scripts/c120170029.lua1
Excutie Riding!120249064Rush/Scripts/c120249064.lua1
Soul Drake120252007Rush/Scripts/c120252007.lua1
Pholus the Star Knight120203020Rush/Scripts/c120203020.lua1
Reborn Pattern120294064Rush/Scripts/c120294064.lua1
Despair and Desire120301034Rush/Scripts/c120301034.lua1
Ice Age Pounder120304027Rush/Scripts/c120304027.lua1
Transam Road Linac120235030Rush/Scripts/c120235030.lua1
...and 246 more

Script Examples ​

Nativity of the Monarchs (120244063) ​

Source: Rush/Scripts/c120244063.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.SelectAndSpecialSummon(cm.spfilter,tp,LOCATION_HAND,0,1,1,nil,e,POS_FACEUP_ATTACK)~=0 then
		local g=eg:Filter(Card.IsRelateToEffect,nil,e)
		if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then

Instant Gift (120306059) ​

Source: Rush/Scripts/c120306059.lua

lua
	local code=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
	local filter=RD.Filter(cm.spfilter,e,tp,code)
	if RD.SelectAndSpecialSummon(aux.NecroValleyFilter(filter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP)~=0 then
		RD.CanDraw(aux.Stringid(m,1),tp,1,true)
	end

Valkyrian Guard (120231066) ​

Source: Rush/Scripts/c120231066.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.SelectAndSpecialSummon(aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE,0,1,1,nil,e,POS_FACEUP_ATTACK)~=0 then
		local filter=RD.Filter(cm.posfilter,e,tp)
		RD.CanSelectGroupAndDoAction(aux.Stringid(m,1),HINTMSG_POSCHANGE,filter,cm.poscheck,tp,LOCATION_MZONE,0,1,3,nil,function(g)