- Found in:
- Andrealphus PE
Description
Wiki Description
Returns the effective effects cost of the given ingredient for the given caster.
Documentation String
- Return value: the total effective cost of all the ingredient's effects.
- akSource: the user of the ingredient.
- akIngredient: the ingredient.
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 ingredient.
- This cost is often used for the gold value of the ingredient.
Parameters
ActorakSource
CK Wiki Description
The Actor to calculate the cost for.
IngredientakIngredient
CK Wiki Description
The Ingredient to calculate the cost for.
Examples
Debug.Trace(Snowberry + " costs " + ANDR_PapyrusFunctions.GetEffectiveIngredientCost(Game.GetPlayer(), Snowberry) + " for the player.")Auto-Generated Example
Actor myActor__akSource
Ingredient myIngredient__akIngredient
float returnedValue = ANDR_PapyrusFunctions.GetEffectiveIngredientCost(myActor__akSource, myIngredient__akIngredient)