Background for Skyrim SE
Member of the ANDR_PapyrusFunctions script
floatfunctionGetEffectivePotionCost(ActorakSource, PotionakPotion)NativeGlobal

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

  1. ActorakSource

    CK Wiki Description

    The Actor to calculate the cost for.

  2. PotionakPotion

    CK Wiki Description

    The Potion to calculate the cost for.


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)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.