CalculateFavorCost - Game

From Creation Kit
Jump to: navigation, search

Member of: Game Script

Calculates how many favor points the player would have to spend to pay for a favor with the specified price.

Syntax

int Function CalculateFavorCost(int aiFavorPrice) native global

Parameters

  • aiFavorPrice: The raw price of the favor.

Return Value

How much that favor would actually cost the player.

Examples

; Figure out how many points it would cost to buy a favor worth 10 points
int icost = Game.CalculateFavorCost(10)

See Also