unknownhero2827 Posted September 23, 2015 Share Posted September 23, 2015 I want a Follower NPC to travel to a cell, and then wander around in it. So far I can only get the first half to work through dialogue with a topic result script. Looks something likes this: RemoveScriptPackageAddScriptPackage aaFollowerTravelInn I don't know how to make my NPC wander onced arrived at the destination. If I add another package to the script, it doesn't work. And I don't know if I need to change something in the packages themselves, though I've tried. I'm very much an amateur with modding, any help would be appreciated. Link to comment Share on other sites More sharing options...
unknownhero2827 Posted September 23, 2015 Author Share Posted September 23, 2015 An actor can have only one script package at a time. When calling the function twice on the same actor, the second package replaces the first one added. Oh. So I guess I'd have to do something with the actor's object script. Something like GetIsCurrentPackage yadayada and change the current package to another script package once the travel script package terminates? If anyone knows exactly what, that'd be helpful. Link to comment Share on other sites More sharing options...
Surilindur Posted September 24, 2015 Share Posted September 24, 2015 (edited) You could use, in your actor's script, the following: Begin OnPackageDone aaFollowerTravelInn AddScriptPackage SomeWanderPackage End But it requires you to add a script to the follower. In my follower management system mod, I use OBSE event handler for checking when a follower has seated (when a package ends, so a very similar case), to have them sit on chairs and such. So if you do not want to add scripts to the followers (to maintain compatibility), I would recommend an event handler. Hopefully that helps a little. :) Edit: Added the 'Begin' that I forgot. Sorry. Edited September 24, 2015 by PhilippePetain Link to comment Share on other sites More sharing options...
unknownhero2827 Posted September 25, 2015 Author Share Posted September 25, 2015 That's perfect. Thank-you. Link to comment Share on other sites More sharing options...
Surilindur Posted September 26, 2015 Share Posted September 26, 2015 My pleasure. :) Link to comment Share on other sites More sharing options...
Recommended Posts