Page 1 of 1
How to make a companion, link please
Posted: Mon Sep 29, 2008 8:52 pm
by The Edgy Redguard
How can i create a Npc to follow me, or a companion, can you give me a link
Posted: Mon Sep 29, 2008 9:17 pm
by Caz
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.
Posted: Tue Sep 30, 2008 5:38 am
by jedimario
You can find plenty of mods with them at PES. Then all's you have to do is change the name/race/ect of the one it included and there you have it.
Posted: Tue Sep 30, 2008 3:17 pm
by satan_n_stuff
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.
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)
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.
Posted: Wed Oct 01, 2008 10:59 pm
by The Edgy Redguard
but when i enter that it tells me a target, what do i enter there?
Posted: Thu Oct 02, 2008 3:06 pm
by satan_n_stuff
The Edgy Redguard wrote:but when i enter that it tells me a target, what do i enter there?
The ID for the target object, that means you. I'm pretty sure it's just "player" but you can check the NPC list, it should be in there.
Posted: Thu Oct 02, 2008 8:55 pm
by The Edgy Redguard
alright, thank's ill try it out when i get home from my friends
Posted: Tue Oct 07, 2008 8:43 pm
by The Edgy Redguard
sorry for the double post, but i used the package and the player target but it does not work.
Posted: Wed Oct 08, 2008 8:08 am
by satan_n_stuff
Well, it has been a while since I modded for morrowind, so I'm not sure, I suggest you fiddle with the settings a bit to try and get it to work, I'll try to find out what the problem is as well.
Posted: Fri Jan 16, 2009 7:21 am
by Sarendei
not sure if this question was already answered, but is there a way to force any npc to follow you?
Posted: Fri Jan 16, 2009 2:37 pm
by satan_n_stuff
Sarendei wrote:not sure if this question was already answered, but is there a way to force any npc to follow you?
I'm not sure if you can do it with the console, I think I saw a post by rohugh about this once, I'll ask him. There is the command humanoid spell, but it's not very efficient.
Posted: Fri Jan 16, 2009 3:20 pm
by Rohugh
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”
Posted: Mon Feb 02, 2009 7:09 am
by magnimac
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.
