Background for Skyrim SE
Member of the Potion script
MagicEffectfunctionGetNthEffectMagicEffect(intindex)Native

Description

Wiki Description

Returns the Nth MagicEffect attached to this enchantment, ingredient, potion, or spell. (This function requires SKSE)

Documentation Comment

return the magic effect of the specified effect


Caveats


Parameters

intindex

CK Wiki Description

The index of which effect is to be returned.


Examples

int numEffects = enchantment.GetNumEffects()
int index = 0
While index < numEffects
    MagicEffect effect = enchantment.GetNthEffectMagicEffect(index)
    Debug.Trace("Index: " + index + " Effect: " + effect)
    index += 1
EndWhile

Auto-Generated Example

int myInt__index

MagicEffect returnedValue = myPotion__toCallFunctionOn.GetNthEffectMagicEffect(myInt__index)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.