I tried...I really did...but there is no good explanation or tutorial for this.
When my NPC is done talking the dialog script I have the following:
GetOwningQuest().SetStage(20)akspeaker.SetRelationshipRank(Game.GetPlayer(), 1)
And it works fine and compiles, but nothing happens. So I add in this line:
akspeaker.setfactionrank (PotentialFollowerFaction, 1)
Then it gives me this error:
: variable PotentialFollowerFaction is undefined
Like hell it is. I've seen this exact script to use in other mods for followers, so I don't know what's wrong.
I don't want to add this as a custom follower, I just want to use the vanilla follower system so that after he's done talking it gives me that "Follow me" option in dialog and then the normal system comes into play.