Skip to content

Duel.SelectEffectYesNo ​

Signature ​

lua
Duel.SelectEffectYesNo(int player, Card c, [int desc]) -> bool

Description ​

Asks player whether to use c's effect with description id desc, defaulting to 95.

Parameters ​

  • player int
  • c Card
  • desc int optional - default: 95

Returns ​

  • bool

Source ​

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

Used By ​

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

  • Detected in 270 indexed script(s).
  • Search this function in the Script Explorer with Duel.SelectEffectYesNo.
CardIDScriptDetected Calls
Am Duazenet45151304Scripts/c45151304.lua1
Camelot, Realm of Noble Knights and Noble Arms15635751Scripts/c15635751.lua1
Revendread Origin94666032Scripts/c94666032.lua1
Gravity Balance37930737Scripts/c37930737.lua1
Number 101: Silent Honor ARK - Soul Asylum2419596Scripts/c2419596.lua1
Edge Imp Scythe29280589Scripts/c29280589.lua1
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Ojama Pajama75884822Scripts/c75884822.lua1
Jurrac Volcano89948817Scripts/c89948817.lua1
Sleepy Scapegoats3129527Scripts/c3129527.lua1
Masterking Archfiend35606858Scripts/c35606858.lua2
Laevateinn the Burning Blade6260560Scripts/c6260560.lua1
Sea Lancer22842214Scripts/c22842214.lua1
Zebufera, Vaalmonican Hallow Heathen2815176Scripts/c2815176.lua1
Dual Avatar Feet - Armored Un-Gyo7631534Scripts/c7631534.lua1
Unchained Firelord of Yama94014327Scripts/c94014327.lua1
Thunder Dragon Titan41685633Scripts/c41685633.lua1
Altergeist Memorygant23790299Scripts/c23790299.lua1
Lost World17228908Scripts/c17228908.lua1
Dream Tower of Princess Nemleria18458255Scripts/c18458255.lua1
Fire King Sanctuary65305978Scripts/c65305978.lua1
Salamandra Fusion9102835Scripts/c9102835.lua1
Commander Souza, Swordmaster72867001Scripts/c72867001.lua1
Stealth Kragen Spawn94942656Scripts/c94942656.lua1
...and 246 more

Script Examples ​

Am Duazenet (45151304) ​

Source: Scripts/c45151304.lua

lua
function s.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(s.repfilter,1,nil,tp) end
	return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function s.repval(e,c)

Camelot, Realm of Noble Knights and Noble Arms (15635751) ​

Source: Scripts/c15635751.lua

lua
		and #g>0 end
	local c=e:GetHandler()
	if Duel.SelectEffectYesNo(tp,c,96) then
		Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESREPLACE)
		local tc=g:Select(tp,1,1,nil):GetFirst()

Revendread Origin (94666032) ​

Source: Scripts/c94666032.lua

lua
function c94666032.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then return e:GetHandler():IsAbleToRemove() and eg:IsExists(c94666032.repfilter,1,nil,tp) end
	return Duel.SelectEffectYesNo(tp,e:GetHandler(),96)
end
function c94666032.repval(e,c)