GetEffectiveEnchantmentCost - ANDR PapyrusFunctions
Jump to navigation
Jump to search
Member of: ANDR_PapyrusFunctions Script
Returns the effective enchantment cost of the given enchantment for the given caster.
Syntax[edit | edit source]
Float Function GetEffectiveEnchantmentCost(Actor akSource, Enchantment akEnchantment) global nativeExamples[edit | edit source]
Debug.Trace(Fire Damage 02 Enchantment + " costs " + ANDR_PapyrusFunctions.GetEffectiveEnchantmentCost(Game.GetPlayer(), EnchWeaponFireDamage02) + " for the player.")Parameters[edit | edit source]
- akSource: The Actor to calculate the cost for.
- akEnchantment: The Enchantment to calculate the cost for.
Return Value[edit | edit source]
The spell cost of the enchantment (as a float).
Notes[edit | edit source]
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.