GetReputation and AddReputation functions

Post » Fri May 27, 2011 1:37 pm

Has anyone figured out how reputation and the GetReputation and AddReputation functions work yet? The reason I'm asking is that I'm making a small house mod. I want the player to be able to get the house if their reputation in Goodsprings is above-neutral. But I don't know how the reputation number relates to your reputation.

Looking at the GECK, the value of reputation for Goodsprings is 15, but the reputation for NCR and the Legion is 100. Does this represent the players starting reputation? And then how do points that are added or subtracted from this score relate to one's infamy or fame?

Also, looking at the quest results for the Ghost Town Gunfight quest, it uses the two functions mentioned above this way.

AddReputation RepNVGoodsprings 1 5AddReputation RepNVPowderGanger 0 5


Am I right in guessing that this adds 5 points of reputation to the Goodsprings faction and subtracts 5 points from the Powder Ganger faction? So the first parameter dictate whether it's subtracted or added?

Sorry for all the questions, just trying to get all this new stuff figured out. :)
User avatar
Pawel Platek
 
Posts: 3489
Joined: Sat May 26, 2007 2:08 pm

Post » Fri May 27, 2011 2:39 pm

What Matchu24 posted below is correct. The AddReputation function checks the second parameter to make sure it is one or zero and exits if it is not. There is also a check on the third parameter to make sure it is between 0 and 5.
User avatar
roxanna matoorah
 
Posts: 3368
Joined: Fri Oct 13, 2006 6:01 am

Post » Fri May 27, 2011 6:49 pm

I've been messing about with Reputation for a mod I talked about http://www.gamesas.com/index.php?/topic/1128732-wipzreputation-faction-issues/.

From what I can tell, using the example "Faction X Y", X is a binary 0 or 1. 0 means subtract rep, 1 means adds rep (irregardless of the function being called "Addrep"). Y is 1-5 and is the amount you'd like added. I say 1-5 because I can't seem to get anything more to work.

There's also some sort of limiter related to progressing from say "neutral" to "liked". I created a script that essentially went
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5
AddReputation RepNVNCR 1 5

A lot (around 50 from memory) of times to test it. It added the rep (and spammed me to hell) but the reputation wording never changed. I'm looking more into it as it'll impact on my own mod and will be sure to let you know if I find anything.

edit: Forgot to add, you can use "Setreputation" in a similar way.
User avatar
Shannon Marie Jones
 
Posts: 3391
Joined: Sun Nov 12, 2006 3:19 pm

Post » Fri May 27, 2011 4:48 pm

Thank you both for the replies. That's strange that nothing over 5 would work for you Matchu. At least we know what that first parameter does. Do you have any idea on how reputation is weighted then? Like why 100 reputation is neutral for the NCR but 15 is neutral for Goodsprings? I'll keep an eye on your mod as well.

I wish I had access to the console, testing this would be much easier. But I run into that Vista issue and I think NVSE will have to be released before someone can make a console key changer or binder. :(
User avatar
Solina971
 
Posts: 3421
Joined: Thu Mar 29, 2007 6:40 am

Post » Fri May 27, 2011 1:41 pm

I'm still not entirely sure. I myself wasn't able to get anything over 5 to work, but the game itself occasionally uses say "RepNVNCR 0 9999" to make sure you're vilified. I'm gonna do some more digging, the weights must be somewhere.

The console isn't working out too well either, it won't accept faction name nor the baseid.

edit: Just tried "setreputation RepNVNCR 1 9999" and it placed me at "wild child". Things get stranger everytime I mess with it!
User avatar
Timara White
 
Posts: 3464
Joined: Mon Aug 27, 2007 7:39 am

Post » Fri May 27, 2011 8:03 am

Is there an edit timer on this forum? Can't edit my post anymore.


Based on some testing I just did, I think it's likely that the weights for NCR is 100 is Idolized, -100 is Vilified. I just created a script that added one reputation on every use. From vilified, it took roughly 7 to get to "merciful thug", another 33 for "soft-hearted devil" then a further 50 to get to "wild child". I'd presume that it's then only 10 more to neutral (since "set rep 0 0 " always produces neutral) but I still can't get it to change me. I think there's an inbuilt "addally playerfaction" that I'm not setting off with my simplistic script.

Similarly, at neutral adding 7 more gets you liked, 33 is accepted etc.

Based on this, the "15" flag for Goodspring would mean you're idolized with them at 15; Vilified at -15.
User avatar
Teghan Harris
 
Posts: 3370
Joined: Mon Mar 05, 2007 1:31 pm


Return to Fallout: New Vegas