Skip to content

Card.GetPreviousSequence ​

Signature ​

lua
Card.GetPreviousSequence(Card c) -> int

Description ​

Returns c's previous sequence value.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 59 indexed script(s).
  • Search this function in the Script Explorer with Card.GetPreviousSequence.
CardIDScriptDetected Calls
Hojo the Vaylantz Warrior88919365Scripts/c88919365.lua1
Arktos XII - Chronochasm Vaylantz50687050Scripts/c50687050.lua1
Enlilgirsu, the Orcust Mekk-Knight74820316Scripts/c74820316.lua1
Cyberse Contract Witch37458564Scripts/c37458564.lua1
Neo Super Quantal Mech King Blaster Magna95493471Scripts/c95493471.lua1
Cyberse Witch11674673Scripts/c11674673.lua1
Salamangreat Sunlight Wolf87871125Scripts/c87871125.lua1
Zefra Metaltron85216896Scripts/c85216896.lua1
Firewall Dragon Singularity21637210Scripts/c21637210.lua1
Life Extreme36148308Scripts/c36148308.lua1
Qliphort Genius22423493Scripts/c22423493.lua1
Battle Shogun of the Six Samurai74752631Scripts/c74752631.lua1
Transcendosaurus Exaraptor56818742Scripts/c56818742.lua1
Ogdoadic Hollow96433300Scripts/c96433300.lua1
True Light62089826Scripts/c62089826.lua1
Topologic Blaster Dragon30064423Scripts/c30064423.lua1
Xtra HERO Wonder Driver1948619Scripts/c1948619.lua1
Flash Charge Dragon95372220Scripts/c95372220.lua1
Tindangle Base Gardna94365540Scripts/c94365540.lua1
Subterror Behemoth Fiendess74937659Scripts/c74937659.lua1
Firewall Dragon5043010Scripts/c5043010.lua1
Vaylantz Mad Marquess87897777Scripts/c87897777.lua1
Vaylantz Wave - Master Phase84281045Scripts/c84281045.lua1
Saion the Vaylantz Archer15130912Scripts/c15130912.lua1
...and 35 more

Script Examples ​

Hojo the Vaylantz Warrior (88919365) ​

Source: Scripts/c88919365.lua

lua
	local ph=Duel.GetCurrentPhase()
	return c:IsPreviousLocation(LOCATION_MZONE) and c:IsLocation(LOCATION_MZONE)
		and (c:GetPreviousSequence()~=c:GetSequence() or c:GetPreviousControler()~=tp)
		and ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL
end

Arktos XII - Chronochasm Vaylantz (50687050) ​

Source: Scripts/c50687050.lua

lua
function s.cfilter(c)
	return c:IsLocation(LOCATION_MZONE) and c:IsPreviousLocation(LOCATION_MZONE)
		and (c:GetPreviousSequence()~=c:GetSequence() or c:GetPreviousControler()~=c:GetControler())
end
function s.descon(e,tp,eg,ep,ev,re,r,rp)

Enlilgirsu, the Orcust Mekk-Knight (74820316) ​

Source: Scripts/c74820316.lua

lua
function s.regcon(e,tp,eg,ep,ev,re,r,rp)
	local c=e:GetHandler()
	return c:GetPreviousSequence()>4 and c:IsPreviousLocation(LOCATION_MZONE)
end
function s.regop(e,tp,eg,ep,ev,re,r,rp)