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:
Quicky.
Started by
Vampire
, Dec 29 2003 11:14 PM
20 replies to this topic
#11
Posted 01 January 2004 - 08:12 AM
#12
Posted 05 January 2004 - 12:53 AM
No because... I don't really understand.
#13
Posted 05 January 2004 - 01:12 AM
In the dialogue tab (there you make a new dialogue) then the results box lays at the bottom of the dialogue page. Sorry for bad spelling
#14
Posted 05 January 2004 - 09:19 PM
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>
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>
#15
Posted 05 January 2004 - 10:54 PM
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.
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.
#16
Posted 06 January 2004 - 04:55 PM
What language is the scripting done it? C++?
#17
Posted 06 January 2004 - 05:43 PM
I think it is C++ I used C++ 6.0 before for some basic applications and the scripting in the TES seems almost idenical other than a few word changes.
#18
Posted 06 January 2004 - 08:54 PM
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>
<edit>i morrowind isnt c++ it is its own language, much less complicated, and less powerful</edit>
#19
Posted 07 January 2004 - 01:34 PM
Damn, because I was intrested in learning C++ 
Oh well I will give it a try, what is the link?
Oh well I will give it a try, what is the link?
#20
Posted 08 January 2004 - 12:26 AM
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++.What language is the scripting done it? C++?
the programming language goes C -> C++ -> Java
hundinman and germanman



Sign In
Create Account
Back to top








