Card.GetRank
Signature
lua
Card.GetRank(Card c) -> intDescription
Returns c's current Rank. Non-Xyz cards return 0. Xyz Monsters outside the Monster Zone return their original Rank; in the Monster Zone, Rank-changing effects are applied and the result is at least 1.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3457
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 101 indexed script(s).
- Search this function in the Script Explorer with
Card.GetRank.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Resurgam Xyz | 49082032 | Scripts/c49082032.lua | 2 |
| Rank-Up-Magic Astral Force | 45950291 | Scripts/c45950291.lua | 3 |
| Grandpa Demetto | 44190146 | Scripts/c44190146.lua | 2 |
| The Phantom Knights' Rank-Up-Magic Requiem | 62104532 | Scripts/c62104532.lua | 2 |
| Phantom Knights' Rank-Up-Magic Force | 88504133 | Scripts/c88504133.lua | 6 |
| Purrely Sharely!? | 10780049 | Scripts/c10780049.lua | 2 |
| Purrelyeap!? | 82983267 | Scripts/c82983267.lua | 2 |
| Raider's Knight | 28781003 | Scripts/c28781003.lua | 2 |
| Rank-Up-Magic Zexal Force | 36224040 | Scripts/c36224040.lua | 2 |
| Rank-Up-Magic Numeron Force | 48333324 | Scripts/c48333324.lua | 2 |
| Number 93: Utopia Kaiser | 23187256 | Scripts/c23187256.lua | 1 |
| The Phantom Knights' Rank-Up-Magic Launch | 3298689 | Scripts/c3298689.lua | 3 |
| Infernoid Piaty | 25811989 | Scripts/c25811989.lua | 1 |
| V Umbral Horror | 39053882 | Scripts/c39053882.lua | 3 |
| Chronomaly Esperanza Glyph | 50797682 | Scripts/c50797682.lua | 2 |
| Rank-Up-Magic Argent Chaos Force | 94220427 | Scripts/c94220427.lua | 2 |
| DoomZ Command "D.O.O.M.D.U.R.G." | 68831625 | Scripts/c68831625.lua | 1 |
| Tellarknight Ptolemaeus | 18326736 | Scripts/c18326736.lua | 2 |
| Sharv Sarga | 75728539 | Scripts/c75728539.lua | 1 |
| Infernoid Attondel | 88301393 | Scripts/c88301393.lua | 1 |
| Xyz Revive Splash | 32764863 | Scripts/c32764863.lua | 2 |
| Infernoid Seitsemas | 51316684 | Scripts/c51316684.lua | 1 |
| Rank-Up-Magic Barian's Force | 47660516 | Scripts/c47660516.lua | 2 |
| Rank-Down-Magic Numeron Fall | 71345905 | Scripts/c71345905.lua | 2 |
| ...and 77 more |
Script Examples
Resurgam Xyz (49082032)
Source: Scripts/c49082032.lua
lua
return c:IsFaceup() and c:IsType(TYPE_XYZ)
and aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
and Duel.IsExistingMatchingCard(c49082032.spfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c,c:GetRace(),c:GetRank()+1)
end
function c49082032.spfilter2(c,e,tp,mc,race,rk)Rank-Up-Magic Astral Force (45950291)
Source: Scripts/c45950291.lua
lua
end
function c45950291.cfilter(c,rk)
return c:IsFaceup() and c:GetRank()>rk
end
function c45950291.filter1(c,e,tp)Grandpa Demetto (44190146)
Source: Scripts/c44190146.lua
lua
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
e:SetLabelObject(rc)
local dmg=rc:GetRank()*300
Duel.SetTargetCard(rc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)