Skip to content

RushDuel.SendToDeckTop ​

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

Signature ​

lua
RushDuel.SendToDeckTop(any target, any effect, any player, any reason) -> 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 ​

  • target any: Type and behavior are not yet reviewed; see the source.
  • effect any: Type and behavior are not yet reviewed; see the source.
  • player any: Type and behavior are not yet reviewed; see the source.
  • reason 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:386

lua
function RushDuel.SendToDeckTop(target, effect, player, reason)
    local hints = Group.CreateGroup()
    local group = RushDuel.ToGroup(target):Filter(RushDuel.FilterToDeckTarget, nil, effect, player, reason, hints)
    local g = RushDuel.ToMaximunGroup(group)
    local tc = hints:GetFirst()
    if tc then
        Duel.Hint(HINT_CARD, 0, tc:GetOriginalCode())
    end
    if #g == 0 then
        return 0
    end
    local og, ct = RushDuel.SendToDeckSort(g, SEQ_DECKTOP, REASON_EFFECT, player)
    return ct
end

Used By ​

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

  • Detected in 27 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendToDeckTop.
CardIDScriptDetected Calls
Major Breaking News!120304060Rush/Scripts/c120304060.lua1
Ether Escape120235062Rush/Scripts/c120235062.lua1
Eria the Water Spiritualist120301010Rush/Scripts/c120301010.lua1
Spice Cross Black Pepper120261061Rush/Scripts/c120261061.lua1
JAM:P Set!120183041Rush/Scripts/c120183041.lua1
Twilight Companion - Dralia120304068Rush/Scripts/c120304068.lua1
Reporter Recorder120304010Rush/Scripts/c120304010.lua1
Master Craftsman Kotetsu120238036Rush/Scripts/c120238036.lua1
The Nomnom Liliputian120309054Rush/Scripts/c120309054.lua1
Reporter Wars Scoopies [R]120304009Rush/Scripts/c120304009.lua1
Unfulfilled Goblin120203039Rush/Scripts/c120203039.lua1
Alchemicalize Orb120272037Rush/Scripts/c120272037.lua1
Black Dragon's Roar120203053Rush/Scripts/c120203053.lua1
Dice Key Kuu120261011Rush/Scripts/c120261011.lua1
The Imprisoned Dragon Princess120306009Rush/Scripts/c120306009.lua1
Deep Space Impact120260023Rush/Scripts/c120260023.lua1
Sparkle the Super Assistant120254065Rush/Scripts/c120254065.lua2
Worker Warrior - Multitasking Manager120304028Rush/Scripts/c120304028.lua1
Ether F Striker120205044Rush/Scripts/c120205044.lua1
Avian Spell Tactics120170053Rush/Scripts/c120170053.lua1
The Connected Liliputians120309053Rush/Scripts/c120309053.lua1
Clean Beret - Colonel Mop120150021Rush/Scripts/c120150021.lua1
Chemipet Purr120249009Rush/Scripts/c120249009.lua1
Psychic Divergence120140037Rush/Scripts/c120140037.lua1
...and 3 more

Script Examples ​

Major Breaking News! (120304060) ​

Source: Rush/Scripts/c120304060.lua

lua
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(Card.IsAbleToDeck),tp,0,LOCATION_GRAVE,2,2,nil,function(g)
		if RD.SendToDeckTop(g,e,tp,REASON_EFFECT)~=0 then
			RD.CanSelectAndSpecialSummon(aux.Stringid(m,1),cm.spfilter,tp,LOCATION_HAND,0,1,2,nil,e,POS_FACEUP_DEFENSE,true)
		end

Ether Escape (120235062) ​

Source: Rush/Scripts/c120235062.lua

lua
		and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_MZONE,0,1,nil) then
		RD.CanSelectAndDoAction(aux.Stringid(m,1),HINTMSG_TODECK,cm.tdfilter,tp,0,LOCATION_ONFIELD,1,1,nil,function(g)
			RD.SendToDeckTop(g,e,tp,REASON_EFFECT)
		end)
	end

Eria the Water Spiritualist (120301010) ​

Source: Rush/Scripts/c120301010.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),tp,0,LOCATION_GRAVE,1,1,nil,function(g)
		RD.SendToDeckTop(g,e,tp,REASON_EFFECT)
		local tc=g:GetFirst()
		local sumlimit=function(e,c)