Jump to content

[LE] How to detect if follower is currently recruited ?


williamjcm

Recommended Posts

Hello everyone.

 

A friend of mine loved my current main character, and I decided to make a custom, standalone follower that would be a clone of that character.

 

I would like to add a small load screen with the following conditions: player is in Whiterun (for example) AND follower is in The Drunken Huntsman (again, for example) AND follower is NOT recruited (the follower must be dismissed, telling them to wait doesn't count). The load screen has a (theoretical) 5% chance of happening.

 

Note: I wrote the logic operators in all caps, to make them stand out.

 

While I can check the first two conditions, I don't know how to check the third one.

 

I tried to find what I seek on this page, without success. Is there a way to do it ?

 

Thanks in advance for your answer(s).

 

EDIT: Solved. See post #3.

Link to comment
Share on other sites

You could check if they are in the current follower faction or you could see if they are in follower alias? You might want to take a look at the dialoguefollower quest.

Thanks for your answer, Masterofnet.

 

However, I have a question. Do I need to call GetFactionRank on the BaseID or the RefID ?

 

Lastly, I'm still a novice when it comes to the CK, so I don't know what aliases truly are, or how they work.

 

EDIT: Solved. I called GetFactionRank on the RefID, and check if it was equal to -1 (which means "RefID is not in faction"). No need to work with aliases at all.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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