Duel.SelectYesNo
Signature
lua
Duel.SelectYesNo(int player, int desc) -> boolDescription
Asks player a yes/no prompt using description id desc and returns true for Yes.
Parameters
playerintdescint
Returns
bool
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5023
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 1352 indexed script(s).
- Search this function in the Script Explorer with
Duel.SelectYesNo.
Script Examples
Salamandra with Chain (62091148)
Source: Scripts/c62091148.lua
lua
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2)
if Duel.IsExistingMatchingCard(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)Astrograph Sorcerer, the Starfrost Magician (48171151)
Source: Scripts/c48171151.lua
lua
if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)==0 then return end
local desg=Duel.GetTargetsRelateToChain():Filter(s.spfilter1,nil,e,tp)
if #desg>0 and Duel.SelectYesNo(tp,aux.Stringid(id,3)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=desg:Select(tp,1,1,nil)Artmage Non-Finito (74631897)
Source: Scripts/c74631897.lua
lua
local tg=sg:Select(tp,1,1,nil)
local tc=tg:GetFirst()
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or ce and not Duel.SelectYesNo(tp,ce:GetDescription())) then
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
tc:SetMaterial(mat1)