Skip to content

Duel.ConfirmDecktop ​

Signature ​

lua
Duel.ConfirmDecktop(int player, int count) -> void

Description ​

Reveals up to count cards from the top of player's Main Deck to the client. count is clamped to the remaining Deck size. The function yields for the reveal wait and returns no Lua values.

Parameters ​

  • player int
  • count int

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4890

Guided Examples ​

Learn how to use this function in context:

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 154 indexed script(s).
  • Search this function in the Script Explorer with Duel.ConfirmDecktop.
CardIDScriptDetected Calls
GMX 55th Experiment Report38984832Scripts/c38984832.lua1
GMX - VELOX82706696Scripts/c82706696.lua1
Purrely25550531Scripts/c25550531.lua1
Magellanica, the Deep Sea City26534688Scripts/c26534688.lua1
Gunkan Sushipyard Seaside Supper Spot62200831Scripts/c62200831.lua1
Sylvan Dancepione21903613Scripts/c21903613.lua1
Rank-Up-Magic Zexal Force36224040Scripts/c36224040.lua1
Materiactor Meltthrough66059345Scripts/c66059345.lua1
Ma'at18631392Scripts/c18631392.lua1
Silk Bomb Moth18300894Scripts/c18300894.lua1
Shadowreaver Knight 2195506252Scripts/c95506252.lua1
Oracle of Zefra32354768Scripts/c32354768.lua1
Materiactor Meltdown38669664Scripts/c38669664.lua1
GMX Applied Experiment #5518795635Scripts/c18795635.lua1
Buerillabaisse de Nouvelles26223582Scripts/c26223582.lua1
Super Koi Koi66171432Scripts/c66171432.lua1
Chaos Ruler, the Chaotic Magical Dragon3040496Scripts/c3040496.lua1
Valiant Shark Lancer23672629Scripts/c23672629.lua1
Adamancipator Risen - Leonite47674738Scripts/c47674738.lua1
Akashic Magician28776350Scripts/c28776350.lua1
Uradora of Fate27753563Scripts/c27753563.lua1
Rafale, Champion Fur Hire38916526Scripts/c38916526.lua1
Shooting Star Dragon24696097Scripts/c24696097.lua1
Hollowrokket Dragon51548207Scripts/c51548207.lua1
...and 130 more

Script Examples ​

GMX 55th Experiment Report (38984832) ​

Source: Scripts/c38984832.lua

lua
		Duel.ConfirmCards(1-tp,g)
	else
		Duel.ConfirmDecktop(tp,count)
	end
end

GMX - VELOX (82706696) ​

Source: Scripts/c82706696.lua

lua
	end
	if seq>-1 then
		Duel.ConfirmDecktop(tp,dct-seq)
		if e:GetHandler():IsSetCard(0x1dd) then
			Duel.RaiseEvent(e:GetHandler(),EVENT_CUSTOM+1595137,e,0,tp,tp,0)

Purrely (25550531) ​

Source: Scripts/c25550531.lua

lua
function s.tdop(e,tp,eg,ep,ev,re,r,rp)
	local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
	Duel.ConfirmDecktop(p,3)
	local g=Duel.GetDecktopGroup(p,3)
	if not g or #g<1 then return end