GetCostliestEffectIndex - Enchantment

From Creation Kit
Jump to: navigation, search

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

Returns the index of the costliest effect on an enchantment, ingredient, potion, or spell. (This function requires SKSE)

Syntax

int Function GetCostliestEffectIndex() native

Parameters

None

Return Value

Returns the index of the costliest effect on an enchantment, ingredient, potion, scroll, or spell.

Examples

int n = enchantment.GetCostliestEffectIndex()
MagicEffect mEffect = GetNthEffectMagicEffect(n)
Debug.Trace("The costliest MagicEffect for this enchantment is " + mEffect)

See Also