Card.GetOriginalCode
Signature
lua
Card.GetOriginalCode(Card c) -> intDescription
Returns c's original card code from card data.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3437
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 99 indexed script(s).
- Search this function in the Script Explorer with
Card.GetOriginalCode.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Deftero Enneacraft - "alazoneIA" | 92171126 | Scripts/c92171126.lua | 1 |
| PSY-Framelord Omega | 74586817 | Scripts/c74586817.lua | 1 |
| Shooting Majestic Star Dragon | 40939228 | Scripts/c40939228.lua | 1 |
| PSY-Framelord Zeta | 37192109 | Scripts/c37192109.lua | 1 |
| Starving Venemy Dragon | 93729065 | Scripts/c93729065.lua | 1 |
| W:P Fancy Ball | 4993187 | Scripts/c4993187.lua | 1 |
| A Bao A Qu, the Lightless Shadow | 4731783 | Scripts/c4731783.lua | 1 |
| Angelica, Princess of Noble Arms | 36320744 | Scripts/c36320744.lua | 1 |
| Duel Link Dragon, the Duel Dragon | 60025883 | Scripts/c60025883.lua | 1 |
| Ecclesia and the Dark Dragon | 78397661 | Scripts/c78397661.lua | 1 |
| Rank-Up-Magic Astral Force | 45950291 | Scripts/c45950291.lua | 1 |
| The Phantom Knights' Rank-Up-Magic Requiem | 62104532 | Scripts/c62104532.lua | 1 |
| Emperor Charles the Great | 97864322 | Scripts/c97864322.lua | 1 |
| Gladiator Beast Gaiodiaz | 90957527 | Scripts/c90957527.lua | 2 |
| Timebreaker Magician | 80335817 | Scripts/c80335817.lua | 1 |
| Sleipnir the Runick Mane | 74659582 | Scripts/c74659582.lua | 1 |
| Rank-Up-Magic Numeron Force | 48333324 | Scripts/c48333324.lua | 1 |
| The Phantom Knights' Rank-Up-Magic Launch | 3298689 | Scripts/c3298689.lua | 1 |
| Raidraptor - Rising Rebellion Falcon | 71222868 | Scripts/c71222868.lua | 1 |
| Time Thief Redoer | 55285840 | Scripts/c55285840.lua | 1 |
| Gladiator Beast Gyzarus | 48156348 | Scripts/c48156348.lua | 2 |
| V Umbral Horror | 39053882 | Scripts/c39053882.lua | 1 |
| Rank-Up-Magic Argent Chaos Force | 94220427 | Scripts/c94220427.lua | 1 |
| Blackwing - Aurora the Northern Lights | 4068622 | Scripts/c4068622.lua | 1 |
| ...and 75 more |
Script Examples
Deftero Enneacraft - "alazoneIA" (92171126)
Source: Scripts/c92171126.lua
lua
local fid=c:GetFieldID()
local og=Duel.GetOperatedGroup()
if c:GetOriginalCode()~=id then
og:RemoveCard(c)
endPSY-Framelord Omega (74586817)
Source: Scripts/c74586817.lua
lua
local fid=c:GetFieldID()
local og=Duel.GetOperatedGroup()
if c:GetOriginalCode()~=id then
og:RemoveCard(c)
endShooting Majestic Star Dragon (40939228)
Source: Scripts/c40939228.lua
lua
local fid=c:GetFieldID()
if c:IsRelateToEffect(e) and Duel.Remove(c,0,REASON_EFFECT+REASON_TEMPORARY)~=0 then
if c:GetOriginalCode()==id then
c:RegisterFlagEffect(40939228,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
local e1=Effect.CreateEffect(c)