How to make a companion, link please

Discussions and questions about the CS and mods for Morrowind
Locked
User avatar
The Edgy Redguard
Champion
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

Post by The Edgy Redguard »

How can i create a Npc to follow me, or a companion, can you give me a link
User avatar
Caz
Warder
Warder
Posts: 564
Joined: Sat Mar 29, 2008 3:04 pm
ES Games: Arena, Morrowind GOTY, Oblivion GOTY, Skyrim
Platform: PC

Post 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.
Nord wisdom:
You don't know a woman until you've had a strong drink and a fist fight with her.
User avatar
jedimario
Novice
Novice
Posts: 53
Joined: Tue Sep 09, 2008 6:21 pm
UESPoints: 0
Location: Clemson University

Post 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.
User avatar
satan_n_stuff
Champion
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

Post 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.
Image
User avatar
The Edgy Redguard
Champion
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?

Post by The Edgy Redguard »

but when i enter that it tells me a target, what do i enter there?
User avatar
satan_n_stuff
Champion
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

Post 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.
Image
User avatar
The Edgy Redguard
Champion
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?

Post by The Edgy Redguard »

alright, thank's ill try it out when i get home from my friends
User avatar
The Edgy Redguard
Champion
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?

Post by The Edgy Redguard »

sorry for the double post, but i used the package and the player target but it does not work.
User avatar
satan_n_stuff
Champion
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

Post 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.
Image
User avatar
Sarendei
Associate
Associate
Posts: 15
Joined: Fri Jan 16, 2009 7:17 am

Post by Sarendei »

not sure if this question was already answered, but is there a way to force any npc to follow you?
User avatar
satan_n_stuff
Champion
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

Post 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.
Image
User avatar
Rohugh
Grand Master
Grand Master
Posts: 1967
Joined: Wed Feb 21, 2007 9:16 am
UESPoints: 0
Location: Sunny Southern Spain.

Post 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”
Image
magnimac
Associate
Associate
Posts: 12
Joined: Sun Feb 01, 2009 7:42 pm

Post 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.
:)
Locked