GetCostliestEffectIndex - Enchantment

From the CreationKit Wiki
Revision as of 14:49, 10 May 2012 by imported>Behippo
Jump to navigation Jump to 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, or spell.

Examples

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

See Also