How to make a companion, link please
- The Edgy Redguard
- Champion

- Posts: 849
- Joined: Tue Jul 29, 2008 10:05 pm
- ES Games: Skyrim, Oblivion GOTY, Morrowind GOTY, Redguard, Daggerfall, Arena
- Platform: PC
- Status: Is actually back this time...
- Location: Canada,Eh?
How to make a companion, link please
How can i create a Npc to follow me, or a companion, can you give me a link
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
Actually you need to change the AI packages in the AI menu. There should be a package to make an npc follow you. ( Or somebody else)Caz wrote:you'll need a script.
i can only suggest you go into the CS and look at the ones for other NPCs that follow you for a quest. i think it's the command "AIfollow" you need.
If you want to change AI ingame you need to edit dialogue and possibly make some scripts, but for your basic follow-me-around-for-all-eternity npc this will do.

- The Edgy Redguard
- Champion

- Posts: 849
- Joined: Tue Jul 29, 2008 10:05 pm
- ES Games: Skyrim, Oblivion GOTY, Morrowind GOTY, Redguard, Daggerfall, Arena
- Platform: PC
- Status: Is actually back this time...
- Location: Canada,Eh?
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
- The Edgy Redguard
- Champion

- Posts: 849
- Joined: Tue Jul 29, 2008 10:05 pm
- ES Games: Skyrim, Oblivion GOTY, Morrowind GOTY, Redguard, Daggerfall, Arena
- Platform: PC
- Status: Is actually back this time...
- Location: Canada,Eh?
- The Edgy Redguard
- Champion

- Posts: 849
- Joined: Tue Jul 29, 2008 10:05 pm
- ES Games: Skyrim, Oblivion GOTY, Morrowind GOTY, Redguard, Daggerfall, Arena
- Platform: PC
- Status: Is actually back this time...
- Location: Canada,Eh?
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
- satan_n_stuff
- Champion

- Posts: 989
- Joined: Mon Dec 04, 2006 10:20 am
- ES Games: Morrowind GOTY
- Platform: pc, xbox
- Status: blue eyed demon from hell
- Location: The End of Time
- Rohugh
- Grand Master

- Posts: 1967
- Joined: Wed Feb 21, 2007 9:16 am
- UESPoints: 0
- Location: Sunny Southern Spain.
satan_n_stuff gave me the heads up to come here - thanks. 
There are several ways of doing this,
1.Use a Command Humanoid spell.
2.Punch the NPC and run to your destination. Make sure you stay ahead of them. Lock them in a room. After 24 hours or so the slave will have calmed down. This doesn't work if you need to go through transport doors or using fast travel.
3.On pc open the console, click on the NPC so its id appears at the top of the console window, and type Aifollow Player 0 0 0 0 0 0. ''Enter“ When you reach your destination, ensure the name is in the console window, type AiWander 128 60 40 30 20 0 0 0 0 0 0 . “Enter”
There are several ways of doing this,
1.Use a Command Humanoid spell.
2.Punch the NPC and run to your destination. Make sure you stay ahead of them. Lock them in a room. After 24 hours or so the slave will have calmed down. This doesn't work if you need to go through transport doors or using fast travel.
3.On pc open the console, click on the NPC so its id appears at the top of the console window, and type Aifollow Player 0 0 0 0 0 0. ''Enter“ When you reach your destination, ensure the name is in the console window, type AiWander 128 60 40 30 20 0 0 0 0 0 0 . “Enter”
You probably have your answer worked out by now, but in case someone else comes along, I'll put this info here.
Step 1:Decide how simple or complicated you want to make this companion.
Then write a script which can be as simple as:
begin companionscript
short companion
set companion to 1
end companionscript
That will allow you to use the companion share to have your companion carry items for you.
there is a mod called "Special Slave Companions v2" by Emperor that he has kindly allowed to be used by modders which has a fairly complicated but great script in it which allows your slave to levitate or water walk to stay with you, and warps your companion to you if they get hung up. That mod is probably still available at Planet Elder Scrolls
Step 2:
open the NPC in the construction set, under the AI tab add the "follow" package with "player" as the target.
Attach your script to the slave
Step 3:
you will need to set up a dialogue to get them to follow or stay in game without using the console.
The simplest is a dialogue where you have 3 dialogue entries in Greetings (probably 5 works best).
First is a greeting with the slave offering to stay or follow.
use the choice function in Results to make the two choices,
then a dialogue for the follow option with the proper choice selected and AIFollow 0 0 0 0 0 0 in the results box.
Then a stay option dialogue for that choice, with AiWander 128 60 40 30 20 0 0 0 0 0 0 in the results box. (those numbers can be altered for each choice, They simply indicate distance the 128 for instance is 128 game units the NPC can wander while waiting for you, and the others are the various idles to use.
I'm not very good at instructions, but I hope this helps someone.

Step 1:Decide how simple or complicated you want to make this companion.
Then write a script which can be as simple as:
begin companionscript
short companion
set companion to 1
end companionscript
That will allow you to use the companion share to have your companion carry items for you.
there is a mod called "Special Slave Companions v2" by Emperor that he has kindly allowed to be used by modders which has a fairly complicated but great script in it which allows your slave to levitate or water walk to stay with you, and warps your companion to you if they get hung up. That mod is probably still available at Planet Elder Scrolls
Step 2:
open the NPC in the construction set, under the AI tab add the "follow" package with "player" as the target.
Attach your script to the slave
Step 3:
you will need to set up a dialogue to get them to follow or stay in game without using the console.
The simplest is a dialogue where you have 3 dialogue entries in Greetings (probably 5 works best).
First is a greeting with the slave offering to stay or follow.
use the choice function in Results to make the two choices,
then a dialogue for the follow option with the proper choice selected and AIFollow 0 0 0 0 0 0 in the results box.
Then a stay option dialogue for that choice, with AiWander 128 60 40 30 20 0 0 0 0 0 0 in the results box. (those numbers can be altered for each choice, They simply indicate distance the 128 for instance is 128 game units the NPC can wander while waiting for you, and the others are the various idles to use.
I'm not very good at instructions, but I hope this helps someone.


