Card.GetFieldID
Signature
lua
Card.GetFieldID(Card c) -> intDescription
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
cCard- 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.
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 thenResurgam 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)