SilverDragon437 Posted March 24, 2014 Share Posted March 24, 2014 Hi! I'm working on a new mod that expands the dark brotherhood questline. My first quest is where you're ordered to kill Brenuin. I've got the quest working great, but there's a bug in it. If you kill Brenuin BEFORE the quest begins, you can't complete it. So, to remedy this, I thought to make him essential so that you couldn't kill him before the quest begins. I can do that via the Alias window, but now I have another problem: The compiler hates me and won't let me make him non-essential when it does come time to kill him. In my quest stage 20, I put " SetObjectiveCompleted(10)SetObjectiveDisplayed(20)Alias_Jase1126Brenuin.SetEssential(false)" However, when I attempt to compile, I get this error: Starting 1 compile threads for 1 files...Compiling "QF_Jase1126DBRContract0001_0200183D"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_Jase1126DBRContract0001_0200183D.psc(56,22): SetEssential is not a function or does not existNo output generated for QF_Jase1126DBRContract0001_0200183D, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on QF_Jase1126DBRContract0001_0200183D Can anyone help me? (By the way, yes, I am a complete noob at this. Weren't you at one point?) Link to comment Share on other sites More sharing options...
cubedj21 Posted March 24, 2014 Share Posted March 24, 2014 Hi! I'm working on a new mod that expands the dark brotherhood questline. My first quest is where you're ordered to kill Brenuin. I've got the quest working great, but there's a bug in it. If you kill Brenuin BEFORE the quest begins, you can't complete it. So, to remedy this, I thought to make him essential so that you couldn't kill him before the quest begins. I can do that via the Alias window, but now I have another problem: The compiler hates me and won't let me make him non-essential when it does come time to kill him. In my quest stage 20, I put " SetObjectiveCompleted(10)SetObjectiveDisplayed(20)Alias_Jase1126Brenuin.SetEssential(false)" However, when I attempt to compile, I get this error: Starting 1 compile threads for 1 files...Compiling "QF_Jase1126DBRContract0001_0200183D"...C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\QF_Jase1126DBRContract0001_0200183D.psc(56,22): SetEssential is not a function or does not existNo output generated for QF_Jase1126DBRContract0001_0200183D, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on QF_Jase1126DBRContract0001_0200183D Can anyone help me? (By the way, yes, I am a complete noob at this. Weren't you at one point?)try this ;)) SetObjectiveCompleted(10)SetObjectiveDisplayed(20)Actor TempBrenuin = Alias_Jase1126Brenuin.GetActorRef()ActorBase akActorBase = TempBrenuin.GetBaseObject() as ActorBaseif akActorBase.IsUnique() akActorBase.SetEssential(0)endif Link to comment Share on other sites More sharing options...
Shadohz Posted September 1, 2018 Share Posted September 1, 2018 Alias_Jase1126Brenuin.GetActorReference().GetActorBase().SetEssential(false) :whistling: Link to comment Share on other sites More sharing options...
Recommended Posts