Modifying Player Reputation

Post » Tue Aug 24, 2010 2:37 am

Okay,

so I'm working on a little something that modifies the players Reputation when the items being carried.

I've so far whacked my script into an OnAdd Blocktype (and reversed its effects in an OnDrop Blocktype), but the effects dont seem to be taking effect.

If I want to max out the reputation with all the 'factions' ingame, would I go for the below?

AddReputation RepNVGoodsprings 1 100AddReputation RepNVBrotherhood 1 100AddReputation RepNVCaesarsLegion 1 100AddReputation RepNVFollowers 1 100AddReputation RepNVFreeside 1 100AddReputation RepNVGoodsprings 1 100AddReputation RepNVGreatKhans 1 100AddReputation RepNVNCR 1 100AddReputation RepNVNovac 1 100AddReputation RepNVPowderGanger 1 100AddReputation RepNVPrimm 1 100AddReputation RepNVTheStrip 1 100AddReputation RepNVWhiteGloveSociety 1 100


and to set it to a neutral standpoint after, would I go for;

AddReputation RepNVGoodsprings 0 50AddReputation RepNVBrotherhood 0 50AddReputation RepNVCaesarsLegion 0 50AddReputation RepNVFollowers 0 50AddReputation RepNVFreeside 0 50AddReputation RepNVGoodsprings 0 50AddReputation RepNVGreatKhans 0 50AddReputation RepNVNCR 0 50AddReputation RepNVNovac 0 50AddReputation RepNVPowderGanger 0 50AddReputation RepNVPrimm 0 50AddReputation RepNVTheStrip 0 50AddReputation RepNVWhiteGloveSociety 0 50


or am I missing the keypoint in reps?

I've tested it out ingame and no changes came into effect.

Ta
User avatar
electro_fantics
 
Posts: 3448
Joined: Fri Mar 30, 2007 11:50 pm

Post » Tue Aug 24, 2010 3:41 am

El bumpos, any theories? I'm personally about to throw the ruddy thing out of the window :)

I've tried allsorts of whackaday things and nothings modifying the wearers rep;

begin OnEquip playerAddReputation RepNVPowderGanger 1 50end


I'll ideally want all factions in that, but Im testing it with just the Powder Gangers at the moment.
User avatar
helen buchan
 
Posts: 3464
Joined: Wed Sep 13, 2006 7:17 am

Post » Mon Aug 23, 2010 10:22 pm

OnEquip wouldn't run on a non-worn object.

If the item is Crafted, supposedly the scripts don't kick in until the item is removed from you and then re-added.
User avatar
Amy Cooper
 
Posts: 3400
Joined: Thu Feb 01, 2007 2:38 am

Post » Mon Aug 23, 2010 4:22 pm

OnEquip wouldn't run on a non-worn object.

If the item is Crafted, supposedly the scripts don't kick in until the item is removed from you and then re-added.


Nah, changed the item to a piece of armour in the end. Flummoxed :(
User avatar
Sherry Speakman
 
Posts: 3487
Joined: Fri Oct 20, 2006 1:00 pm

Post » Mon Aug 23, 2010 11:44 pm

Okay, so I fathoemd how to change ONE faction to like me, but throwing others into the mix buggers it all up.

So I opted to go for this doohicky.

You put on the ID tag, change it to what you want and boom, youre one of them.

I can get my Powder Ganger rep changed if I press that first, but the other 2 wont.

Ideas?

;0 = neutral - 1=likes 2=hatesshort buttonshort menubegin OnEquip playerShowMessage mymodMSGset menu to 1endbegin GameModeset button to GetButtonPressedif menu == 1if button == 0setreputation RepNVPowderGanger 0 0setreputation RepNVPowderGanger 1 100setreputation RepNVPowderGanger 2 0ShowMessage mymodTestPowderGangerset menu to 0elseif button == 1setreputation RepNVNCR 0 0setreputation RepNVNCR 1 100setreputation RepNVNCR 2 0set menu to 0elseif button == 2setreputation RepNVCaesarsLegion 0 0setreputation RepNVCaesarsLegion 1 100setreputation RepNVCaesarsLegion 2 0set menu to 0elseif button == 3endifendifend

User avatar
Ryan Lutz
 
Posts: 3465
Joined: Sun Sep 09, 2007 12:39 pm

Post » Mon Aug 23, 2010 4:53 pm

Sorry to bump all, was hoping someone might have fathomed the above :)
User avatar
Arrogant SId
 
Posts: 3366
Joined: Sat May 19, 2007 11:39 am

Post » Tue Aug 24, 2010 2:32 am

I have been messing with a custom faction in a mod I am working on, but so far I have been unable to really test faction interaction. Because so far, in all three savegames I have started, by the time I really start shaping out allies/enemies the faction bug always hits and nobody will attack me regardless of wether or not they are supposed to hate me. It's very frustrating.

My point is: Are you sure your savegame isn't suffering from the faction bug, which may be throwing a wrench into your testing?
User avatar
Justin Bywater
 
Posts: 3264
Joined: Tue Sep 11, 2007 10:44 pm

Post » Tue Aug 24, 2010 1:06 am

I have been messing with a custom faction in a mod I am working on, but so far I have been unable to really test faction interaction. Because so far, in all three savegames I have started, by the time I really start shaping out allies/enemies the faction bug always hits and nobody will attack me regardless of wether or not they are supposed to hate me. It's very frustrating.

My point is: Are you sure your savegame isn't suffering from the faction bug, which may be throwing a wrench into your testing?


Hmm.. possibility.
User avatar
Lucky Boy
 
Posts: 3378
Joined: Wed Jun 06, 2007 6:26 pm


Return to Fallout: New Vegas