Making an NPC a follower on triggering a quest.

Post » Mon Nov 19, 2012 10:48 pm

How do I enable the follower faction on an NPC once the quest has began, so the follower line (''Follow me, I need your help'') show up after, and not before I start the quest?

Thanks.
User avatar
Michelle Serenity Boss
 
Posts: 3341
Joined: Tue Oct 17, 2006 10:49 am

Post » Tue Nov 20, 2012 1:35 am

Don't enable the follower faction and then Start your quest. Start your quest and have that quest enable the follower faction.
[CODE](pDialogueFollower as DialogueFollowerScript).SetFollower(Alias_Follower)
User avatar
Sierra Ritsuka
 
Posts: 3506
Joined: Mon Dec 11, 2006 7:56 am

Post » Tue Nov 20, 2012 2:54 am

Don't enable the follower faction and then Start your quest. Start your quest and have that quest enable the follower faction.
 [CODE] (pDialogueFollower as DialogueFollowerScript).SetFollower(Alias_Follower) 

Thanks for the reply, but where to put the script? ie, in the quest stage, in a quest script or as a fragment script of a dialogue?

edit: I managed it by putting the code in the dialogue fragment script, and it all works out.

;BEGIN CODEGetOwningQuest().SetStage(10)(pDialogueFollower as DialogueFollowerScript).SetFollower(akspeaker);END CODE

I substituted the Alias_Follower to akspeaker since for some reason the CK doesn't recognise my Alias even though I set it as a property.

But when I dismiss the NPC and again want her to join me, the follower dialogue doesn't show up. The quest is still not completed though. Help?

Also is there a way to make a follower permanent ?
User avatar
Josh Sabatini
 
Posts: 3445
Joined: Wed Nov 14, 2007 9:47 pm

Post » Tue Nov 20, 2012 5:52 am

it seems that the above code doesn't work with a RefAlias because it's incomplete.

(pDialogueFollower as DialogueFollowerScript).SetFollower(Alias_Follower.GetRef()) 
works.

But thanks anyway, jediborg, for setting me on the right track!
User avatar
Kaylee Campbell
 
Posts: 3463
Joined: Mon Mar 05, 2007 11:17 am


Return to V - Skyrim