Skip to content

Card.SetFlagEffectLabel ​

Signature ​

lua
Card.SetFlagEffectLabel(Card c, int code, int label) -> bool

Description ​

Sets the first matching flag effect label for code on c to label and returns whether a flag effect was found.

Parameters ​

  • c Card - Card whose matching flag effect is updated.
  • code int - Flag-effect code to find.
  • label int - 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.
CardIDScriptDetected Calls
Groza, Tyrant of Thunder45420955Scripts/c45420955.lua3
Sky Striker Mecha Modules - Multirole24010609Scripts/c24010609.lua2
Ultimate Divine-Beast32247099Scripts/c32247099.lua2
Van'Dalgyon the Dark Dragon Lord24857466Scripts/c24857466.lua3
Evilswarm Ouroboros38273745Scripts/c38273745.lua1
Gaia Blaze, the Force of the Sun9709452Scripts/c9709452.lua1
Shootingcode Talker33897356Scripts/c33897356.lua1
Lair of Darkness59160188Scripts/c59160188.lua1
Super Rush Headlong48422921Scripts/c48422921.lua1
Blockman48115277Scripts/c48115277.lua1
Greed89405199Scripts/c89405199.lua1
Dark Snake Syndrome47233801Scripts/c47233801.lua1
Reversal of Fate36690018Scripts/c36690018.lua1

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