- Found in:
- Andrealphus PE
Description
Wiki Description
Returns the effective effects cost of the given potion for the given caster.
Documentation String
- Return value: the total effective cost of all the potion's effects.
- akSource: the user of the potion.
- akPotion: the potion.
Caveats
CK Wiki - Notes
- The returned cost adds up all the cost of each seperate effect, unless the "Auto-Calculate" flag is unchecked on the potion.
- This cost is used for the gold value for player-made potions, as well as certain pre-made potions.
Parameters
Examples
Debug.Trace(Potion of Resist Fire + " costs " + ANDR_PapyrusFunctions.GetEffectivePotionCost(Game.GetPlayer(), ResistFire25) + " for the player.")Auto-Generated Example
Actor myActor__akSource
Potion myPotion__akPotion
float returnedValue = ANDR_PapyrusFunctions.GetEffectivePotionCost(myActor__akSource, myPotion__akPotion)