Skip to content

Card.GetLocation ​

Signature ​

lua
Card.GetLocation(Card c) -> int

Description ​

Returns c's current location, or 0 if c is currently treated as not being on the field.

Parameters ​

  • c Card

Returns ​

  • int

Source ​

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

Used By ​

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

  • Detected in 23 indexed script(s).
  • Search this function in the Script Explorer with Card.GetLocation.
CardIDScriptDetected Calls
Bujinki Ahashima71095768Scripts/c71095768.lua1
Daigusto Laplampilica76937326Scripts/c76937326.lua1
Raidraptor - Rising Rebellion Falcon71222868Scripts/c71222868.lua1
Goblin Biker Grand Crisis15094540Scripts/c15094540.lua2
Amazement Abomination Arlekino31600845Scripts/c31600845.lua1
EN - Engage Neo Space80170678Scripts/c80170678.lua1
Ninjitsu Art Notebook of Mystery95545183Scripts/c95545183.lua1
Gold Pride - Nytro Head59900655Scripts/c59900655.lua2
Rage Rose Witch33955120Scripts/c33955120.lua1
Infinite Light72883039Scripts/c72883039.lua1
Cybernetic Horizon63031396Scripts/c63031396.lua1
Mathmech Division89743495Scripts/c89743495.lua1
T.G. Trident Launcher50750868Scripts/c50750868.lua1
Springans Ship - Exblowrer62941499Scripts/c62941499.lua1
Parametalfoes Fusion58549532Scripts/c58549532.lua2
Spell Gear313513Scripts/c313513.lua1
The Bystial Aluber45005708Scripts/c45005708.lua1
Super Soldier Synthesis45948430Scripts/c45948430.lua1
Traptrix Genlisea88078306Scripts/c88078306.lua1
Theinen the Great Sphinx87997872Scripts/c87997872.lua1
Mikazukinoyaiba, the Moon Fang Dragon85753549Scripts/c85753549.lua1
Dances with Beasts33298291Scripts/c33298291.lua1
Foolish Trap Hole10529441Scripts/c10529441.lua1

Script Examples ​

Bujinki Ahashima (71095768) ​

Source: Scripts/c71095768.lua

lua
end
function c71095768.fselect(g,tp)
	return g:GetClassCount(Card.GetLocation)==g:GetCount() and g:GetClassCount(Card.GetLevel)==1
		and Duel.IsExistingMatchingCard(Card.IsXyzSummonable,tp,LOCATION_EXTRA,0,1,nil,g,2,2)
end

Daigusto Laplampilica (76937326) ​

Source: Scripts/c76937326.lua

lua
end
function c76937326.fselect(g,tp)
	return g:GetClassCount(Card.GetLocation)==#g and Duel.IsExistingMatchingCard(c76937326.synfilter,tp,LOCATION_EXTRA,0,1,nil,g)
end
function c76937326.synfilter(c,g)

Raidraptor - Rising Rebellion Falcon (71222868) ​

Source: Scripts/c71222868.lua

lua
end
function s.damval1(c)
	if c:GetLocation()~=LOCATION_MZONE then return end
	return math.max(0,c:GetTextAttack())
end