Jump to content

player.GetNthFollower gets NPC that isn't following player


Recommended Posts

I am on the bridge now with them both following me. So, I have 2 followers (Bremmen and Farwil) and both have me as their target.

 

How did you get the %i operator to work? I always get 0 when using it, just as the documentation for the PrintC command states:

%i - Prints the FormID of the specified reference or object.

 

GOTCHA : as of v18, if a refVar is passed which points to a ref not loaded in memory %i will print 00000000 even if the refVar is not empty.

 

Here is the output from RefScope:

----[ 2022-08-26 13:36:25]
AI packages on actor 00031BC6 (Farwil Indarys)
Current package: 00032E08
Follow Rick (in Realm of Oblivion)
----[ 2022-08-26 13:36:42]
AI packages on actor 00031BC8 (Bremman Senyan)
Current package: 00032E0E
Follow Rick (in Realm of Oblivion)
Edited by GamerRick
Link to comment
Share on other sites

I've tried the RomanR check code and I get the same results as before. I know it's working though because I made a mistake my first try and copied over my set TempRef line and I got the invalid ref error. That had me going for a minute until I saw my mistake.

 

"How did you get the %i operator to work?" Must be beginners luck.

 

I used RefScope and my results look little different format and maybe that's because your characters were near you and you could do the activate thing but for me Bremman was nowhere near so I entered "prid 31bc8" in the console. The first thing I saw is that Bremman is following Farwil but after stepping through the RefScope menus and selecting AI packages all I see that following cornelio is one of them. So, now I have something to work on. I just need to find out how RefScope finds this follow cornelio package and then figure a way to selectively remove AI packages from a select npc. Right? Or is there an easier way?

Thanks

 

RefScope output:

 

NPC 00031BC7
Name: Bremman Senyan
Defined in Oblivion.esm

Script 0700386C
Defined in Unofficial Oblivion Patch.esp

----[ 2022-08-27 05:40:28]
AI Package 00032E10
Defined in Oblivion.esm

Package Type: Follow

Day of week: Any
Month: Any
Date: Any
Time: Any, Duration: 0

Target: Reference 00031BC6 (Farwil Indarys), distance 0

Flags: Skip Fallout Behavior

----[ 2022-08-27 05:42:10]
Wander near Wooden Door (in Knights of the Thorn Headquarters)
Wander near XMarker (in Riverview)
Wander near XMarker (in Cheydinhal Bridge Inn)
Eat at Knights of the Thorn Headquarters
Sleep at Knights of the Thorn Headquarters
Follow cornelio (in Waterfront Lighthouse)
Wander near XMarker

Link to comment
Share on other sites

 

RefScope output:

 

NPC 00031BC7

Name: Bremman Senyan

Defined in Oblivion.esm

 

Script 0700386C

Defined in Unofficial Oblivion Patch.esp

 

----[ 2022-08-27 05:40:28]

AI Package 00032E10

Defined in Oblivion.esm

 

Package Type: Follow

 

Day of week: Any

Month: Any

Date: Any

Time: Any, Duration: 0

 

Target: Reference 00031BC6 (Farwil Indarys), distance 0

 

00032E10 = MS13PostQuestFollowFarwil

 

Would have been nice to know that in the first place. Good luck!

Link to comment
Share on other sites

Yes, there is also MS13FollowFarwil which actually has the player for target. Maybe that got hung up in Bremman's list of things-to-do in cornelio's game. I had completely forgot about RefScope and probably never did realize how powerful a tool it is, especially now that I have to learn more about AI packages. I should be able to work this out now. Thanks for your help.

 

And thanks for your help RomanR. I think your valid reference check is a good idea I should leave in there for more robust code. Also, I wasn't familiar with this syntax ( "+$Count+" ) that looks handy.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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