Duel.SelectOption
Signature
lua
Duel.SelectOption(int player, int desc1, ... any) -> intDescription
Shows player a list of description ids and returns the zero-based index of the selected option. The selected description id is also announced to the client.
Parameters
playerintdesc1int...any
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libduel.cpp:5024
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 479 indexed script(s).
- Search this function in the Script Explorer with
Duel.SelectOption.
Script Examples
Astrograph Sorcerer (76794549)
Source: Scripts/c76794549.lua
lua
local op=0
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and tc:IsCanBeSpecialSummoned(e,0,tp,false,false) then
op=Duel.SelectOption(tp,aux.Stringid(76794549,1),aux.Stringid(76794549,2))
else
op=Duel.SelectOption(tp,aux.Stringid(76794549,1))Ashtraja Susanoo (17020474)
Source: Scripts/c17020474.lua
lua
local set=s.setfilter(tc,e,tp)
if tc:IsAbleToHand()
and (not set or Duel.SelectOption(tp,1190,1153)==0) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)Ursarctic Polari (27693363)
Source: Scripts/c27693363.lua
lua
if tc then
if tc:IsAbleToHand() and (not tc:IsCanBeSpecialSummoned(e,0,tp,false,false) or not check
or Duel.SelectOption(tp,1190,1152)==0) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
else