Skip to content

Card.GetFieldID ​

Signature ​

lua
Card.GetFieldID(Card c) -> int

Description ​

Returns c's current field ID, the core timestamp assigned when c moved to its current place. Smaller values are older. The core refreshes this value when the card gains a new field identity, such as entering the field or changing controller. This differs from Card.GetRealFieldID, which tracks the real field ID used by battle-state checks.

Parameters ​

  • c Card - Card whose current field ID is returned.

Returns ​

  • int - Current field ID assigned by the core for c's current field identity.

Source ​

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

Used By ​

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

  • Detected in 190 indexed script(s).
  • Search this function in the Script Explorer with Card.GetFieldID.
CardIDScriptDetected Calls
Deftero Enneacraft - "alazoneIA"92171126Scripts/c92171126.lua1
Resurgam Xyz49082032Scripts/c49082032.lua1
Converging Wishes20007374Scripts/c20007374.lua1
PSY-Framelord Omega74586817Scripts/c74586817.lua1
Future Fusion Nova92058902Scripts/c92058902.lua1
D/D/D/D Super-Dimensional Sovereign Emperor Zero Paradox97417863Scripts/c97417863.lua1
Shooting Majestic Star Dragon40939228Scripts/c40939228.lua1
Kewl Tune Crackle39576656Scripts/c39576656.lua2
PSY-Framelord Zeta37192109Scripts/c37192109.lua1
The Gaze of Timaeus22283204Scripts/c22283204.lua1
Rescue Hamster50485594Scripts/c50485594.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua3
Cerynemesia, Mystical Beast of the Forest43632709Scripts/c43632709.lua1
Gravity Balance37930737Scripts/c37930737.lua1
Trickstar Light Stage35371948Scripts/c35371948.lua1
Angelica, Princess of Noble Arms36320744Scripts/c36320744.lua1
Trickstar Light Arena63492244Scripts/c63492244.lua1
Ecclesia and the Dark Dragon78397661Scripts/c78397661.lua1
Echelon of the Fire Kings38798785Scripts/c38798785.lua1
Forbidden Dark Contract with the Swamp King10833828Scripts/c10833828.lua3
Vanquish Soul Trinity Burst53330789Scripts/c53330789.lua1
Grandpa Demetto44190146Scripts/c44190146.lua2
Frightfur March74416026Scripts/c74416026.lua1
S:P Little Knight29301450Scripts/c29301450.lua1
...and 166 more

Script Examples ​

Deftero Enneacraft - "alazoneIA" (92171126) ​

Source: Scripts/c92171126.lua

lua
	local rg=g:RandomSelect(1-tp,1)
	if Duel.Remove(rg,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then
		local fid=c:GetFieldID()
		local og=Duel.GetOperatedGroup()
		if c:GetOriginalCode()~=id then

Resurgam Xyz (49082032) ​

Source: Scripts/c49082032.lua

lua
		if e:GetLabel()~=1 then
			local c=e:GetHandler()
			local fid=c:GetFieldID()
			sc:RegisterFlagEffect(49082032,RESET_EVENT+RESETS_STANDARD,0,1,fid)
			local e1=Effect.CreateEffect(c)

Converging Wishes (20007374) ​

Source: Scripts/c20007374.lua

lua
			c:RegisterEffect(e1)
		end
		local fid=c:GetFieldID()
		tc:RegisterFlagEffect(20007374,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
		local e2=Effect.CreateEffect(c)