Jump to content

Fallout 4 Save Files - Duplicate Quest Scripts - Updating Scripts as you Play


Recommended Posts

I have been working on a mod that makes hostile mobs hunt the player at various times across the Outdoor world.

I have been adding hidden quests with scripts and updating existing scripts gradually as I play.

 

I am starting to notice a quest script that handles player events OnHit() and OnPlayerSwimming() and OnPlayerSleepStop() is triggering twice each time it should only trigger once. It's as if two copies of the script are running.

 

I need help finding out how to avoid this and to correct the existing problem.

 

Disable the mod, resave the game, then re-enable the mod?

Link to comment
Share on other sites

Read something similer about that today,

 

From creation kit website:

 

Run Once: Prevents the Quest from being reset when it starts. If a "Start Game Enabled" quest is not also flagged to "Run Once", its OnInit event will fire twice.
For clarity, all forms of resetting including Reset() will not work when this is checked.
Link to comment
Share on other sites

Solution:

I was having problems with OnHit(), OnPlayerSleepStop(), OnPlayerSwimming() events double triggering. I thought that this was a problem with me updating the scripts gradually as I was progressing through the game. While I did have some success removing the ESP and PEX script files, and resaving the savegame to try and clear out the quest/script data, that was not the cause of the problem.

 

In the creation kit I created a "Start Enabled/Run Once" quest with a quest alias pointing to the player. It had a script attached which handles the events I just mentioned. At one point in the editor I noticed that the quest alias was missing so I had to add it back in a second time. I thought this was an editor quirk. It wasn't. I was looking at the wrong quest and ended up making 2 quest aliases. This caused the event triggering to double up.

 

That explains why no one else on earth has this problem.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...