Skip to content

RushDuel.Draw ​

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

Signature ​

lua
RushDuel.Draw([int player], [int count]) -> int

Description ​

Draws with REASON_EFFECT using the supplied player/count, or the current chain's target player/parameter when arguments are omitted. Pair RD.TargetDraw(tp, count) in targeting with RD.Draw() in resolution.

Parameters ​

  • player int (optional): Player; defaults to CHAININFO_TARGET_PLAYER.
  • count int (optional): Count; defaults to CHAININFO_TARGET_PARAM.

Returns ​

  • int: Result returned by Duel.Draw.

Source ​

Rush/Utilities/RDTarget.lua:34

lua
function RushDuel.Draw(player, count)
    local p, d = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER, CHAININFO_TARGET_PARAM)
    return Duel.Draw(player or p, count or d, REASON_EFFECT)
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 150 indexed script(s).
  • Search this function in the Script Explorer with RushDuel.Draw.
CardIDScriptDetected Calls
Elemental Circulation120263030Rush/Scripts/c120263030.lua1
Ember the Ultra Assistant120283035Rush/Scripts/c120283035.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
Dimension Pramma120309026Rush/Scripts/c120309026.lua1
Spell Extraction120246085Rush/Scripts/c120246085.lua1
Excutie Leya Frontier120293069Rush/Scripts/c120293069.lua1
Moonforce Piyopi120300011Rush/Scripts/c120300011.lua1
The Secret of Manifestation120257051Rush/Scripts/c120257051.lua1
Legendary Scout120271047Rush/Scripts/c120271047.lua1
Straynge Magician120109032Rush/Scripts/c120109032.lua1
...and 126 more

Script Examples ​

Elemental Circulation (120263030) ​

Source: Rush/Scripts/c120263030.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.Draw()~=0 then
		RD.SelectAndDoAction(HINTMSG_TOGRAVE,Card.IsAbleToGrave,tp,LOCATION_HAND,0,1,1,nil,function(g)
			Duel.BreakEffect()

Ember the Ultra Assistant (120283035) ​

Source: Rush/Scripts/c120283035.lua

lua
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
	if RD.Draw()~=0 and Duel.IsExistingMatchingCard(cm.exfilter,tp,LOCATION_GRAVE,0,1,nil) then
		local sg,og=RD.SendDeckTopToGraveAndCanSelect(tp,2,aux.Stringid(m,1),HINTMSG_ATOHAND,aux.NecroValleyFilter(cm.thfilter),1,1)
		if sg:GetCount()>0 then

Nobody Phantom Thief (120244060) ​

Source: Rush/Scripts/c120244060.lua

lua
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
	if RD.Draw()~=0 then
		RD.SelectAndDoAction(HINTMSG_TOGRAVE,cm.filter,tp,LOCATION_HAND,0,1,99,nil,function(g)
			Duel.BreakEffect()