- Found in:
- Andrealphus PE
Description
Wiki Description
Returns the effective enchantment cost of the given enchantment for the given caster.
Documentation String
- Return value: the total effective cost of all the enchantment's effects.
- akSource: the user of the enchantment.
- akEnchantment: the enchantment.
Caveats
CK Wiki - Notes
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.
Parameters
ActorakSource
CK Wiki Description
The Actor to calculate the cost for.
EnchantmentakEnchantment
CK Wiki Description
The Enchantment to calculate the cost for.
Examples
Debug.Trace(Fire Damage 02 Enchantment + " costs " + ANDR_PapyrusFunctions.GetEffectiveEnchantmentCost(Game.GetPlayer(), EnchWeaponFireDamage02) + " for the player.")Auto-Generated Example
Actor myActor__akSource
Enchantment myEnchantment__akEnchantment
float returnedValue = ANDR_PapyrusFunctions.GetEffectiveEnchantmentCost(myActor__akSource, myEnchantment__akEnchantment)