Thirdstorm Posted June 29, 2016 Share Posted June 29, 2016 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 More sharing options...
Gersidi76 Posted June 29, 2016 Share Posted June 29, 2016 In the quest stage you want the NPC to spawn, create a property for the NPC in the papyrus fragment section. Then in the actual script fragment just add: NPCPropertyname.enable() Is that what u meant? Link to comment Share on other sites More sharing options...
Thirdstorm Posted June 29, 2016 Author Share Posted June 29, 2016 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 More sharing options...
Gersidi76 Posted June 29, 2016 Share Posted June 29, 2016 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 More sharing options...
Thirdstorm Posted June 29, 2016 Author Share Posted June 29, 2016 thanks I'll give it a try!Grateful for the assist, the amount of data to learn regarding Papyrus is intense. Link to comment Share on other sites More sharing options...
Thirdstorm Posted June 30, 2016 Author Share Posted June 30, 2016 :-( no dice. Please let me know if I'm missing something. Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © 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 undefinedC:\Users\Khepri\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_REScene03_00030BA8.psc(83,6): none is not a known user-defined script typeNo 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 More sharing options...
Thirdstorm Posted June 30, 2016 Author Share Posted June 30, 2016 Never mind... I think I've got ithttp://i.imgur.com/oIx3qvC.png Link to comment Share on other sites More sharing options...
Thirdstorm Posted June 30, 2016 Author Share Posted June 30, 2016 Ok, you're seriously my hero today ;-) Link to comment Share on other sites More sharing options...
Gersidi76 Posted June 30, 2016 Share Posted June 30, 2016 Ok, you're seriously my hero today ;-)It was karma. I started papyrus scripting, literally, last week. That was the first thing that i ever compiled successfully! Link to comment Share on other sites More sharing options...
Thirdstorm Posted July 1, 2016 Author Share Posted July 1, 2016 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 More sharing options...
Recommended Posts