Background for Skyrim SE
Member of the Ingredient script
intfunctionGetCostliestEffectIndex()Native

Description

Wiki Description

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

Documentation Comment

return the index of the costliest effect


Caveats


Examples

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

Auto-Generated Example

int returnedValue = myIngredient__toCallFunctionOn.GetCostliestEffectIndex()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.