Jump to content

Script Efficiency: Faction Rank or Storage Util?


caffiend86

Recommended Posts

Hey folks,

 

I am working on mod that is already somewhat script heavy. One of things I'm looking to do is periodically update a value on a couple of actors at a time in the same cell (Int values from -1 thru 100) as the player slowly feeds from other actors as part of an ongoing effect during animations (This is a loverslab succubus mod where the player feeds on bits of NPC's souls for subsistence and to fuel a variety of custom and unique abilities).

 

In order to keep the script load as efficient as possible; is it better to use Storage Util or Faction Rank? E.G. which is going to be processed more efficiently and cause the least performance load, save bloat, etc.

 

Specifics:

  • Updates will be made every 5-10 seconds as the animations / effects can be interrupted by hostile npc's, witnesses, etc.
  • No more than 5 actors would be being periodically updated at a time.
  • This would also be kept as a tracked value on each of the actors as npc's energy recovers over 3 in game days.
    • Presently I'm using StorageUtil for tracking said energy values calculating their current energy at the start of the effect based on if/when they were fed upon last.

 

Thanks in advance.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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