Card.SetFlagEffectLabel
Signature
lua
Card.SetFlagEffectLabel(Card c, int code, int label) -> boolDescription
Sets the first matching flag effect label for code on c to label and returns whether a flag effect was found.
Parameters
cCard- Card whose matching flag effect is updated.codeint- Flag-effect code to find.labelint- New integer label stored on the first matching flag effect.
Returns
bool- True if a matching flag effect was updated; false if none exists.
Source
D:\Programs\GitHub\ygopro-core\libcard.cpp:3610
Guided Examples
Learn how to use this function in context:
Used By
Generated from the local Scripts/ folder and cards.cdb.
- Detected in 13 indexed script(s).
- Search this function in the Script Explorer with
Card.SetFlagEffectLabel.
| Card | ID | Script | Detected Calls |
|---|---|---|---|
| Groza, Tyrant of Thunder | 45420955 | Scripts/c45420955.lua | 3 |
| Sky Striker Mecha Modules - Multirole | 24010609 | Scripts/c24010609.lua | 2 |
| Ultimate Divine-Beast | 32247099 | Scripts/c32247099.lua | 2 |
| Van'Dalgyon the Dark Dragon Lord | 24857466 | Scripts/c24857466.lua | 3 |
| Evilswarm Ouroboros | 38273745 | Scripts/c38273745.lua | 1 |
| Gaia Blaze, the Force of the Sun | 9709452 | Scripts/c9709452.lua | 1 |
| Shootingcode Talker | 33897356 | Scripts/c33897356.lua | 1 |
| Lair of Darkness | 59160188 | Scripts/c59160188.lua | 1 |
| Super Rush Headlong | 48422921 | Scripts/c48422921.lua | 1 |
| Blockman | 48115277 | Scripts/c48115277.lua | 1 |
| Greed | 89405199 | Scripts/c89405199.lua | 1 |
| Dark Snake Syndrome | 47233801 | Scripts/c47233801.lua | 1 |
| Reversal of Fate | 36690018 | Scripts/c36690018.lua | 1 |
Script Examples
Groza, Tyrant of Thunder (45420955)
Source: Scripts/c45420955.lua
lua
c:RegisterFlagEffect(45420955,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end
c:SetFlagEffectLabel(45420955,bit.bor(c:GetFlagEffectLabel(45420955),0x1))
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(45420955,2))Sky Striker Mecha Modules - Multirole (24010609)
Source: Scripts/c24010609.lua
lua
local flag=c:GetFlagEffectLabel(24010609)
if flag then
c:SetFlagEffectLabel(24010609,flag+1)
else
c:RegisterFlagEffect(24010609,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,1)Ultimate Divine-Beast (32247099)
Source: Scripts/c32247099.lua
lua
rc:RegisterFlagEffect(32247099,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,1)
else
rc:SetFlagEffectLabel(32247099,ct+1)
end
end