Skip to content

Card.GetColumnGroup ​

Signature ​

lua
Card.GetColumnGroup(Card c) -> Group

Description ​

Returns a Group containing cards in the same column as c. This MDPro4/YGOPro binding only takes c. It uses c's current on-field column, including related Monster Zones, Spell & Trap Zones, and Extra Monster Zone column relationships; if c is not on the field, the returned Group is empty.

Parameters ​

  • c Card

Returns ​

  • Group

Source ​

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

Used By ​

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

  • Detected in 51 indexed script(s).
  • Search this function in the Script Explorer with Card.GetColumnGroup.
CardIDScriptDetected Calls
Vanquish Soul Trinity Burst53330789Scripts/c53330789.lua2
Angelechy Bastion28904860Scripts/c28904860.lua1
Sprind the Irondash Dragon1906812Scripts/c1906812.lua1
Imposter Shift89027418Scripts/c89027418.lua1
Distrust Paranoia81965543Scripts/c81965543.lua3
Wattkingdom41790641Scripts/c41790641.lua1
S-Force Signify19951423Scripts/c19951423.lua1
Parallel Panzer93394164Scripts/c93394164.lua3
S-Force Nightchaser20515672Scripts/c20515672.lua2
Solving for Pendulum5208118Scripts/c5208118.lua1
S-Force Rappa Chiyomaru22180094Scripts/c22180094.lua2
Shelrokket Dragon5087128Scripts/c5087128.lua2
Vanquish Soul Razen29302858Scripts/c29302858.lua2
Angelechy Destrier55393975Scripts/c55393975.lua1
Vanquish Soul Pantera66401502Scripts/c66401502.lua2
Junora the Power Patron of Tuning5914858Scripts/c5914858.lua2
Thunder Ball84813516Scripts/c84813516.lua2
Prey of the Jirai Gumo33055499Scripts/c33055499.lua1
S-Force Lapcewell27383719Scripts/c27383719.lua1
Mekk-Knight Red Moon56809158Scripts/c56809158.lua1
Bomber Place71750854Scripts/c71750854.lua2
Mekk-Knight Spectrum Supreme38502358Scripts/c38502358.lua1
Girsu, the Orcust Mekk-Knight69811710Scripts/c69811710.lua1
S-Force Orrafist95974848Scripts/c95974848.lua1
...and 27 more

Script Examples ​

Vanquish Soul Trinity Burst (53330789) ​

Source: Scripts/c53330789.lua

lua
		Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
		local tg=g:SelectSubGroup(tp,aux.dncheck,false,1,max)
		local rg=tc:GetColumnGroup():Filter(Card.IsControler,nil,1-tp)
		local fid=c:GetFieldID()
		local sg=Group.CreateGroup()

Angelechy Bastion (28904860) ​

Source: Scripts/c28904860.lua

lua
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
	local c=e:GetHandler()
	local g=c:GetColumnGroup()
	if chkc then return chkc:IsLocation(LOCATION_ONFIELD) and s.rmfilter(chkc,g) and chkc~=c end
	if chk==0 then return Duel.IsExistingTarget(s.rmfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,g) end

Sprind the Irondash Dragon (1906812) ​

Source: Scripts/c1906812.lua

lua
	Duel.MoveSequence(c,seq)
	if c:GetSequence()==seq then
		local g=c:GetColumnGroup():Filter(Card.IsFaceup,nil)
		if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(1906812,2)) then
			Duel.BreakEffect()