Jump to content

Quicky.


Vampire

Recommended Posts

put this

AiFollow 0 0 0 0

somewhere (usually goes in a result box in dialgue)

 

then in a script put something like

;put a condition when you want the person to stop then

set AiPackage to 1

 

 

 

or

 

 

 

 

in the dialgue put AiWander 0 0 0 0 0 0 0 0

change the zeros to the numbers you think he should wander.

 

 

 

 

that should do it, hopefully this helped

:bleh:

Link to comment
Share on other sites

ok since your seeming to have problems here you go, put this on your npc.

 

Begin LC_FollowVamp

 

short button

short DoOnce

 

If ( OnActivate == 1 )

If ( DoOnce == 0 )

MessageBox, "I'm looking for someone to travel with, may I travel with you?", "Yes", "No"

set Button to GetButtonPressed

If ( Button == -1 )

return

endif

If ( Button == 0 )

"insert id of the npc to follow"->AiFollow, "player", 0,0,0,0

set DoOnce to 1

endif

If ( Button == 1 )

messagebox, "Fine, but if you do need me, just come back"

Activate

endif

endif

endif

 

End

 

 

ok just copy (ctr+c) and paste (ctr+v) into the script editor, then when it says "insert id of the npc to follow" put the id of the npc that u want to follow you. then put the script on the npc. when u activate him(as if to talk to him) a message box will appear, click yes to make him follow you, click no to talk to him regularly, once hes following you he will follow you till he dies. (if it suddenly stops working, its cause of something, just tell me, but i dont think i have to put this on npcs.)

<edit>ops messed button pressed up, fixed</edit>

Link to comment
Share on other sites

While it is helpful to get help in this fashion, understanding why it works is more important if you want to create more mods. For example - once you get the person following you, what other tasks would you like to set for him, or is he just a Sherpa to lug a lot of weight that you can't carry (like if his strength was 1000, and he had 5000 hits with a regeneration item on him.....). If you want him to be able to interact in certain situations, you have to know how to script it.

 

There are some tutorials listed on the first page of this site or you can go to Ghanburigahn's (sp) on the site listed above, as his is also excellent. (It's the one I learned with....) I highly suggest taking the time now, and saving yourself a lot of frustration later.

Link to comment
Share on other sites

i made just a basic script for the npc to follow him, if you need more ask ill help, but i seriously recommend the morrowind scripting for dummbies(thelys's site). scripting for morrowind is really easy, i used to look at it as something hard, but once you get the basic syntax, all u will ever need to do is check the functions once in awhile. i understand you kethruch(give a man a fish, feed him for a day; teach a man to fish, feed him for a lifetime),and all he said was to have the npc follow him, which is what i did with the script...

 

<edit>i morrowind isnt c++ it is its own language, much less complicated, and less powerful</edit>

Link to comment
Share on other sites

What language is the scripting done it? C++?

it's not in c++!!! it is a whole scripting language made by Bethesda. it bears little resemblance to c++. and if you are interested in learning c++ forget it and learn java, which is the new c++.

 

the programming language goes C -> C++ -> Java

 

hundinman and germanman

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...