Duel.ConfirmCards
Signature
lua
Duel.ConfirmCards(int player, Card|Group targets, [bool skip_panel]) -> voidDescription
Reveals a Card or Group to player and waits for the client confirmation. If skip_panel is true, the client skips the extra confirmation panel when possible.
Parameters
playerinttargetsCard|Groupskip_panelbooloptional - default: false
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:4892
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 2663 indexed script(s).
- Search this function in the Script Explorer with
Duel.ConfirmCards.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
if mat1:IsExists(s.fdfilter,1,nil) then
local cg=mat1:Filter(s.fdfilter,nil)
Duel.ConfirmCards(1-tp,cg)
end
if mat1:IsExists(s.gdfilter,1,nil) thenAstrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
if mat:IsExists(Card.IsFacedown,1,nil) then
local cg=mat:Filter(Card.IsFacedown,nil)
Duel.ConfirmCards(1-tp,cg)
end
if mat:Filter(s.cfilter,nil):GetCount()>0 thenPendulum Evolution (55795155)
Source: Scripts/c55795155.lua
lua
local g=Duel.SelectMatchingCard(tp,c55795155.cfilter,tp,LOCATION_HAND,0,1,1,nil,tp)
e:SetLabel(g:GetFirst():GetCode())
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)