Skip to content

Duel.AnnounceLevel ​

Signature ​

lua
Duel.AnnounceLevel(int player, [int min], [int max], [int excluded_level1], [... int]) -> int|nil,int|nil

Description ​

Lets player declare a Level and returns the declared Level plus the zero-based option index. min and max default to 1 and 12 and are swapped if min is greater than max. Extra level arguments are excluded from the options; if no Levels remain, the binding returns no value.

Parameters ​

  • player int
  • min int optional - default: 1
  • max int optional - default: 12
  • excluded_level1 int optional
  • ... int optional

Returns ​

  • int|nil - Declared Level.
  • int|nil - Zero-based option index.

Source ​

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

Used By ​

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

  • Detected in 24 indexed script(s).
  • Search this function in the Script Explorer with Duel.AnnounceLevel.
CardIDScriptDetected Calls
Brain Controller44265115Scripts/c44265115.lua1
Marshalling Field63881033Scripts/c63881033.lua1
Sylvan Princessprout20579538Scripts/c20579538.lua1
Red Familiar8372133Scripts/c8372133.lua1
Wake Up Centur-Ion!92907248Scripts/c92907248.lua3
Theorealize Overdrive94326720Scripts/c94326720.lua1
Turbo-Tainted Hot Rod GT1916769305Scripts/c16769305.lua1
D/D Lance Soldier67322708Scripts/c67322708.lua1
Spore the Fairy Seed98888032Scripts/c98888032.lua1
Xyz Align60623203Scripts/c60623203.lua1
Assault Blackwing - Kunai the Drizzle70456282Scripts/c70456282.lua1
Isolde, Belle of the Underworld22657402Scripts/c22657402.lua1
Performapal Lebellman3752422Scripts/c3752422.lua1
Magicalibra43857222Scripts/c43857222.lua1
Sirenorca50074392Scripts/c50074392.lua1
Specimen Inspection12292422Scripts/c12292422.lua1
Reasoning58577036Scripts/c58577036.lua1
Phonon Pulse Dragon67556500Scripts/c67556500.lua1
D/D Berfomet19808608Scripts/c19808608.lua1
Speedroid Red-Eyed Dice16725505Scripts/c16725505.lua1
BIG Win!?84677654Scripts/c84677654.lua1
Falling Current26099457Scripts/c26099457.lua1
Extra Gate7405310Scripts/c7405310.lua1
Gagaga Magician26082117Scripts/c26082117.lua1

Script Examples ​

Brain Controller (44265115) ​

Source: Scripts/c44265115.lua

lua
	local lv=g:GetFirst():GetLevel()
	Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(id,3))
	e:SetLabel(Duel.AnnounceLevel(tp,1,8,lv))
end
function s.lvop(e,tp,eg,ep,ev,re,r,rp)

Marshalling Field (63881033) ​

Source: Scripts/c63881033.lua

lua
	if chk==0 then return Duel.IsExistingMatchingCard(c63881033.filter,tp,LOCATION_MZONE,0,1,nil) end
	Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(63881033,1))
	local lv=Duel.AnnounceLevel(tp,5,9)
	e:SetLabel(lv)
end

Sylvan Princessprout (20579538) ​

Source: Scripts/c20579538.lua

lua
		and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_LVRANK)
	local lv=Duel.AnnounceLevel(tp,1,8)
	e:SetLabel(lv)
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)