Jump to content

[HELP] Can the following code be made more efficient?


Tron91

Recommended Posts

Posted

When I last played with the mod "Devious Training", I was kind of disappointed that no NPC were being processed and only the player was being processed. Also, was kind of disappointed from the DD end that followers were not effected by the DD devices like the PC is. Realized the hard way that Magic Effects are not persistent on followers. So, with some fiddling I was able to find a solution as a regular polling Quest to keep the enchantments on the followers. The ESP and the files are attached below. I was also able to find a way to incorporate the Day Tats and the Bondage Device marks on followers. SlaveTats is the slowest part in it. I want to know if the Code I wrote can be made more efficient.

 

I have not implemented all the sanity checks, also please use a save game with a Female PC and keep a back up as I have not incorporated the tattoo removal system.

 

Requirements: DD, DCL, Slavetats and Tattoo Pack from Devious Training.

 

Implementation: One start game quest which will add an spell [Make a Bondage Lover] to the PC. This spell when cast on a follower or NPC will add another spell [Bondage Lover] to the NPC. Along with this spell the NPC will be added to 2 quests. One of these quest [BLMon] will keep recasting the Bondage Lover spell on NPC's/ followers. The other quest [DMMon] monitors the DD equipment being worn by the PC as well as the NPC and applies appropriate Day Tattoo's as well as Bondage Device marks. As of now, only Chastity Belt, Bra and Corset marks are implemented which I got from the Devious Training tattoo pack. Both these quests are by default running at an interval of 60 seconds, also Debug information is enabled. Both of these features can be manipulated through the console. The Global variables for turning off the Debug feature is BLDebugFlag and DMDebugFlag. Set these variables to 0 or lower to stop the Debug messages. The polling interval can be manipulated through BLTimer and DMTimer Global variables. I would advice not to set them below 60 [no sanity checks applied as of now]. The DMMon quest depends on data provided by 10 identical quests named DMDB01 to DMDB10. These 10 quests just keeps the data and provides functions to manipulated the data and start game enabled to initiate the data values.

 

Provide feedback if this approach causes problems or lagging. All the Actors are not processed at the same time. Only Actors whose 3D data is loaded is processed.

 

NB: Only Tattoo Pack from DT is needed. Don't run this mod along with DT

 

Spoiler

DayTattoos.jpg.f550d5fed9e00da00aadb3c257fee53d.jpg

 

 

Test Mod ESPfe.7z

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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