Skip to content

Effect.GetCategory ​

Signature ​

lua
Effect.GetCategory(Effect e) -> int

Description ​

Returns e's category bitmask.

Parameters ​

  • e Effect

Returns ​

  • int

Source ​

  • D:\Programs\GitHub\ygopro-core\libeffect.cpp:637

Used By ​

Generated from the local Scripts/ folder and cards.cdb.

  • Detected in 12 indexed script(s).
  • Search this function in the Script Explorer with Effect.GetCategory.
CardIDScriptDetected Calls
Shooting Majestic Star Dragon40939228Scripts/c40939228.lua2
W:P Fancy Ball4993187Scripts/c4993187.lua2
Darklord Uprising54527349Scripts/c54527349.lua1
Tally-ho! Springans9175957Scripts/c9175957.lua2
Gunkan Suship Shirauo-class Carrier21293424Scripts/c21293424.lua1
Evigishki Neremanas88926295Scripts/c88926295.lua2
Virakam, the Divine Spirit of Artifice10673071Scripts/c10673071.lua2
Double Spell24096228Scripts/c24096228.lua1
Awakening of the Crystal Ultimates12877076Scripts/c12877076.lua1
Tri-Edge Master52445243Scripts/c52445243.lua1
Linguriboh24842059Scripts/c24842059.lua2
Recette de Poisson (Fish Recipe)87778106Scripts/c87778106.lua1

Script Examples ​

Shooting Majestic Star Dragon (40939228) ​

Source: Scripts/c40939228.lua

lua
	end
	if re:GetActivateLocation()==LOCATION_GRAVE then
		e:SetCategory(e:GetCategory()|CATEGORY_GRAVE_ACTION)
	else
		e:SetCategory(e:GetCategory()&~CATEGORY_GRAVE_ACTION)

W:P Fancy Ball (4993187) ​

Source: Scripts/c4993187.lua

lua
	end
	if re:GetActivateLocation()==LOCATION_GRAVE then
		e:SetCategory(e:GetCategory()|CATEGORY_GRAVE_ACTION)
	else
		e:SetCategory(e:GetCategory()&~CATEGORY_GRAVE_ACTION)

Darklord Uprising (54527349) ​

Source: Scripts/c54527349.lua

lua
	end
	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
	local cat=e:GetCategory()
	if e:IsHasType(EFFECT_TYPE_ACTIVATE) and label==100 and rec>0 then
		e:SetCategory(bit.bor(cat,CATEGORY_RECOVER))