Jump to content

Custom Follower Scripting


dkirshy

Recommended Posts

I am working on creating a follower, and decided I didn't want to have it dependant on the default Skyrim follower factions/quests, so I am working on huilding my own. I have figured out a good deal of it from side by side comparisons with the CK, as well as some online research, but there is one thing which I can't figure out.

 

I created custom factions (Potential, Current, Dismissed), and set them up similarly to the default. But when I ask them to follow me, they respond correctly but never actually follow. There is clearly a step between the FavorGeneric dialogue to follow and the DialogueFollower quest that I am missing. I have the Alias to Follower and a new AI package to follow set-up on there, but I think I am not assigning the follower to the alias, and I can't see where that is happening. Has anyone exlerienced this before or may have an idea where I can look?

 

Thank you.

Link to comment
Share on other sites

Thank you. I saw that one, but it is handling it slightly differently than I would like. In their case, they are attaching the Alias to a specific reference. My intention would be to be able to build this out where you can choose the follower you want and the script will work for that person. Then if you dismiss them and hire someone else they will have the Alias attached to them. I appreciate the link though, as I will ready this a little more carefully to see if there is anything else I can pick up. Thanks again.

Link to comment
Share on other sites

  On 1/26/2015 at 2:59 AM, dkirshy said:

Thank you. I saw that one, but it is handling it slightly differently than I would like. In their case, they are attaching the Alias to a specific reference. My intention would be to be able to build this out where you can choose the follower you want and the script will work for that person. Then if you dismiss them and hire someone else they will have the Alias attached to them. I appreciate the link though, as I will ready this a little more carefully to see if there is anything else I can pick up. Thanks again.

Then simply use the script command ForceRefTo. So you start with a specific reference but DO NOT CHOOSE AN ACTUAL REFERENCE. Choose Specific Reference as the type but don't actually choose a reference.

 

Make a script where you will choose who the follower should be - I don't know where you'd want the script - and add this to it:

ReferenceAlias Property Follower Auto; the specific ref alias that you left empty 
Actor Property ActorToBeFollower Auto; the actor who will become the follower 

Event OnInit(); replace this with the event you would use, or if it were in fragment, just don't use the event or endevent at all

    Follower.ForceRefTo(ActorToBeFollower)

EndEvent

A friend of mine wrote that tutorial and its on my site, so I can help you out if need be.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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