Duel.SetTargetCard
Signature
lua
Duel.SetTargetCard(Card|Group targets) -> voidDescription
Stores targets as the target cards for the currently handled Chain. For non-continuous effects, the core creates Chain relations for those cards and sends the become-target message when the effect has EFFECT_FLAG_CARD_TARGET. This records broad operation targets; it does not by itself check whether the cards are legal effect targets.
Parameters
targetsCard|Group- Card or Group to record as current Chain target cards.
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5004
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 651 indexed script(s).
- Search this function in the Script Explorer with
Duel.SetTargetCard.
Script Examples
Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
end
local desg=eg:Filter(s.desfilter,nil,tp)
Duel.SetTargetCard(desg)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,0,0)
endGoyo Emperor (59255742)
Source: Scripts/c59255742.lua
lua
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and bc:IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetTargetCard(bc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,bc,1,0,0)
endPerformage Cup Tricker (6812770)
Source: Scripts/c6812770.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local sg=g:SelectSubGroup(tp,s.gcheck,false,2,2)
Duel.SetTargetCard(sg)
end
function s.xyzop(e,tp,eg,ep,ev,re,r,rp)