Custom follower and fast travel

Post » Thu Apr 07, 2011 7:04 pm

Hey everyone

I'm currently working on a custom follower mod. This is my first mod for Fallout 3, so I'm not too experienced with scripts, which is the most complicated thing for my right now.

Anyway, my follower so far has 3 AI packages for follow, wait and guard. You can hire her, she follows you around, she sneaks when you sneak and stuff, and when you've had it you can fire her again.

However, she does not automatically follow the player to a location when the player fast travels, like the other vanilla followers do.

I would really like to set this up, but I have no idea how to even approach such a function. :bonk:

Can someone help?

Thanks!
User avatar
Natalie Harvey
 
Posts: 3433
Joined: Fri Aug 18, 2006 12:15 pm

Post » Thu Apr 07, 2011 6:35 pm

I am at school right now, so cannot give specifics, but it is done via a script. Look at the default Followers and I think they have a script on them. When they are hired, a variable called like (for Jericho) JerichoIsHired is set to 1. Then if that variable is 1, and they are over a certain distance (2000 units?) from the player, it teleports them to the player. That is how this works. Simply add this variable into the works, and copy the script (editing it for your specific follower) and they will 'fast travel' with you.
User avatar
Neliel Kudoh
 
Posts: 3348
Joined: Thu Oct 26, 2006 2:39 am

Post » Thu Apr 07, 2011 5:10 pm

It's not done with a distance check and moveto command like that. In fact there is no scripting that affects the vanilla followers fast travel behavior. If the follow package is set up properly then your companions will fast travel with you. Basically you want to set the follow package End Location to somewhere unreachable by the player, like an empty cell with a marker in it, and make sure must complete and must reach location are checked. Flagging the companion as a quest item can also help with fast travel, but shouldn't be necessary if the follow package is set up right.
User avatar
Cameron Garrod
 
Posts: 3427
Joined: Sat Jun 30, 2007 7:46 am

Post » Fri Apr 08, 2011 12:41 am

It's not done with a distance check and moveto command like that. In fact there is no scripting that affects the vanilla followers fast travel behavior. If the follow package is set up properly then your companions will fast travel with you. Basically you want to set the follow package End Location to somewhere unreachable by the player, like an empty cell with a marker in it, and make sure must complete and must reach location are checked. Flagging the companion as a quest item can also help with fast travel, but shouldn't be necessary if the follow package is set up right.


Actually, untick the 'start location' and 'end location'. Just have the follow target set to the Player in any cell. Then you won't need the 'must complete' or 'must reach location' either
User avatar
claire ley
 
Posts: 3454
Joined: Fri Aug 04, 2006 7:48 pm

Post » Fri Apr 08, 2011 2:04 am

Also don't forget to auto-fire them right before Ravenrock and Tranquility Lane, or they'll be coming with you.
User avatar
Amiee Kent
 
Posts: 3447
Joined: Thu Jun 15, 2006 2:25 pm

Post » Fri Apr 08, 2011 7:11 am

Also don't forget to auto-fire them right before Ravenrock and Tranquility Lane, or they'll be coming with you.


And if you are running a quest script for your follower and don't want to fire them, you can do things to make them wait or send them to a 'homemarker' that you setup beforehand.

;Send home when Player is getting knocked out Vault 87			if (iMQ08Flag1)			else				if (MQ08Trigger.Startup)					set iMQ08Flag1 to 1					set iFollow to 0					set iWaitHome to 1					MyNPCREF.moveto MyNPCHomeMarkerREF				endif			endif;Wait while Player goes to Tranquility Lane			if (iDoOnce1)	;check if player is in TL chair			else				if (iFollow)					if (Player.GetInCell Vault112a)						if (MQ04.PlayerInChair)							set iWait to 1							set iFollow to 0							MyNPCREF.evp							set iDoOnce1 to 1						endif					endif				endif			endif

User avatar
Chris Johnston
 
Posts: 3392
Joined: Fri Jul 07, 2006 12:40 pm

Post » Fri Apr 08, 2011 12:56 am

Also don't forget to auto-fire them right before Ravenrock and Tranquility Lane, or they'll be coming with you.


Well that's just the way the game does it. Is there any reason not to take one along? I quite enjoy having a follower with me in Raven Rock, but I bring him to me once I'm already there and have already talked to Autumn.
User avatar
sam smith
 
Posts: 3386
Joined: Sun Aug 05, 2007 3:55 am

Post » Thu Apr 07, 2011 5:14 pm

Followers are supposed to fast travel with you and add-on followers are perfectly capable of it. It means your package flags and setup etc. are funky. You''ll want to examine the pre-existing followers' "followDEFAULT" package to see just what to do.
User avatar
Jack
 
Posts: 3483
Joined: Sat Oct 20, 2007 8:08 am


Return to Fallout 3