Card.GetLinkedZone
Signature
lua
Card.GetLinkedZone(Card c, [int player]) -> intDescription
Returns the linked-zone bitmask generated by c. By default the bitmask is from c's controller perspective. Passing player converts the mask to that player's perspective. Use bit helpers such as bit.extract or bit.band when checking whether a specific sequence is pointed to.
Parameters
cCardplayerintoptional - Perspective player for the returned zone mask. Default: c's controller.
Returns
int- Linked-zone bitmask from the requested perspective.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3472
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 61 indexed script(s).
- Search this function in the Script Explorer with
Card.GetLinkedZone.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Azure Ocean Dragon Lord - Neo-Daedalus Rage | 41570943 | Scripts/c41570943.lua | 2 |
| Bujinki Ahashima | 71095768 | Scripts/c71095768.lua | 2 |
| Duel Link Dragon, the Duel Dragon | 60025883 | Scripts/c60025883.lua | 2 |
| Cyberse Contract Witch | 37458564 | Scripts/c37458564.lua | 1 |
| Overburst Dragon | 15627227 | Scripts/c15627227.lua | 2 |
| Cyberse Witch | 11674673 | Scripts/c11674673.lua | 1 |
| Salamangreat Sunlight Wolf | 87871125 | Scripts/c87871125.lua | 1 |
| Cynet Circuit | 82886276 | Scripts/c82886276.lua | 2 |
| S-Force Justify | 35334193 | Scripts/c35334193.lua | 2 |
| Allied Code Talker @Ignister | 39138610 | Scripts/c39138610.lua | 2 |
| Borreload Dragon | 31833038 | Scripts/c31833038.lua | 2 |
| Qliphort Genius | 22423493 | Scripts/c22423493.lua | 1 |
| Battle Shogun of the Six Samurai | 74752631 | Scripts/c74752631.lua | 1 |
| Transcendosaurus Exaraptor | 56818742 | Scripts/c56818742.lua | 1 |
| Appliancer Test | 66380357 | Scripts/c66380357.lua | 2 |
| Xtra HERO Wonder Driver | 1948619 | Scripts/c1948619.lua | 1 |
| Flash Charge Dragon | 95372220 | Scripts/c95372220.lua | 2 |
| Bloom Harmonist the Melodious Composer | 34974462 | Scripts/c34974462.lua | 2 |
| Tindangle Base Gardna | 94365540 | Scripts/c94365540.lua | 1 |
| Parallel Panzer | 93394164 | Scripts/c93394164.lua | 2 |
| Subterror Behemoth Fiendess | 74937659 | Scripts/c74937659.lua | 3 |
| Borreload Liberator Dragon | 27096833 | Scripts/c27096833.lua | 2 |
| Dark Templar @Ignister | 97383507 | Scripts/c97383507.lua | 2 |
| Summon Sorceress | 61665245 | Scripts/c61665245.lua | 2 |
| ...and 37 more |
Script Examples
Azure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(s.spfilter1,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) endBujinki Ahashima (71095768)
Source: Scripts/c71095768.lua
lua
and c71095768[1]==LOCATION_MZONE and re:IsActiveType(TYPE_XYZ)) then return false end
local c=e:GetHandler()
local zone=(c:GetLinkedZone(0) & 0x7f) | ((c:GetLinkedZone(1) & 0x7f)<<0x10)
local seq=c71095768[2]
return seq and bit.extract(zone,seq)~=0Duel Link Dragon, the Duel Dragon (60025883)
Source: Scripts/c60025883.lua
lua
end
function c60025883.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local zone=bit.band(e:GetHandler():GetLinkedZone(tp),0x1f)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0 and zone~=0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)