Card.GetLink
Signature
lua
Card.GetLink(Card c) -> intDescription
Returns c's Link Rating, or 0 if c is not a Link Monster.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3458
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 56 indexed script(s).
- Search this function in the Script Explorer with
Card.GetLink.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Levia-Dragoon - Daedalus | 78579058 | Scripts/c78579058.lua | 3 |
| Azure Ocean Dragon Lord - Neo-Daedalus Rage | 41570943 | Scripts/c41570943.lua | 3 |
| Marincess Cascade | 27012990 | Scripts/c27012990.lua | 1 |
| Gergonne's End | 59490397 | Scripts/c59490397.lua | 1 |
| Accesscode Talker | 86066372 | Scripts/c86066372.lua | 1 |
| Clown Crew Finale | 84031736 | Scripts/c84031736.lua | 2 |
| Tri-Brigade Nervall | 14816857 | Scripts/c14816857.lua | 1 |
| Sharv Sarga | 75728539 | Scripts/c75728539.lua | 1 |
| Marincess Coral Triangle | 84546257 | Scripts/c84546257.lua | 2 |
| Cyberse Clock Dragon | 42717221 | Scripts/c42717221.lua | 1 |
| Tri-Brigade Fraktall | 87209160 | Scripts/c87209160.lua | 1 |
| Tri-Brigade Kitt | 56196385 | Scripts/c56196385.lua | 1 |
| Tri-Brigade Kerass | 50810455 | Scripts/c50810455.lua | 1 |
| Benghalancer the Resurgent | 73345237 | Scripts/c73345237.lua | 2 |
| Quadborrel Dragon | 29296344 | Scripts/c29296344.lua | 1 |
| V-LAN Hydra | 13536606 | Scripts/c13536606.lua | 2 |
| Rustin Mammoth | 3434362 | Scripts/c3434362.lua | 2 |
| Salamangreat Rage | 14934922 | Scripts/c14934922.lua | 1 |
| Tri-Brigade Hammer | 92269002 | Scripts/c92269002.lua | 1 |
| Akashic Magician | 28776350 | Scripts/c28776350.lua | 2 |
| Fiendsmith's Desirae | 82135803 | Scripts/c82135803.lua | 2 |
| Sunvine Thrasher | 91557476 | Scripts/c91557476.lua | 2 |
| Marincess Circulation | 83723605 | Scripts/c83723605.lua | 1 |
| Marincess Bubble Ring | 19712214 | Scripts/c19712214.lua | 1 |
| ...and 32 more |
Script Examples
Levia-Dragoon - Daedalus (78579058)
Source: Scripts/c78579058.lua
lua
end
function s.GetLinkCount(c)
if c:IsLinkType(TYPE_LINK) and c:GetLink()>1 then
return 1+0x10000*c:GetLink()
else return 1 endAzure Ocean Dragon Lord - Neo-Daedalus Rage (41570943)
Source: Scripts/c41570943.lua
lua
end
function s.GetLinkCount(c)
if c:IsLinkType(TYPE_LINK) and c:GetLink()>1 then
return 1+0x10000*c:GetLink()
else return 1 endMarincess Cascade (27012990)
Source: Scripts/c27012990.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=g:SelectSubGroup(tp,c27012990.fselect,false,1,g:GetCount(),tp)
local ct=rg:GetSum(Card.GetLink)
e:SetLabel(ct)
local tct=1