GetEffectiveIngredientCost - ANDR PapyrusFunctions

Member of: ANDR_PapyrusFunctions Script

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

SyntaxEdit

Float Function GetEffectiveIngredientCost(Actor akSource, Ingredient akIngredient) global native

ExamplesEdit

Debug.Trace(Snowberry + " costs " + ANDR_PapyrusFunctions.GetEffectiveIngredientCost(Game.GetPlayer(), Snowberry) + " for the player.")

ParametersEdit

  • akSource: The Actor to calculate the cost for.
  • akIngredient: The Ingredient to calculate the cost for.

Return ValueEdit

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

NotesEdit

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

See AlsoEdit