CalculateFavorCost - Game

From the CreationKit Wiki
Revision as of 16:26, 18 October 2011 by imported>Rhavlovick (1 revision: Clobber re-import by Henning)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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[edit | edit source]

int Function CalculateFavorCost(int aiFavorPrice) native global

Parameters[edit | edit source]

  • aiFavorPrice: The raw price of the favor.

Return Value[edit | edit source]

How much that favor would actually cost the player.

Examples[edit | edit source]

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

See Also[edit | edit source]