Jump to content

Running into an issue using scripting to enable a disabled actor until X stage


Recommended Posts

So being an addict (really enjoying making small mods) I am working on making a random encounter into a recruitable follower.

 

The scripting in the random encounter seems to prevent so I followed the Bethesda tutorial for initially disabling a reference placed in the world and having a scripting link to enable it.

 

Example:

Alias_NPC.GetReference().Enable()

 

The script compiles after creating a quest alias and pointing to the NPC however when I do the specific quest it's linked to the disabled NPC never seems to enable.

 

Questions:

Am I missing a step?

Is there a delay with the enabling?

Link to comment
Share on other sites

Maybe, still very very new to scripting.

 

In the original quest at one of the end phases I added the papyrus line "Alias_DogFollower.GetReference().Enable()"

In Quest Alias section I created an Alias, linked it to the NPC, allowed for Disabled and compiled the script.

 

Your suggestingI need to add a line "NPCPropertyname.enable()" in the NPC's script section.

 

And thanks for the time/help

Link to comment
Share on other sites

You've set up the alias in the quest pointing to the NPC. Good. You've set it as initially disabled. Fine.

 

Now to enable the NPC DURING the quest, go to the quest stage tab.

 

If you want the NPC to become active at stage 20, for example, click on stage 20 and then click the properties tab under papyrus fragments.

 

Create a new aliasref or actor property (cannot remember which) there called MyNPC. Then edit value so that the property points to the NPC you've created.

 

After it is added go back to the quest stage tab, highlight 20, then type in the papyrus fragment section:

 

MyNPC.enable()

 

Then hit compile. That should do it.

Link to comment
Share on other sites

:-( no dice.

 

Please let me know if I'm missing something.

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "Fragments:Quests:QF_REScene03_00030BA8"...
C:\Users\Khepri\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_REScene03_00030BA8.psc(83,0): variable MyNPC is undefined
C:\Users\Khepri\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_REScene03_00030BA8.psc(83,6): none is not a known user-defined script type
No output generated for Fragments:Quests:QF_REScene03_00030BA8, compilation failed.

 

Tried Unique actor reference as well...

 

 

 

 

http://i.imgur.com/xQRSC2k.png

 

 

 

 

http://i.imgur.com/6dxNDDV.png

 

 

Link to comment
Share on other sites

I really need to read the whole tutorial, but I am a Kinesthetic learner and have trouble digesting info unless I'm doing.

Thanks again, I'll link the mod and crediting you for keeping me from loosing it!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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