Skip to content

Duel.GetLinkedZone ​

Signature ​

lua
Duel.GetLinkedZone(int player) -> int

Description ​

Returns the zone bitmask currently pointed to by Link Markers from player's perspective. Use bit operations to test individual zones. For one Link Monster's markers, use Card.GetLinkedZone.

Parameters ​

  • player int - Perspective player for the returned zone mask.

Returns ​

  • int - Linked-zone bitmask from player's perspective.

Source ​

  • D:\Programs\GitHub\ygopro-core\libduel.cpp:4942

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 22 indexed script(s).
  • Search this function in the Script Explorer with Duel.GetLinkedZone.
CardIDScriptDetected Calls
Rescue Ferret56343672Scripts/c56343672.lua2
Topologic Blaster Dragon30064423Scripts/c30064423.lua2
Sunvine Thrasher91557476Scripts/c91557476.lua2
Topologic Zeroboros66403530Scripts/c66403530.lua2
Topologic Bomber Dragon5821478Scripts/c5821478.lua2
Salamangreat Mole89484053Scripts/c89484053.lua2
Codebreaker Virus Berserker48736598Scripts/c48736598.lua2
Theorealize Past Lull36709484Scripts/c36709484.lua2
Codebreaker Virus Swordsman84121193Scripts/c84121193.lua2
Crusadia Maximus81524756Scripts/c81524756.lua2
World Legacy - "World Crown"27918365Scripts/c27918365.lua2
World Chalice Guardragon84899094Scripts/c84899094.lua2
Crusadia Draco54525057Scripts/c54525057.lua2
Crusadia Reclusia55241609Scripts/c55241609.lua2
Sea Archiver53309998Scripts/c53309998.lua2
Topologic Gumblar Dragon22593417Scripts/c22593417.lua2
Crusadia Leonis28031913Scripts/c28031913.lua2
Crusadia Arboria91646304Scripts/c91646304.lua2
Lane Restriction47914440Scripts/c47914440.lua1
Packet Link78859567Scripts/c78859567.lua2
World Legacy Succession99674361Scripts/c99674361.lua2
Link Infra-Flier65100616Scripts/c65100616.lua2

Script Examples ​

Rescue Ferret (56343672) ​

Source: Scripts/c56343672.lua

lua
function c56343672.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
	if chk==0 then
		local zone=Duel.GetLinkedZone(tp)
		local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)
		local seq=e:GetHandler():GetSequence()

Topologic Blaster Dragon (30064423) ​

Source: Scripts/c30064423.lua

lua
end
function s.econ(e,tp,eg,ep,ev,re,r,rp)
	local zone=Duel.GetLinkedZone(0)+(Duel.GetLinkedZone(1)<<0x10)
	return not eg:IsContains(e:GetHandler()) and eg:IsExists(s.cfilter,1,nil,zone) and e:GetHandler():GetSequence()>4
end

Sunvine Thrasher (91557476) ​

Source: Scripts/c91557476.lua

lua
function c91557476.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
	local bc=e:GetHandler():GetBattleTarget()
	local zone=Duel.GetLinkedZone(tp)&0x1f
	if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0
		and bc:IsCanBeSpecialSummoned(e,0,tp,false,false) end