Skip to content

RushDuel.TargetDiscardDeck ​

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

Signature ​

lua
RushDuel.TargetDiscardDeck(any player, any count) -> any

Description ​

Rush Duel helper declared in RDTarget.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.

Returns ​

  • any: Return contract has not been reviewed; inspect the source below.

Source ​

Rush/Utilities/RDTarget.lua:23

lua
function RushDuel.TargetDiscardDeck(player, count)
    Duel.SetTargetPlayer(player)
    Duel.SetTargetParam(count)
    Duel.SetOperationInfo(0, CATEGORY_DECKDES, nil, 0, player, count)
end

Used By ​

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

  • Detected in 17 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.TargetDiscardDeck.
CardIDScriptDetected Calls
Insect Taurus120300060Rush/Scripts/c120300060.lua1
Tama Tama Gachance120109053Rush/Scripts/c120109053.lua1
Music Princess's Substitute120290043Rush/Scripts/c120290043.lua1
Temporary Storm Blockade120203030Rush/Scripts/c120203030.lua1
Best Bite120183048Rush/Scripts/c120183048.lua1
Darkness Fource Seeker120217007Rush/Scripts/c120217007.lua1
Royal Rebel's Starting120306045Rush/Scripts/c120306045.lua1
Destructor Survey120247053Rush/Scripts/c120247053.lua1
Wolftastic Mean Mutt120222050Rush/Scripts/c120222050.lua1
Rising Light Angel Essel120249037Rush/Scripts/c120249037.lua1
Cat-trois Choice120249055Rush/Scripts/c120249055.lua1
Hungry Donut120290020Rush/Scripts/c120290020.lua1
Vande the Electric Lion120257019Rush/Scripts/c120257019.lua1
Heavenly Invitation120239054Rush/Scripts/c120239054.lua1
Meteor Larva120227019Rush/Scripts/c120227019.lua1
Psychic Burial120160004Rush/Scripts/c120160004.lua1
Heat Hyena120183032Rush/Scripts/c120183032.lua1

Script Examples ​

Insect Taurus (120300060) ​

Source: Rush/Scripts/c120300060.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,2) end
	RD.TargetDiscardDeck(tp,2)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)

Tama Tama Gachance (120109053) ​

Source: Rush/Scripts/c120109053.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
	RD.TargetDiscardDeck(tp,3)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)

Music Princess's Substitute (120290043) ​

Source: Rush/Scripts/c120290043.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDiscardDeck(tp,3) end
	RD.TargetDiscardDeck(tp,3)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)