GetNumEffects - Enchantment

From the CreationKit Wiki
(Redirected from GetNumEffects - Spell)
Jump to navigation Jump to search

SKSE Member of: Enchantment Script, Ingredient Script, Potion Script, Scroll Script, and Spell Script

Returns the number of effects on this enchantment, ingredient, potion, or spell. (This function requires SKSE)

Syntax[edit | edit source]

int Function GetNumEffects() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns the number of effects on this enchantment, ingredient, potion, or spell.

Examples[edit | edit source]

int numEffects = enchantment.GetNumEffects()
Debug.Trace("Enchantment has " + numEffects + " effects.")

See Also[edit | edit source]