GetEffectivePotionCost - ANDR PapyrusFunctions

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: ANDR_PapyrusFunctions Script

Returns the effective effects cost of the given potion for the given caster.

Syntax[edit | edit source]

Float Function GetEffectivePotionCost(Actor akSource, Potion akPotion) global native

Examples[edit | edit source]

Debug.Trace(Potion of Resist Fire + " costs " + ANDR_PapyrusFunctions.GetEffectivePotionCost(Game.GetPlayer(), ResistFire25) + " for the player.")

Parameters[edit | edit source]

  • akSource: The Actor to calculate the cost for.
  • akPotion: The Potion to calculate the cost for.

Return Value[edit | edit source]

The spell cost of the potion (as a float).

Notes[edit | edit source]

  • 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.

See Also[edit | edit source]