GetReputationPct

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout: New Vegas.

Description

Returns how far the player is along a reputation's fame or infamy, in the form of a decimal between 0 and 1. The result is the same as if one had divided the player's raw fame or infamy value by the given reputation's maximum value, or scale.

The second arg determines if infamy (0) of fame (1) is checked.

Syntax

[help]
GetReputationPct FactionID:editorID Fame/Infamy:int 

Examples

if GetReputationPct RepNVGoodsprings 1 == 1

True if the player's fame with the Goodsprings faction is at its maximum.

if GetReputationPct RepNVGoodsprings 0 < 0.5

True if the player's infamy with the Goodsprings faction is below 50% of its maximum.

See Also