GetCostliestEffectIndex - Enchantment
(Redirected from GetCostliestEffectIndex - Spell)
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[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)