Author Topic: Friendly Enemies After Respawn  (Read 315 times)

Legacy_Wensleydale

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
Friendly Enemies After Respawn
« on: November 27, 2011, 07:55:11 pm »


               Okay, so I'm using this line of code...

DelayCommand (fd+=1.5, AdjustReputation(oPC, oPatrick, -100));

...within a cutscene to make an NPC hostile toward the PC. However, if the NPC kills the PC and the PC respawns, they're suddenly best friends.

My questions are:

Why is this happening?
And how do I stop it from happening?

Any help appreciated.
               
               

               
            

Legacy_Wensleydale

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
Friendly Enemies After Respawn
« Reply #1 on: November 27, 2011, 08:09:38 pm »


               Nevermind. I had the faction set to Commoner. Now that I've created a custom faction for the NPC, he remains hostile even after the PC respawns.
               
               

               
            

Legacy_wyldhunt1

  • Sr. Member
  • ****
  • Posts: 443
  • Karma: +0/-0
Friendly Enemies After Respawn
« Reply #2 on: November 27, 2011, 08:53:46 pm »


               For future reference, in case you ever want to change it, I think that happens in the default player respawn script. There's a little block of code that cycles through each of the default factions and resets them to their default settings every time the player respawns.
I haven't worked with the default scripts in years, but I'm guessing it won't be too hard to find when you open it.
               
               

               
            

Legacy_Wensleydale

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
Friendly Enemies After Respawn
« Reply #3 on: November 27, 2011, 09:10:54 pm »


               Yeah, I kind of figured that's what might be happening. Thanks for that.