Difference between revisions of "GetReputation"
Jump to navigation
Jump to search
imported>MrSlackPants (Cleaned up.) |
imported>Dandys |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
|origin = VEGAS1 | |origin = VEGAS1 | ||
|summary = | |summary = Returns the current reputation with a certain faction. Currently, when used in-game with the console or when used at all without an if, it fails to return a value, so it is best used as an if statement like in the examples. | ||
|returnType = void | |returnType = void | ||
Line 13: | Line 12: | ||
}}{{FunctionArgument | }}{{FunctionArgument | ||
|Name = Fame/Infamy | |Name = Fame/Infamy | ||
|Type = int | |Type = int | ||
|Optional = n | |Optional = n | ||
Line 23: | Line 18: | ||
=='''Examples'''== | =='''Examples'''== | ||
if GetReputation RepNVGoodsprings 1 >10 | if GetReputation RepNVGoodsprings 1 > 10 | ||
Returns 1 if the player has more | Returns 1 if the player has more than 10 '''fame''' with the GoodSprings faction. | ||
if GetReputation RepNVGoodsprings 0 <30 | if GetReputation RepNVGoodsprings 0 < 30 | ||
Returns 1 if the player has less than 30 '''infamy''' with the GoodSprings faction. | Returns 1 if the player has less than 30 '''infamy''' with the GoodSprings faction. | ||
Line 33: | Line 28: | ||
=='''See Also'''== | =='''See Also'''== | ||
*[[GetReputationThreshold]] | |||
*[[GetReputationPct]] | |||
*[[AddReputation]] | *[[AddReputation]] | ||
[[Category:New Vegas Content]] | [[Category:New Vegas Content]] | ||
[[Category:Functions (GECK Vegas 1.1)]] | [[Category:Functions (GECK Vegas 1.1)]] |
Latest revision as of 01:19, 24 November 2012
< [[::Category:Functions|Category:Functions]]
A function included in the GECK Version 1.1.0.262 for Fallout: New Vegas.
Description
Returns the current reputation with a certain faction. Currently, when used in-game with the console or when used at all without an if, it fails to return a value, so it is best used as an if statement like in the examples.
Syntax
GetReputation FactionID:editorID Fame/Infamy:int
Examples
if GetReputation RepNVGoodsprings 1 > 10
Returns 1 if the player has more than 10 fame with the GoodSprings faction.
if GetReputation RepNVGoodsprings 0 < 30
Returns 1 if the player has less than 30 infamy with the GoodSprings faction.