Skip to content

RushDuel.SendDeckTopToGraveAndExists ​

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

Signature ​

lua
RushDuel.SendDeckTopToGraveAndExists(any player, any card_count, 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 ​

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

lua
function RushDuel.SendDeckTopToGraveAndExists(player, card_count, filter, count, expect)
    return Duel.DiscardDeck(player, card_count, 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 120 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.SendDeckTopToGraveAndExists.
CardIDScriptDetected Calls
Vapor Lancer the Super Graphagas120260063Rush/Scripts/c120260063.lua1
Shannah the Clad Dragon Researcher120304017Rush/Scripts/c120304017.lua1
Daigyakutenno Megami120203019Rush/Scripts/c120203019.lua1
Galactica Dejavu120244003Rush/Scripts/c120244003.lua1
Transam Scride120109036Rush/Scripts/c120109036.lua1
Grace Princess Emaki120300021Rush/Scripts/c120300021.lua1
Dimension Pramma120309026Rush/Scripts/c120309026.lua1
Voidvelg Chrysaor120244008Rush/Scripts/c120244008.lua1
Ritche of Hope120287072Rush/Scripts/c120287072.lua1
Destructor Soldier Bokka120285015Rush/Scripts/c120285015.lua1
Quick Attack Knight120293037Rush/Scripts/c120293037.lua1
Wooly Wonderland Naptime120293029Rush/Scripts/c120293029.lua1
Awakened Stegoceratops120277018Rush/Scripts/c120277018.lua1
Rainbow-Eyes Star Cat120264010Rush/Scripts/c120264010.lua1
Lovely Connect120300054Rush/Scripts/c120300054.lua1
Slay the Star Protector's Gunslinger120306010Rush/Scripts/c120306010.lua1
RB Dragophone120225032Rush/Scripts/c120225032.lua1
Koumori Dragon the Magical Dragon120309011Rush/Scripts/c120309011.lua1
Animagica Gardna120277027Rush/Scripts/c120277027.lua1
Voidvelg Cataphract120235008Rush/Scripts/c120235008.lua1
Wroughtwyvern120263011Rush/Scripts/c120263011.lua1
Lovely Dove120260047Rush/Scripts/c120260047.lua1
Constructor Desk Worker Tarasque120264014Rush/Scripts/c120264014.lua1
Firefall Wall120226032Rush/Scripts/c120226032.lua1
...and 96 more

Script Examples ​

Vapor Lancer the Super Graphagas (120260063) ​

Source: Rush/Scripts/c120260063.lua

lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	if RD.SendDeckTopToGraveAndExists(tp,3) then
		local g=Duel.GetOperatedGroup():Filter(cm.exfilter,nil)
		local ct=g:GetClassCount(Card.GetRace)

Shannah the Clad Dragon Researcher (120304017) ​

Source: Rush/Scripts/c120304017.lua

lua
		if RD.ChangePosition(g,e,tp,REASON_EFFECT,POS_FACEDOWN_DEFENSE) then
			Duel.BreakEffect()
			if RD.SendDeckTopToGraveAndExists(tp,1,cm.exfilter,1,nil) then
				local tc=Duel.GetOperatedGroup():GetFirst()
				if Duel.SelectEffectYesNo(tp,tc,aux.Stringid(m,1)) then

Daigyakutenno Megami (120203019) ​

Source: Rush/Scripts/c120203019.lua

lua
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
	if RD.Draw()~=0 and RD.SendDeckTopToGraveAndExists(p,1,cm.exfilter,1,nil) then
		local tc=Duel.GetOperatedGroup():GetFirst()
		local filter=RD.Filter(cm.desfilter,tc:GetRace())