RushDuel.TargetDraw
Alias: RD.TargetDraw. Requires the matching Rush Duel Lua bootstrap.
Signature
lua
RushDuel.TargetDraw(int player, int count) -> voidDescription
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
playerint: Drawing player.countint: 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)
endGuided 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.
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)