Card.GetTextAttack
Signature
lua
Card.GetTextAttack(Card c) -> intDescription
Returns the ATK value recorded in c's card data. This is the printed/database value, not the current ATK. Unlike Card.GetAttack, the binding does not clamp unknown ATK to 0, except cards marked STATUS_NO_LEVEL return 0.
Parameters
cCard
Returns
int
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3493
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 109 indexed script(s).
- Search this function in the Script Explorer with
Card.GetTextAttack.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Destratification Dino Stratiae | 3841104 | Scripts/c3841104.lua | 1 |
| Duel Link Dragon, the Duel Dragon | 60025883 | Scripts/c60025883.lua | 1 |
| Meklord Astro Mekanikle | 63468625 | Scripts/c63468625.lua | 2 |
| Spirit Poacher | 85150300 | Scripts/c85150300.lua | 1 |
| Raidraptor - Rising Rebellion Falcon | 71222868 | Scripts/c71222868.lua | 2 |
| Super Armored Robot Armed Black Iron "C" | 77754169 | Scripts/c77754169.lua | 2 |
| Cynet Backdoor | 43839002 | Scripts/c43839002.lua | 4 |
| Allure Queen LV5 | 23756165 | Scripts/c23756165.lua | 1 |
| Tragic Twin Twined Jewels | 81143465 | Scripts/c81143465.lua | 2 |
| Meklord Astro Dragon Triskelion | 4837861 | Scripts/c4837861.lua | 1 |
| Meklord Emperor Granel | 4545683 | Scripts/c4545683.lua | 1 |
| CXyz Gimmick Puppet Fanatix Machinix | 3685372 | Scripts/c3685372.lua | 2 |
| Crossmind Archfiend | 52644170 | Scripts/c52644170.lua | 2 |
| Blaze Cannon | 4059313 | Scripts/c4059313.lua | 2 |
| Maiden of Blue Tears | 99176254 | Scripts/c99176254.lua | 2 |
| Meklord Emperor Skiel | 31930787 | Scripts/c31930787.lua | 1 |
| Nightmare-Eyes Restrict | 30138615 | Scripts/c30138615.lua | 2 |
| Ebon Sun | 96029570 | Scripts/c96029570.lua | 1 |
| Crystal Clear Wing Synchro Dragon | 59765225 | Scripts/c59765225.lua | 1 |
| Meklord Emperor Wisel | 68140974 | Scripts/c68140974.lua | 1 |
| Gizmek Okami, the Dreaded Deluge Dragon | 43218406 | Scripts/c43218406.lua | 1 |
| Zenet Per Akh | 72278590 | Scripts/c72278590.lua | 1 |
| Nibiru, the Primal Being | 27204311 | Scripts/c27204311.lua | 2 |
| Loud Cloud the Storm Serpent | 61465001 | Scripts/c61465001.lua | 1 |
| ...and 85 more |
Script Examples
Destratification Dino Stratiae (3841104)
Source: Scripts/c3841104.lua
lua
for tc in aux.Next(g) do
if tc:IsLinkRace(RACE_DINOSAUR) and aux.covcheck(tc) then
local tatk=tc:GetTextAttack()
if tatk>0 then atk=atk+tatk end
endDuel Link Dragon, the Duel Dragon (60025883)
Source: Scripts/c60025883.lua
lua
local zone=bit.band(c:GetLinkedZone(tp),0x1f)
local tc=e:GetLabelObject()
local atk=tc:GetTextAttack()
local def=tc:GetTextDefense()
local lv=tc:GetOriginalLevel()Meklord Astro Mekanikle (63468625)
Source: Scripts/c63468625.lua
lua
local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and tc:IsType(TYPE_MONSTER) then
local atk=tc:GetTextAttack()
if atk<0 then atk=0 end
if not Duel.Equip(tp,tc,c,false) then return end