Jump to content

[LE] Reloading save-baked records via script or SKSE


bladeshriek

Recommended Posts

There are certain Faction records that I want to update when my mod initializes at run-time. These records seem to be save baked and cached, so my mod has no effect unless applied to a new game. I don't want to enforce a "clean save" policy with my mod.

 

Ideally, I could just call a Papyrus or SKSE function that takes in a form ID and completely reloads and synchronizes a FACT record from either my plugin or Skyrim ESM. Not so ideally, I would have to call a series of operations on Faction objects to synchronize them with my mod.

 

Does such a function exist or not? Been Googling for a couple hours now and have found absolutely nothing relevant. Thanks much.

Link to comment
Share on other sites

Can you be more specific for what you're trying to do? There are a bunch of faction script functions:

 

https://www.creationkit.com/index.php?title=Faction_Script_(Papyrus)

 

To have a script run when you install your mod, you can make a new quest that's start game enabled, attach a script to it and use the OnInit() event to do your stuff, then use Self.Stop() to stop the quest after.

Link to comment
Share on other sites

Can you be more specific for what you're trying to do? There are a bunch of faction script functions:

 

https://www.creationkit.com/index.php?title=Faction_Script_(Papyrus)

 

To have a script run when you install your mod, you can make a new quest that's start game enabled, attach a script to it and use the OnInit() event to do your stuff, then use Self.Stop() to stop the quest after.

 

I have a number of changes to animal Faction relations, including the PredatorFaction. Faction information seems to be save-baked. I'd rather not have to make every relationship change through a script call; ideally, there would be a function to refresh FACT or any record based on a given Form ID. Otherwise, I'm going to end up having to duplicate all the changes my esp via Papyrus which- while possible- would be time-consuming. Just seeing if there is a better alternative before I start going down that route.

Edited by bladeshriek
Link to comment
Share on other sites

  • Recently Browsing   0 members

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