Skip to content

RushDuel.SendDeckTopToGraveAndCanSelect ​

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

Signature ​

lua
RushDuel.SendDeckTopToGraveAndCanSelect(any player, any count, any desc, any hint, any filter, any min, any max, ... any) -> 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 ​

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

lua
function RushDuel.SendDeckTopToGraveAndCanSelect(player, count, desc, hint, filter, min, max, ...)
    if Duel.DiscardDeck(player, count, REASON_EFFECT) ~= 0 then
        local g = Duel.GetOperatedGroup()
        local mg = g:Filter(filter, nil, ...)
        if #mg >= min then
            local sg = RushDuel.CanSelect(desc, hint, player, mg, nil, min, max)
            if sg and #sg > 0 then
                g:Sub(sg)
                return sg, g
            end
        end
        return Group.CreateGroup(), g
    end
    return Group.CreateGroup(), Group.CreateGroup()
end

Used By ​

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

  • Detected in 18 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendDeckTopToGraveAndCanSelect.
CardIDScriptDetected Calls
Ember the Ultra Assistant120283035Rush/Scripts/c120283035.lua1
Lua, the Fairy of Skysavior120235021Rush/Scripts/c120235021.lua1
Sparkhearts Anesh120298022Rush/Scripts/c120298022.lua1
Ritche of Hope120287072Rush/Scripts/c120287072.lua1
Chemipet Chirp120261009Rush/Scripts/c120261009.lua1
Celeb Rose Wiz120253008Rush/Scripts/c120253008.lua1
Space Call120260018Rush/Scripts/c120260018.lua1
Future Aeromancer120231054Rush/Scripts/c120231054.lua1
Nimble Lemming120238020Rush/Scripts/c120238020.lua1
Dead Heat the Mad Fiend of Despair120301029Rush/Scripts/c120301029.lua1
Police Hound of the Blaze Fiends120287035Rush/Scripts/c120287035.lua1
The Journeying Three Magi120304058Rush/Scripts/c120304058.lua1
Dimension Jump120309032Rush/Scripts/c120309032.lua1
Balloon Butier120277037Rush/Scripts/c120277037.lua1
Chaos Femtron120260012Rush/Scripts/c120260012.lua1
Carrier Manta Ray120253019Rush/Scripts/c120253019.lua1
Resolve120246054Rush/Scripts/c120246054.lua1
Delirium Honeyed Words120274064Rush/Scripts/c120274064.lua1

Script Examples ​

Ember the Ultra Assistant (120283035) ​

Source: Rush/Scripts/c120283035.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	if RD.Draw()~=0 and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
		local sg,og=RD.SendDeckTopToGraveAndCanSelect(tp,2,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),1,1)
		if sg:GetCount()>0 then
			Duel.BreakEffect()

Lua, the Fairy of Skysavior (120235021) ​

Source: Rush/Scripts/c120235021.lua

lua
		if not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
		Duel.BreakEffect()
		local sg,og=RD.SendDeckTopToGraveAndCanSelect(tp,3,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),1,1)
		if sg:GetCount()>0 then
			Duel.BreakEffect()

Sparkhearts Anesh (120298022) ​

Source: Rush/Scripts/c120298022.lua

lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	local sg,og=RD.SendDeckTopToGraveAndCanSelect(tp,3,aux.Stringid(m,2),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),1,1)
	if sg:GetCount()>0 then
		Duel.BreakEffect()