Skip to content

RushDuel.TargetDraw ​

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

Signature ​

lua
RushDuel.TargetDraw(int player, int count) -> void

Description ​

Stores the target player and draw count on the current chain link and declares CATEGORY_DRAW operation information. This helper does not draw cards or check deck availability.

Parameters ​

  • player int: Drawing player.
  • count int: Number to draw.

Returns ​

No return values.

Source ​

Rush/Utilities/RDTarget.lua:5

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 160 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.TargetDraw.
CardIDScriptDetected Calls
Elemental Circulation120263030Rush/Scripts/c120263030.lua1
Ember the Ultra Assistant120283035Rush/Scripts/c120283035.lua1
Gold Rush120247059Rush/Scripts/c120247059.lua1
Nobody Phantom Thief120244060Rush/Scripts/c120244060.lua1
Nobody Phantom Thief120273005Rush/Scripts/c120273005.lua1
Moonforce Timo120300015Rush/Scripts/c120300015.lua1
Dimension Oper120309025Rush/Scripts/c120309025.lua1
Preferlyre120283046Rush/Scripts/c120283046.lua1
Lovely Rabbit120300018Rush/Scripts/c120300018.lua1
Mystic Dealer120105006Rush/Scripts/c120105006.lua1
Icelyn the Super Assistant120254064Rush/Scripts/c120254064.lua1
Daigyakutenno Megami120203019Rush/Scripts/c120203019.lua1
Fusionic Revivern120109030Rush/Scripts/c120109030.lua1
Abysslayer Quintiamat120257021Rush/Scripts/c120257021.lua1
Under Dealer120290015Rush/Scripts/c120290015.lua1
Lostream Shell120309039Rush/Scripts/c120309039.lua1
Goe Goe the Rumored Ninja120306029Rush/Scripts/c120306029.lua1
Harpie Regina120247008Rush/Scripts/c120247008.lua1
Spell Extraction120246085Rush/Scripts/c120246085.lua1
Excutie Leya Frontier120293069Rush/Scripts/c120293069.lua1
Boost Rescue120222065Rush/Scripts/c120222065.lua1
Moonforce Piyopi120300011Rush/Scripts/c120300011.lua1
The Secret of Manifestation120257051Rush/Scripts/c120257051.lua1
Legendary Scout120271047Rush/Scripts/c120271047.lua1
...and 136 more

Script Examples ​

Elemental Circulation (120263030) ​

Source: Rush/Scripts/c120263030.lua

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

Ember the Ultra Assistant (120283035) ​

Source: Rush/Scripts/c120283035.lua

lua
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
	RD.TargetDraw(tp,1)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)

Gold Rush (120247059) ​

Source: Rush/Scripts/c120247059.lua

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