Skip to content

Duel.ConfirmCards ​

Signature ​

lua
Duel.ConfirmCards(int player, Card|Group targets, [bool skip_panel]) -> void

Description ​

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 ​

  • player int
  • targets Card|Group
  • skip_panel bool optional - 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.
CardIDScriptDetected Calls
Salamandra with Chain62091148Scripts/c62091148.lua1
Astrograph Sorcerer, the Starfrost Magician48171151Scripts/c48171151.lua1
Pendulum Evolution55795155Scripts/c55795155.lua2
Lady's Dragonmaid48658295Scripts/c48658295.lua1
Astrograph Sorcerer76794549Scripts/c76794549.lua1
Spellbook of the Grand Circle11911336Scripts/c11911336.lua1
Ashtraja Susanoo17020474Scripts/c17020474.lua4
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua3
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua1
Fiendsmith's Sequence49867899Scripts/c49867899.lua1
D/D/D Alfred the Divine Sage King11852093Scripts/c11852093.lua1
El Shaddoll Apkallone50907446Scripts/c50907446.lua1
Mementotlan Fusion66518509Scripts/c66518509.lua1
Meteoroa Drytron24166324Scripts/c24166324.lua1
Gem-Knight Dispersion24220368Scripts/c24220368.lua1
Performage Cup Tricker6812770Scripts/c6812770.lua1
Lubellion the Searing Dragon70534340Scripts/c70534340.lua1
Magnet Bonding65514302Scripts/c65514302.lua3
Enneacraft - Asta.PIXEA28454232Scripts/c28454232.lua1
Odd-Eyes Revolution Dragon16306932Scripts/c16306932.lua1
Aiwass, Divine Spirit of the Law84288367Scripts/c84288367.lua1
GMX 55th Experiment Report38984832Scripts/c38984832.lua2
Enneacraft - Archa.TAIL81237046Scripts/c81237046.lua1
D/D Count Surveyor5997110Scripts/c5997110.lua1
...and 2639 more

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) then

Astrograph 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 then

Pendulum 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)