Card.GetLocation
Signature
lua
Card.GetLocation(Card c) -> intDescription
Returns c's current location, or 0 if c is currently treated as not being on the field.
Parameters
cCard
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.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Bujinki Ahashima | 71095768 | Scripts/c71095768.lua | 1 |
| Daigusto Laplampilica | 76937326 | Scripts/c76937326.lua | 1 |
| Raidraptor - Rising Rebellion Falcon | 71222868 | Scripts/c71222868.lua | 1 |
| Goblin Biker Grand Crisis | 15094540 | Scripts/c15094540.lua | 2 |
| Amazement Abomination Arlekino | 31600845 | Scripts/c31600845.lua | 1 |
| EN - Engage Neo Space | 80170678 | Scripts/c80170678.lua | 1 |
| Ninjitsu Art Notebook of Mystery | 95545183 | Scripts/c95545183.lua | 1 |
| Gold Pride - Nytro Head | 59900655 | Scripts/c59900655.lua | 2 |
| Rage Rose Witch | 33955120 | Scripts/c33955120.lua | 1 |
| Infinite Light | 72883039 | Scripts/c72883039.lua | 1 |
| Cybernetic Horizon | 63031396 | Scripts/c63031396.lua | 1 |
| Mathmech Division | 89743495 | Scripts/c89743495.lua | 1 |
| T.G. Trident Launcher | 50750868 | Scripts/c50750868.lua | 1 |
| Springans Ship - Exblowrer | 62941499 | Scripts/c62941499.lua | 1 |
| Parametalfoes Fusion | 58549532 | Scripts/c58549532.lua | 2 |
| Spell Gear | 313513 | Scripts/c313513.lua | 1 |
| The Bystial Aluber | 45005708 | Scripts/c45005708.lua | 1 |
| Super Soldier Synthesis | 45948430 | Scripts/c45948430.lua | 1 |
| Traptrix Genlisea | 88078306 | Scripts/c88078306.lua | 1 |
| Theinen the Great Sphinx | 87997872 | Scripts/c87997872.lua | 1 |
| Mikazukinoyaiba, the Moon Fang Dragon | 85753549 | Scripts/c85753549.lua | 1 |
| Dances with Beasts | 33298291 | Scripts/c33298291.lua | 1 |
| Foolish Trap Hole | 10529441 | Scripts/c10529441.lua | 1 |
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)
endDaigusto 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