Skip to content

Card.GetColumnZone ​

Signature ​

lua
Card.GetColumnZone(Card c, int loc, [int player]) -> int

Description ​

Returns the zone bitmask for columns overlapping c within loc. When player is supplied as the opposing perspective, the core swaps the player/opponent halves of the mask.

Parameters ​

  • c Card
  • loc int
  • player int optional

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 14 indexed script(s).
  • Search this function in the Script Explorer with Card.GetColumnZone.
CardIDScriptDetected Calls
Mekk-Knight Purple Nightfall28692962Scripts/c28692962.lua2
Distrust Paranoia81965543Scripts/c81965543.lua1
Mekk-Knight Red Moon56809158Scripts/c56809158.lua2
Mekk-Knight Blue Sky20537097Scripts/c20537097.lua2
Mekk-Knight Green Horizon66022706Scripts/c66022706.lua2
Mekk-Knight Yellow Star29415459Scripts/c29415459.lua2
S-Force Specimen82977464Scripts/c82977464.lua2
Mekk-Knight Orange Sunset93020401Scripts/c93020401.lua3
Disablaster the Negation Fortress58707981Scripts/c58707981.lua1
Red Hared Hasty Horse19636995Scripts/c19636995.lua1
Mekk-Knight Indigo Eclipse92204263Scripts/c92204263.lua2
Staring Contest97729135Scripts/c97729135.lua4
Iron Dragon Tiamaton46247282Scripts/c46247282.lua1
Sour Scheduling - Red Vinegar Vamoose65107325Scripts/c65107325.lua1

Script Examples ​

Mekk-Knight Purple Nightfall (28692962) ​

Source: Scripts/c28692962.lua

lua
	local lg=Duel.GetMatchingGroup(c28692962.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
	for tc in aux.Next(lg) do
		zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
	end
	return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0

Distrust Paranoia (81965543) ​

Source: Scripts/c81965543.lua

lua
	local lg=Duel.GetMatchingGroup(s.cfilter,tp,0,LOCATION_MZONE,nil,tp)
	for tc in aux.Next(lg) do
		zone=bit.bor(zone,tc:GetColumnZone(LOCATION_ONFIELD,tp))
	end
	return zone

Mekk-Knight Red Moon (56809158) ​

Source: Scripts/c56809158.lua

lua
	local lg=Duel.GetMatchingGroup(c56809158.cfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
	for tc in aux.Next(lg) do
		zone=bit.bor(zone,tc:GetColumnZone(LOCATION_MZONE,tp))
	end
	return Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)>0