FNV Companion Tutorial
with functioning companion wheel
This tutorial is for users that have a decent understanding of using the GECK. This will be a basic guide for creating companions. There is more advanced things that can be done, but my intent is to keep it pretty simple. Nothing in this tutorial relates to custom voices.
For a visual reference to this guide check out oGrayWolf's tutorial series on creating companions. I wrote this guide after watching his videos and creating my own companion mod.
This is not a setup to limit the number of followers you can have. I may write guide for that kind of setup later. As I have not actually tried and tested that kind of setup, I am sticking to the simple version.
Step 1: Create an NPC and put it in the world.
On the factions tab right click on the factions list and select new. Select DontTazeMeBroFaction. You may want to create a faction specifically for your new companion. The videos mention adding the player faction. Vanilla companions are not set with the player faction, instead they have other factions, but I have not noticed any problems with using the player faction.
To make this simpler, I will be referring to the NPC as Bob, his Editor ID will be BobComp, and he will be located in Goodsprings in the WastelandNV worldspace. I will go along using Editor IDs, Reference IDs, Script Names to match with the name of the NPC.
If you want your companion to have a special weapon that doesn't use ammo, like Boone's Sniper Rifle, you will need to create a new weapon, uncheck the playable option under flags and switch Ammunition to AmmoCompanion. If you do this, be sure to add it and 1 AmmoCompanion to the NPC's inventory.
When you put the NPC in the world, be sure to give the NPC a Reference ID, such as BobCompREF.
You will also want to create a home marker for Bob and give this marker a Reference ID, such as BobCompMarker.
Note: I had trouble creating an "African-American" NPC. The only way I was able to resolve the body skin color not matching the race is by making the file into an esm.
Step 2: Create an Object Script and an NPC script.
The Object Script:
Note: the additem and removeitem functions are there to make sure the NPC doesn't do something like this. I asked for help with this issue here.
The Quest Script:
Be sure that you set script type to Quest.
It is my understanding that the quest requires that you have a script set. The following script doesn't do anything, but set the DoOnce variable to 1. You could however set up some other variables related to topic conditions, but I won't get into that.
Step 3: Create AI Packages
In the Object Window under Actor Data is a section called Packages. This is where you will need to create the new forms.
I added some conditions to the AI Packages that the are not shown in the tutorial vidoes. These differences reflect what I see in the vanilla companions.
You will need five AI Packages for a basic setup.
Add the New AI Packages to BobComp.
Step 4: Dialog
Create a new Quest with an ID such as: BobCompQuest
Check Start Game Enabled
Script Process Delay: Default
Note: You will have to click OK and then open the quest again, before being able to attach a quest script. If your quest script is set as a quest script, then you will be able to find it.
Set the Quest Script to BobCompQS
In the list pane on the left, right click and select Add Topic. Find and add the following topics:
For a basic setup I simply added one response for the top list pane. Take note of the Conditions list pane, the Choices list pane, the Goodbye checkbox and the Result Script (Begin) box. In the Choices list, the order they show up in the list is the order they will be displayed in dialog.
Note: Some of the lines I will be showing for the Result Script (Begin) box where not covered in the tutorial videos. I found them by looking through the VNPCFollowers quest. They will be denoted with *** in a comment at the end of each line. There is also a condition for FollowersFiredSuite that was not used in the tutorial videos. This condition checks the VNPCFollowers quest to see if you have gained access to the Lucky 38.
I was up all night working on this. Hopefully there are no mistakes. If you notice any discrepancies or anything missing, please let me know.
The spoiler sections are an attempt to reduce the display length of the post. The formatting is an attempt to make this easy to read and understand.
I recommend watching the videos mentioned at the beginning of this post. I also provided a link to my mod. It is very similar to this tutorial.
If you are not familiar with using the GECK, then I please take the time to work through the tutorials provided at the GECK website.
Edited by trilioth, 29 November 2015 - 02:46 AM.