Skip to content

Card.GetLevel ​

Signature ​

lua
Card.GetLevel(Card c) -> int

Description ​

Returns c's current Level.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

  • D:\Programs\GitHub\ygopro-core\libcard.cpp:3456

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 565 indexed script(s).
  • Search this function in the Script Explorer with Card.GetLevel.
CardIDScriptDetected Calls
Lady's Dragonmaid48658295Scripts/c48658295.lua2
Surprise Fusion35167375Scripts/c35167375.lua2
Pere-Zenet Em Heru46273941Scripts/c46273941.lua2
Am Duazenet45151304Scripts/c45151304.lua2
Ursarctic Polari27693363Scripts/c27693363.lua2
Nekroz Kaleidoscope51124303Scripts/c51124303.lua10
D/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox97417863Scripts/c97417863.lua1
Bujinki Ahashima71095768Scripts/c71095768.lua2
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua3
Ursarctic Polar Star62714453Scripts/c62714453.lua2
Sonic Tracker17888577Scripts/c17888577.lua6
Mitsurugi Magatama76725398Scripts/c76725398.lua3
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua3
Chef de Nouvelles29251488Scripts/c29251488.lua1
Starving Venom Wing Dragon5148778Scripts/c5148778.lua1
Supreme King Dragon Lightwurm41908872Scripts/c41908872.lua2
Frightfur Meister77522571Scripts/c77522571.lua4
Duel Link Dragon, the Duel Dragon60025883Scripts/c60025883.lua1
Gishki Nekromirror36982581Scripts/c36982581.lua5
Isolde, Two Tales of the Noble Knights59934749Scripts/c59934749.lua1
Super Duper Polymerization44886582Scripts/c44886582.lua3
Mixeroid71340250Scripts/c71340250.lua1
Secrets of Dark Magic59514116Scripts/c59514116.lua5
Double Interlock38129297Scripts/c38129297.lua6
...and 541 more

Script Examples ​

Lady's Dragonmaid (48658295) ​

Source: Scripts/c48658295.lua

lua
	if not c:IsFusionSetCard(0x133) then return false end
	if not sg then return true end
	return not sg:IsExists(Card.IsLevel,1,c,c:GetLevel())
		and sg:IsExists(Card.IsFusionAttribute,1,c,c:GetFusionAttribute())
end

Surprise Fusion (35167375) ​

Source: Scripts/c35167375.lua

lua
	return c:IsType(TYPE_FUSION) and c:IsReleasableByEffect() and (not chk
		or (Duel.GetMZoneCount(tp,c)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133)
			and Duel.IsPlayerCanSpecialSummonMonster(tp,id+o,0,TYPES_TOKEN_MONSTER,0,0,c:GetLevel(),RACE_SPELLCASTER,ATTRIBUTE_DARK)))
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)

Pere-Zenet Em Heru (46273941) ​

Source: Scripts/c46273941.lua

lua
		m=m:Filter(c.mat_filter,nil,tp)
	end
	local lv=c:GetLevel()
	aux.GCheckAdditional=s.gcheckf(c,lv)
	local res=m:CheckSubGroup(s.RitualCheckGreater,1,lv,c,lv,tp)