GetCostliestEffectIndex - Enchantment
Revision as of 15:42, 5 September 2012 by imported>Cipscis (Cipscis moved page GetCostliestEffectIndex to GetCostliestEffectIndex - Enchantment: Standardising name)
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[edit | edit source]
int Function GetCostliestEffectIndex() native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
Returns the index of the costliest effect on an enchantment, ingredient, potion, scroll, or spell.
Examples[edit | edit source]
int n = enchantment.GetCostliestEffectIndex()
MagicEffect mEffect = GetNthEffectMagicEffect(n)
Debug.Trace("The costliest MagicEffect for this enchantment is " + mEffect)