Skip to content

RushDuel.SendToDeckAndExists ​

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

Signature ​

lua
RushDuel.SendToDeckAndExists(any target, any effect, any player, any reason, any filter, any count, any expect) -> 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.
  • filter any: Type and behavior are not yet reviewed; see the source.
  • count any: Type and behavior are not yet reviewed; see the source.
  • expect 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:372

lua
function RushDuel.SendToDeckAndExists(target, effect, player, reason, filter, count, expect)
    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 false
    end
    return Duel.SendtoDeck(g, nil, SEQ_DECKSHUFFLE, REASON_EFFECT) ~= 0 and RushDuel.IsOperatedGroupExists(filter, count, expect)
end

Used By ​

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

  • Detected in 103 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendToDeckAndExists.
CardIDScriptDetected Calls
Analyze Phlogiston120226001Rush/Scripts/c120226001.lua1
Exchange of the Sheep120293030Rush/Scripts/c120293030.lua1
Mega Jointech Fortrex [R]120249005Rush/Scripts/c120249005.lua1
Red-Reboot Enhanced Boost Dragon120253037Rush/Scripts/c120253037.lua1
Sevens Road Ultima Witch120261045Rush/Scripts/c120261045.lua1
Abysskite Liem120249025Rush/Scripts/c120249025.lua1
Qadi of the Monumenthes120300009Rush/Scripts/c120300009.lua1
Rising HERO Argent F120304043Rush/Scripts/c120304043.lua1
Supreme Railartillery Magnum Overlord [L]120239001Rush/Scripts/c120239001.lua2
The Trinity Dragiastar120109031Rush/Scripts/c120109031.lua1
Poet Fairy120208021Rush/Scripts/c120208021.lua2
Destructor Emperor Bakhakaiser120264045Rush/Scripts/c120264045.lua1
Steel Mech Lord Mirror Innovator120155015Rush/Scripts/c120155015.lua1
Steel Mech Lord Mirror Innovator120239059Rush/Scripts/c120239059.lua1
Advance Form120261032Rush/Scripts/c120261032.lua1
Excutie Lumière120231031Rush/Scripts/c120231031.lua1
Prophecy Flail the Colors of Nature120257043Rush/Scripts/c120257043.lua1
Axe Shredder120228021Rush/Scripts/c120228021.lua1
CAN - Melo:D120203010Rush/Scripts/c120203010.lua1
Guardian Eatos120290065Rush/Scripts/c120290065.lua1
Ring of Storms120235055Rush/Scripts/c120235055.lua2
Amulet Dragon120309085Rush/Scripts/c120309085.lua1
Fusion Cancel120253066Rush/Scripts/c120253066.lua1
Back Jersey120228063Rush/Scripts/c120228063.lua1
...and 79 more

Script Examples ​

Analyze Phlogiston (120226001) ​

Source: Rush/Scripts/c120226001.lua

lua
	local check=RD.Check(cm.check,lv)
	RD.SelectGroupAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.filter),check,tp,LOCATION_GRAVE,0,3,3,nil,function(sg)
		if RD.SendToDeckAndExists(sg,e,tp,REASON_EFFECT) then
			Duel.BreakEffect()
			Duel.Destroy(g,REASON_EFFECT)

Exchange of the Sheep (120293030) ​

Source: Rush/Scripts/c120293030.lua

lua
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	local mg=Duel.GetMatchingGroup(aux.NecroValleyFilter(Card.IsAbleToDeck),tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
	if RD.SendToDeckAndExists(mg,e,tp,REASON_EFFECT) then
		if Duel.IsPlayerCanDraw(tp,1) and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
			local tc=Duel.GetDecktopGroup(tp,1):GetFirst()

Mega Jointech Fortrex [R] (120249005) ​

Source: Rush/Scripts/c120249005.lua

lua
		RD.SelectAndDoAction(HINTMSG_TODECK,aux.NecroValleyFilter(cm.tdfilter),1-tp,0,LOCATION_GRAVE,3,3,nil,function(sg)
			g:Merge(sg)
			if RD.SendToDeckAndExists(g,e,tp,REASON_EFFECT) and c:IsFaceup() and c:IsRelateToEffect(e) and RD.IsMaximumMode(c) then
				local og=Duel.GetOperatedGroup():Filter(cm.exfilter,nil)
				local atk=og:GetSum(Card.GetLevel)*100