GetEffectiveEnchantmentCost - ANDR PapyrusFunctions
Member of: ANDR_PapyrusFunctions Script
Returns the effective enchantment cost of the given enchantment for the given caster.
SyntaxEdit
Float Function GetEffectiveEnchantmentCost(Actor akSource, Enchantment akEnchantment) global nativeExamplesEdit
Debug.Trace(Fire Damage 02 Enchantment + " costs " + ANDR_PapyrusFunctions.GetEffectiveEnchantmentCost(Game.GetPlayer(), EnchWeaponFireDamage02) + " for the player.")ParametersEdit
- akSource: The Actor to calculate the cost for.
- akEnchantment: The Enchantment to calculate the cost for.
Return ValueEdit
The spell cost of the enchantment (as a float).
NotesEdit
The returned cost is used for enchantment charge. It usually adds up all the cost of each seperate effect, unless the "Auto-Calc" flag is unchecked on the enchantment.