Jump to content

The papyrus compiler hates me


SilverDragon437

Recommended Posts

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 exist
No 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

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 exist

No 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 ActorBase

if akActorBase.IsUnique()

akActorBase.SetEssential(0)

endif

Link to comment
Share on other sites

  • 4 years later...
  • Recently Browsing   0 members

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