german_man Posted January 1, 2004 Share Posted January 1, 2004 put thisAiFollow 0 0 0 0somewhere (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 0change 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 More sharing options...
Vampire Posted January 5, 2004 Author Share Posted January 5, 2004 No because... I don't really understand. Link to comment Share on other sites More sharing options...
Almelexia Posted January 5, 2004 Share Posted January 5, 2004 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 Link to comment Share on other sites More sharing options...
Lord Of The Cheese Posted January 5, 2004 Share Posted January 5, 2004 ok since your seeming to have problems here you go, put this on your npc. Begin LC_FollowVamp short buttonshort 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 GetButtonPressedIf ( Button == -1 )returnendifIf ( Button == 0 )"insert id of the npc to follow"->AiFollow, "player", 0,0,0,0set DoOnce to 1endifIf ( Button == 1 )messagebox, "Fine, but if you do need me, just come back"Activateendifendifendif 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 More sharing options...
Kethruch Posted January 5, 2004 Share Posted January 5, 2004 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 More sharing options...
Vampire Posted January 6, 2004 Author Share Posted January 6, 2004 What language is the scripting done it? C++? Link to comment Share on other sites More sharing options...
Akrid Posted January 6, 2004 Share Posted January 6, 2004 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. Link to comment Share on other sites More sharing options...
Lord Of The Cheese Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
Vampire Posted January 7, 2004 Author Share Posted January 7, 2004 Damn, because I was intrested in learning C++ :( Oh well I will give it a try, what is the link? Link to comment Share on other sites More sharing options...
hundinman Posted January 8, 2004 Share Posted January 8, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.