Difference between revisions of "GetCostliestEffectIndex - Enchantment"
Jump to navigation
Jump to search
imported>Behippo |
imported>Behippo |
||
Line 15: | Line 15: | ||
== Return Value == | == Return Value == | ||
Returns the index of the costliest effect on an enchantment, ingredient, potion, or spell. | Returns the index of the costliest effect on an enchantment, ingredient, potion, scroll, or spell. | ||
== Examples == | == Examples == |
Revision as of 14:50, 10 May 2012
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)