Skip to content

Card.GetPreviousOverlayCountOnField ​

Signature ​

lua
Card.GetPreviousOverlayCountOnField(Card c) -> int

Description ​

Returns the number of cards that were overlaid on c while it was previously on the field.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 9 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousOverlayCountOnField.
CardIDScriptDetected Calls
Number 4: Stealth Kragen67557908Scripts/c67557908.lua1
Stealth Kragen Spawn94942656Scripts/c94942656.lua1
Rikka Queen Strenna3828844Scripts/c3828844.lua1
Number C101: Silent Honor DARK12744567Scripts/c12744567.lua1
Number 79: Battlin' Boxer Nova Kaiser71921856Scripts/c71921856.lua1
Number C1000: Numerounius89477759Scripts/c89477759.lua1
Number 53: Heart-eartH23998625Scripts/c23998625.lua1
Number C103: Ragnafinity20785975Scripts/c20785975.lua1
Cipher Spectrum98905Scripts/c98905.lua1

Script Examples ​

Number 4: Stealth Kragen (67557908) ​

Source: Scripts/c67557908.lua

lua
function c67557908.spcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	local ct=c:GetPreviousOverlayCountOnField()
	e:SetLabel(ct)
	return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_XYZ) and ct>0

Stealth Kragen Spawn (94942656) ​

Source: Scripts/c94942656.lua

lua
function c94942656.spcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	local ct=c:GetPreviousOverlayCountOnField()
	e:SetLabel(ct)
	return c:IsPreviousLocation(LOCATION_MZONE) and c:GetFlagEffect(94942656)>0 and ct>0

Rikka Queen Strenna (3828844) ​

Source: Scripts/c3828844.lua

lua
function c3828844.spcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousOverlayCountOnField()>0
end
function c3828844.spfilter(c,e,tp)