Skip to content

Card.GetControler ​

Signature ​

lua
Card.GetControler(Card c) -> int

Description ​

Returns c's current controller.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Guided Examples ​

Learn how to use this function in context:

Used By ​

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

  • Detected in 1272 indexed script(s).
  • Search this function in the Script Explorer with Card.GetControler.
CardIDScriptDetected Calls
Artmage Non-Finito74631897Scripts/c74631897.lua1
Levia-Dragoon - Daedalus78579058Scripts/c78579058.lua1
Lady's Dragonmaid48658295Scripts/c48658295.lua2
Azure Ocean Dragon Lord - Neo-Daedalus Rage41570943Scripts/c41570943.lua1
Goyo Emperor59255742Scripts/c59255742.lua1
Destiny HERO - Destro-Dogma25158975Scripts/c25158975.lua1
Yomagna the Fire Phantom17350692Scripts/c17350692.lua2
Ghostrick Renovation61818176Scripts/c61818176.lua1
Ursarctic Polari27693363Scripts/c27693363.lua2
Odd-Eyes Revolution Dragon16306932Scripts/c16306932.lua1
D/D/D/D Dimensional King Arc Crisis71398055Scripts/c71398055.lua1
Odd-Eyes Arcray Dragon6218704Scripts/c6218704.lua2
Enlightenment Dragon46186135Scripts/c46186135.lua1
Flower Cardian Peony with Butterfly57261568Scripts/c57261568.lua2
Ultimate Crystal Rainbow Dragon Overdrive84544192Scripts/c84544192.lua1
Tellusion the Magna Warrior24431911Scripts/c24431911.lua1
Ursarctic Polar Star62714453Scripts/c62714453.lua1
Vidolium the Unstable Power Patron of Unity70488851Scripts/c70488851.lua1
DoSolfachord Coolia80776622Scripts/c80776622.lua1
W:P Fancy Ball4993187Scripts/c4993187.lua1
Flower Cardian Willow with Calligrapher89818984Scripts/c89818984.lua2
Cyber Pharos29719112Scripts/c29719112.lua1
Vaylantz Genesis Grand Duke76075139Scripts/c76075139.lua3
Hunting Horn55421040Scripts/c55421040.lua1
...and 1248 more

Script Examples ​

Artmage Non-Finito (74631897) ​

Source: Scripts/c74631897.lua

lua
function s.spcon(e,c)
	if c==nil then return true end
	local tp=c:GetControler()
	if Duel.GetFlagEffect(tp,id)>0 then return false end
	local rg=s.getrg(tp,c)

Levia-Dragoon - Daedalus (78579058) ​

Source: Scripts/c78579058.lua

lua
					if minc>maxc then return false end
				end
				local tp=c:GetControler()
				local mg=nil
				if og then

Lady's Dragonmaid (48658295) ​

Source: Scripts/c48658295.lua

lua
function s.spcon(e,c)
	if c==nil then return true end
	local tp=c:GetControler()
	local fg=Duel.GetMatchingGroup(s.fusfilter,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
	return fg:CheckSubGroup(s.fselect,2,2)