Other user's assetsSome assets in this file belong to other authors. You will need to seek permission from these authors before you can use their assets
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
Refer to 3DNPC for permissions.
Under no circumstances will permission be given to upload this mod to Bethesda.net
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 2.1
Added an improved version of the script mcue3dsahlene100script to make the Cat and Mouse assassination scene a bit smoother.
Version 2.0
Updated the mod to use Rogue's Gallery, further optimising the script thanks to the new Papyrus functionality provided.
As such, Rogue's Gallery is a new requirement starting with 2.0. If you don't want to use Rogue's Gallery, you can stick with 1.3.1.
Safe to update/install mid save.
Thank you wankingSkeever for the inspiration!
Version 1.3.1
Added a check to stop some papyrus errors. Thank you Darth Vitrial for pointing this out.
Version 1.3
Now correctly works when installing on an existing save.
If you installed a previous version on an existing save, you can use the optional file to get the script back on track. Instructions: - install the optional file as a separate mod (do not merge or replace) - load your save, wait a few seconds, make a new save - the optional file can now be removed A more detailed explanation in the mod description.
Version 1.2
Small optimisation to the script when initiating a conversation with a follower.
Version 1.1
Fixed follower dialogue topics being inaccessible for 3DNPC followers.
Version 1.0
Initial release
A couple of improved scripts for the mod Interesting NPCs SE (3DNPC). The changed scripts along with what was changed:
barbasdialoguedetect: Every four seconds the script looks for NPCs around the player and checks if any of them are in dialogue with the player. If the player is not in dialogue the script will cycle through up to 15 NPCs. This results in quite many function calls. In my 5-10 minute test profile with Papyrus Profiler I racked around fourteen thousand, which was 11.2 % of my total function calls. You can see the results in this flamegraph:
Thanks to the new papyrus functions provided by SKSE and Rogue's Gallery I changed the script to only fire when the player either enters or exits dialogue and check the current dialogue target of the player. This drastically reduced the number of function calls, in this new flamegraph they have been reduced to 0.0 % so practically nothing:
This of course means that Rogue's Gallery is a requirement for this change.
mcue3dsahlene100script: This script is responsible for advancing the quest during a certain scene in the Cat and Mouse quest. You can find a detailed description inside the spoiler (contains quest spoilers for the mentioned quest).
Spoiler:
Show
This script is used during the scene in Markarth in which the player must shadow Krillo when he tries to bait the assassin to attack him. The script advances the quest and triggers the actual assassination to begin when both the player and Krillo are in place.
The problem: Due to the way the original script has been made, the assassination will only trigger if Krillo reaches his spot first and then the player goes in one of the spots designated by the quest markers. If the player stands in the marker spot as Krillo approaches his destination, nothing will happen, and the player has to step out of the spot and come back to trigger the quest to progress.
The fix: When the player first enters one of the quest marker spots, the script checks if Krillo is in place. If he isn't the script will continue checking every 5 seconds until Krillo reaches his spot. When Krillo is in place the quest progresses and the assassination takes place. If the player leaves the spot before Krillo reaches his, the checks will stop and will start again when the player returns.
This script change only uses vanilla scripting functions, no additional requirements besides Interesting NPCs.