ShadowStrikeAssassin Posted January 1, 2015 Posted January 1, 2015 So, for quite a while now I've been struggling to use the set essential command on my followers when I use the EFF mod (http://www.nexusmods.com/skyrim/mods/12933/?). I tried through the menu dialogue to set my followers as essential and that never seems to want to work, and when it does, the followers eventually become unessential again. The setessential command for console will not work at all with EFF installed for some reason. I tried creating a mod in the creation kit to make all followers essential (well, all the ones I can be bothered to anyway) and that only worked for Aela. But guess what? Aela's essentialness (that's a word... Now.) decided to turn itself off after buying a plot of land in Falkreath (or however it's spealt). I have recently downloaded the "force follower unessential" optional mod and that has worked with removing Jzargo's essential (since that's the only one that works right now) and I tried to modify it so that they are forced to be essential. But that then makes the script do absolutely nothing at all, so Jzargo is the only one that is essential whilst all the others are unessential. What I tried doing was to change the values to the opposites (change false to true and true to false) but that just seems to deactivate the plugin somehow. Is there by any chance that someone who's actually got a stable mind to comprehend this scripting stuff for me before my brain ends up overheating and turning into radioactive goop? I thought it would be simpler to change the script but I guess I thought wrong. Or it is simple and I'm just an idiot. Any idea of which part of the script to change and what to change it to? Note that I do not want to use a different mod like UFO or whatever. I like EFF solely because it gives me more companions than UFO does and lets me quickly set their homes (I'm not sure if UFO does that too, but I prefer doing it the way EFF does, it suits me more). Plus that won't be helpful to tell me to just get another mod. Don't worry, one day I will do this stuff without needing help! It may take a few thousand years, but I'll get there!
ShadowStrikeAssassin Posted January 2, 2015 Author Posted January 2, 2015 (edited) Or is there a way to set an entire faction to essential? If so, I could put any followers I want essential into a new faction then make them essential that way? Edited January 2, 2015 by ShadowStrikeAssassin
ShadowStrikeAssassin Posted January 2, 2015 Author Posted January 2, 2015 (edited) Wait. I managed to get it working, finally. I had to recompile the script... I don't know why I didn't do that sooner. Gosh I'm an idiot. The only downside is that I have to save and restart whenever I get a new companion, but it'll do. x3 Edit: I decided to try and add an extra bit of code as a quick test to see if I can make NPCs in a faction essential. The code I put in was if actor.IsInFaction(PotentialFollowerFaction) akBase.SetEssential() akBase.SetInvulnerable() EndEvent And then I got an error message saying: Starting 1 compile threads for 1 files...Compiling "XFLUnessential"...C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\XFLUnessential.psc(90,0): missing EOF at 'if'No output generated for XFLUnessential, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on XFLUnessential What does it mean by "Missing EOF"? Edited January 2, 2015 by ShadowStrikeAssassin
Terra Nova Posted January 2, 2015 Posted January 2, 2015 You are missing the Event, and you are missing endif. EOF = Event Or Function.
ShadowStrikeAssassin Posted January 3, 2015 Author Posted January 3, 2015 You are missing the Event, and you are missing endif. EOF = Event Or Function. Oh, right. Thanks.Now looking at that, it looks pretty god damn obvious... I'm such an idiot.
ShadowStrikeAssassin Posted January 3, 2015 Author Posted January 3, 2015 You are missing the Event, and you are missing endif. EOF = Event Or Function. Oh, right. Thanks.Now looking at that, it looks pretty god damn obvious... I'm such an idiot. I tried that and still got the same error. Though I don't need the faction thing anymore because it works fine without it, though "pet" followers don't get affected at all by the script no matter what. I looked on the wiki page for SetEssential but putting TrainedDog.SetEssential() TrainedDog.SetInvulnerable() inside Event OnPluginEvent(int akType, ObjectReference akRef1 = None, ObjectReference akRef2 = None, int aiValue1 = 0, int aiValue2 = 0) If akType == 0 ; Add Follower Event, set status Actor akActor = akRef1 as Actor ActorBase akBase = akActor.GetLeveledActorBase() int actorIndex = XFLMain.XFL_GetIndex(akActor) ; Use this to determine the index of the alias for data storage int previousStatus = GetStatus(akBase) akBase.SetProtected(false) akBase.SetEssential() akBase.SetInvulnerable() TrainedDog.SetEssential() TrainedDog.SetInvulnerable() _storedStatus[actorIndex] = previousStatus Endif If akType == 1 || akType == 2 ; Remove Follower Events, restore status Actor akActor = akRef1 as Actor ActorBase akBase = akActor.GetLeveledActorBase() int actorIndex = XFLMain.XFL_GetIndex(akActor) ; Use this to determine the index of the alias for data storage int previousStatus = _storedStatus[actorIndex] SetStatus(akBase, previousStatus) Endif EndEvent I get an error saying Starting 1 compile threads for 1 files...Compiling "XFLUnessential"...C:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\XFLUnessential.psc(78,2): variable TrainedDog is undefinedC:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\XFLUnessential.psc(78,13): none is not a known user-defined typeC:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\XFLUnessential.psc(79,2): variable TrainedDog is undefinedC:\Program Files (x86)\Steam\SteamApps\common\Skyrim\Data\Scripts\Source\XFLUnessential.psc(79,13): none is not a known user-defined typeNo output generated for XFLUnessential, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on XFLUnessential One of the examples the wiki gives says EmperorBaseActorProperty.SetEssential()But... Where exactly in the CreationKit is EmperorBaseActorProperty? Last time I checked, the emperor's ID was TitusMedell. Where did this come from? And why the base actor? The base actor for Vigilance is EncDog but that affects every dog; Vigilance, Meeko, Bandit Dogs, etc. I just want this for Vigilance and Meeko. I don't want bandit dogs and random NPC's dogs to be essential; especially the bandits' ones. What exactly should I type in to make Meeko and Vigilance and any other "pet" followers essential via Papyrus; considering flagging them as essential doesn't seem to work at all with EFF, and the script that should make all followers essential doesn't work on pets?
Recommended Posts