Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

Frequia

Uploaded by

frequiaaa

Virus scan

Safe to use

Tags for this mod

About this mod

Scripted support for more complex combat behaviour, or behaviour that isn't possible solely with packages. This is a modder's resource/tutorial and does nothing on it's own.

Permissions and credits
This is a modder's resource/tutorial! It does nothing on it's own.
It won't pimp Lydia's combat style out of the box. Please don't try to use it like a regular mod.

* * * * *

CProc, since I have to define it, is a scripted support for combat override packages. By applying a Combat Hit Spell via a perk, you can trigger scripted functions such as...

  • Syncing the NPC's target with the player's, or a pet's with the NPC's
  • Casting spells or abilities, including "combination" spells of different types like Lifesteal/Leech, and including in lieu of a NPC who's unable to cast
  • Various other things possible via Papyrus

By adding conditions to these functions such as health thresholds, percentage chances and multipliers, you can overcome some limitations of combat packages and make them act in a smarter, more detailed manner. If you use global variables for these conditions, they can be changed on the fly via console commands or MCM menus.

CProc requires you to know some Papyrus, or at least be able to read and search the CK or UESP Wikis and/or /r/SkyrimMods to figure things out. The ESP included is an example with a example lifesteal and taunt spells, as well as target sync with optional pet integration, but it's only meant to show you how to implement this type of system. It's really not hard to learn Papyrus scripting, please give it a try even if you feel intimidated.

* * * * *

Try It Yourself

Inside the example .Esp is a test cell called "CProcCell," containing a self-resurrecting example actor with CProc implemented. Feel free to use the console command "coc CProcCell" to get there, and attack them yourself or spawn enemies. By default, CProc applies a blue effect when it's applied, and lifesteal applies a red effect when it triggers.

Technical Explanation

CProcManager is a perk, that when given to an NPC, has a chance of triggering when that NPC strikes an enemy. When it triggers, it applies a magic effect by the same name to the struck enemy that runs a script. This script is the "2nd brain," and depending on whether conditions are met, can command the NPC who cast it, or any actor who has a property, to cast additional magic effects (which can be traditional spells, like Heal Other, or more scripted "dummy" spells like the included taunt). You can also run functions and do other things possible with Papyrus.

Using CProcManager will ensure effects like Bullseye that use Combat Hit Spells will never trigger. You need to re-route these magic effects to apply through CProc, in the same way as is demonstrated with the included Lifesteal/Leech effect.

This effect is best used on a follower, or only a few NPCs at a time to prevent script lag. However, a single follower NPC using CProc in combat causes no lag on my system, even when my game is under strain. The scripts use no polling, and are safe to remove so long as you are out of combat.

* * * * *

Disclaimer & Permissions for the Files

I make no claims that this is the best way to implement this, or that my scripting is god-tier. Please remember that modders aren't experts in most cases and are doing the best they can with the skills they have. If you are rude or uncivil in the comments, you will be banned from all my mods and your comment removed without response.

  • You can use, include or do whatever with CProc's scripts with credit.
  • You can use, include or merge CProc's example .esp in or into your mods with credit.
  • You can edit and fix CProc's scripts or .esp and release your efforts on the Nexus. No 3rd-party sites.
  • You do not have to credit me if you use a CProc-like implementation but don't use my files, or rewrite them from scratch.
  • If I ever disappear for more than 6 months, leave the community, or die, CProc's permissions become completely free.