Skip to content

Duel.AnnounceNumber ​

Signature ​

lua
Duel.AnnounceNumber(int player, int number1, [int number2], [... int]) -> int,int

Description ​

Lets player choose one of the supplied numbers. Returns the selected number and the core's 0-based option index for that number.

Parameters ​

  • player int
  • number1 int
  • number2 int optional
  • ... int optional

Returns ​

  • int - Selected number.
  • int - 0-based option index selected by the core.

Source ​

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

Used By ​

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

  • Detected in 82 indexed script(s).
  • Search this function in the Script Explorer with Duel.AnnounceNumber.
CardIDScriptDetected Calls
Chef de Nouvelles29251488Scripts/c29251488.lua1
Isolde, Two Tales of the Noble Knights59934749Scripts/c59934749.lua1
Mixeroid71340250Scripts/c71340250.lua1
Phantom Knights' Rank-Up-Magic Force88504133Scripts/c88504133.lua1
Miscellaneousaurus38572779Scripts/c38572779.lua1
Magellanica, the Deep Sea City26534688Scripts/c26534688.lua1
Sylvan Dancepione21903613Scripts/c21903613.lua1
Sleepy Scapegoats3129527Scripts/c3129527.lua1
Witchcrafter Masterpiece55072170Scripts/c55072170.lua1
Gagaga Utopic Tactics75956913Scripts/c75956913.lua1
Token Support53545926Scripts/c53545926.lua1
Dawn Angel Kambi12500059Scripts/c12500059.lua1
Reversal Box2606417Scripts/c2606417.lua1
Galaxy Photon Dragon85747929Scripts/c85747929.lua1
Zexal Catapult95664204Scripts/c95664204.lua1
The Agent of Destruction - Venus99054885Scripts/c99054885.lua1
Puzzlomino, the Drop-n-Deleter84271823Scripts/c84271823.lua1
Shamanite Shamanknight16237004Scripts/c16237004.lua1
Cosmic Tree Irmistil74139959Scripts/c74139959.lua1
Hollowrokket Dragon51548207Scripts/c51548207.lua1
Junk Meister73218792Scripts/c73218792.lua1
Mythical Institution94599451Scripts/c94599451.lua1
Spell Power Attainment39123673Scripts/c39123673.lua1
Division42427230Scripts/c42427230.lua1
...and 58 more

Script Examples ​

Chef de Nouvelles (29251488) ​

Source: Scripts/c29251488.lua

lua
		local ct={1,2,3}
		Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,5))
		local ac=Duel.AnnounceNumber(tp,table.unpack(ct))
		local e1=Effect.CreateEffect(e:GetHandler())
		e1:SetType(EFFECT_TYPE_SINGLE)

Isolde, Two Tales of the Noble Knights (59934749) ​

Source: Scripts/c59934749.lua

lua
	lvt[pc]=nil
	Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(59934749,2))
	local lv=Duel.AnnounceNumber(tp,table.unpack(lvt))
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
	aux.GCheckAdditional=aux.dncheck

Mixeroid (71340250) ​

Source: Scripts/c71340250.lua

lua
	lvt[pc]=nil
	Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(71340250,2))
	local lv=Duel.AnnounceNumber(tp,table.unpack(lvt))
	local rg1=Group.CreateGroup()
	if lv>1 then