TaxiVader Posted November 27, 2020 Share Posted November 27, 2020 Hi folks. I want to get an NPC who is working in a shop to go to another place, like a bunkhouse, to sleep at night. Possibly stop off at the inn on the way for a drink. 1. work in shop in the day2. leave at shop closing time, go out into the exterior world and walk to the bunkhouse (or pub) door,3. enter the bunkhouse and go to sleep4. get up in the morning and go back to the shops If anyone can suggest some tips / starting points that would be great; I can't make much sense of the pre-programmed npc is, for example, whiterun. All the cells they will be using,are custom ones. Thanks, TV Link to comment Share on other sites More sharing options...
thumbincubation Posted November 27, 2020 Share Posted November 27, 2020 Take a look at the default packages, for an idea of how they're set up, but then you'll probably want to make your own custom package based on them, rather than using them. Inevitably, there will be some tweak needed, which may affect every other character using the default package, if you should forget and tweak one. Your character's package lineup may look something like this...bearing in mind packages should start with the earliest and end with the latest, and not overlap each other. The final package has no time/duration set, and that will be what they do whenever they're not doing anything else. Sandbox in interior cell (shop) 0800 for 8 hrsEat package in the pub from 1615 for 1 hr 45 minSleep package in the bunk house from 2230 for 8 hrsSandbox in the bunk house anytime (don't set any times or durations for this one, and it must be the last/lowest in the order.) *Depending on where you want to place the NPC in the world, that will become their editor location. If you want him to start outside, for example, and putter around in his yard, whenever he's not working, eating, or sleeping, then you would assign him a range, like 512, 1024, etc. 512 isn't much room to move, so if I wanted Faendal to work in his yard, I might give him 1024 or even larger. If it's in an interior cell, and you want him to sandbox in that same cell, you can still give him a range from the editor location, or from something like a chair, or you can just select the cell itself. (ie: My guards often start outside near their posts, so their sandbox editor location package may be 256 or 512, so they'll stay in the general area. When their shift is done, they go to the inn for an eat package, in whatever cell the inn is, rather than a location/range. Then they go to the guardhouse and hang around until it's time for the sleep package to kick in, which means that final no-time-set package is working until another one kicks in. When they wake up, they will again hang around the guard house until it's time to go to work and then they'll go back out to their editor location and hang around near there.) You can also use markers, if you don't want cells, or if you want multiple outside locations. When you set up the sandbox portion of the package, it will give you the option to choose editor location, current location (not much exp with that one), name of an interior cell, or to select a marker in which you can point crosshairs at a chair or bed and click on it, to make it the thing they stay close to. If you give them a large range, like 4096, they will wander all over, especially if there's furniture or idle markers to use, within that range. I always try to give them 10 or 15 min to get from one to the other, so I might set their work schedule as 7:50 for 8 hrs and 10 min, then not start the inn package until 10 after. If they don't like that, there are also travel packages you can use, that may help. Slip one of those in between assignments. This is where it gets handy to have made your own, so you can tweak one without messing with others. I suggest trying without them, first, and see how much luck you have with them traveling to and from. You can also check the "must complete daily," box if you run into trouble. So take a look at defaultsandboxeditorlocation512, defaulteateditorloc12x1 (which just means starts at noon for 1 hour), defaultsleepeditorloc24x8 (starts at midnight, wakes up at 8am), and then finally a travel package named just "travel," in case you need it. Bear in mind these don't necessarily need to be editor locations at all, and they can be whatever times and durations you want them to be, as long as they're unique. From the object window > character > package, you can right click > new and make one from scratch, based on one of the defaults. You can also right-click a default and duplicate, then rename and save the dup (safest) or double click the default, give it a unique name and make whatever changes then make sure to save it as a new file (faster, but riskier.) If you need to see how they're set up for a specific character, look at someone like Alvor in Riverwood, and open each of his packages to see how he's set up. You can also take a look at my Whiterun Stables Guards mod, or my Riverwood Guards mod, and look at their packages. Feel free to use them any way you need to. Finally, here's a link to the CK tutorial (main page) and then a link to the package-specific tutorial. The tutorial hub has links and a search box for many, many more. https://www.creationkit.com/index.php?title=Category:Getting_Started https://www.creationkit.com/index.php?title=Packages https://www.creationkit.com/index.php?title=AI_Packages_Tab Hope this helps some. Hope it helps. Link to comment Share on other sites More sharing options...
TaxiVader Posted November 27, 2020 Author Share Posted November 27, 2020 That's awesome, thanks. I'll get to work. Link to comment Share on other sites More sharing options...
Recommended Posts