greyshadowfox Posted July 6, 2008 Share Posted July 6, 2008 Do you think someone could make me an NPC that wanders searching for food, and wanders around and will sleep for me with the packages already set up? It doesn't matter what they look like because I will end up changing all of that stuff anyways most likely. Just the main focus is the packages. I don't know if you could do this without the right bed and stuff and the location? If you need more information and stuff just ask or whatever's :) :thanks: in advance for the help Link to comment Share on other sites More sharing options...
Naminea Posted July 6, 2008 Share Posted July 6, 2008 No affense but your thoughts where kind of scattered in that, can you please refrase what you wanted? Not to menchion your really didnt give enough info... Link to comment Share on other sites More sharing options...
tyreil829 Posted July 6, 2008 Share Posted July 6, 2008 i understand what he said love hes asking that someone to make a havaster getting plants samples for him with in certain hours and to go to a certain point afterward i think but thats justs what a pirate thinks love Jack Sparrow Link to comment Share on other sites More sharing options...
Naminea Posted July 6, 2008 Share Posted July 6, 2008 Ah oddley enough you make sence... anyways, the ammount of scripting for that would be huge... Good luck finding a scripter to do it... Link to comment Share on other sites More sharing options...
tyreil829 Posted July 7, 2008 Share Posted July 7, 2008 what about packages love eh? Jack Sparrow P.S love the Avatar very hot Link to comment Share on other sites More sharing options...
Naminea Posted July 7, 2008 Share Posted July 7, 2008 Well you could make him a walking trader, only you can get the items from him for free... P.S ty... :biggrin: Link to comment Share on other sites More sharing options...
tyreil829 Posted July 7, 2008 Share Posted July 7, 2008 haha true love what walking in and out everycity to another city eh? not a bad idea Jack Sparrow Link to comment Share on other sites More sharing options...
greyshadowfox Posted July 7, 2008 Author Share Posted July 7, 2008 That's not what I meant thank you very much. I meant just making an NPC with a normal wander package and an eat package. Is it that hard? I already now how to do it, its just I can't find a way to get it working properly and I was hoping someone could help me make one and I could work off of what they did and learn how they did it so that I could make more of them and know how to do it. They call it learning and/or asking for help. I kinda took that to offense at first....but I'm all good now at the end of the message lol. But ya...Now that you know what I mean, could anyone still help? Link to comment Share on other sites More sharing options...
tyreil829 Posted July 7, 2008 Share Posted July 7, 2008 erm sorry mate im a pirate not a package person..thing look on the guides Jack Sparrow Link to comment Share on other sites More sharing options...
LoginToDownload Posted July 7, 2008 Share Posted July 7, 2008 If you're going to be working with AI Packages, it might be a good idea to do it yourself for experience. To start, once you have your NPC, open him/her up and pick "AI". Delete any existing packages. You might be able to do it using only the default "aaa" packages under World/Packages. For those, the standard format goes "aaa(package type)(start time)x(duration in hours)". An example would be "aaaEat10x2", which would have the package's subject look for food/eat from 10 AM to noon. If you open up aaaEat10x2, you can see this is accomplished by, under the schedule tab, setting the package's time to 10 and the duration to 2. You might notice the package's "Conditions" tab is empty, which means subject NPCs will always use that package if it's between 10 and noon, unless there's something higher-priority that can run. Taking a look at the package's "Location" tab, it's rigged with a radius of 2048, and "Near Editor Location" is checked. That means the package's subject will only eat food 2048 units (of distance) from where s/he was placed in the CS. Packages can also be designed only to eat/look for food around a specific reference (Many times a marker), a specific type of item (say, a silver plate), or a specific category of item (say, ingredients). The "Target" tab can be ignored for now, since it doesn't do anything for eat, sleep, or wander packages. Now, if your NPC was inside a cell (probably his/her home) with both food and a bed, you could add the AI Packages aaaEat12x2, aaaEat18x2, aaaSleep22x8, and aaaDefaultExploreCurrentLoc1024. (Wanders around within 1024 units of where the NPC was when s/he started the AI Package) That last one doesn't have any set time or conditions, so it's important to place that package into the NPC last. (Click and drag AI Packages from World/Packages to the NPC's package list, or create them on-the-spot by right-clicking on the NPC's package list and selecting "new") That will make it the lowest-priority AI Package, so it will only run when the NPC shouldn't be eating or sleeping. AI Packages have priority over any AI Packages lower on the subject's package list than it. Of course, this way, the NPC would be quite a recluse, never leaving his/her editor location. All of the "aaa" Sleep packages work with the NPC's editor location like the "eat" packages, and even if we let him/her wander at his/her current location when the package starts, there would still never be a chance to get anywhere other than his/her "editor location" cell. If you wanted him/her to wander outside somewhere, you'd need to make sure his/her wander packages's location is set somewhere else. Ideally you'd do this by placing an invisible marker there, unless something persistent already exists that you can point it at, since selecting a whole cell as a location doesn't work very well. Fortunately, the AI Package editor has a system in place to do just that. Look at the location where you want your NPC to wander in the Render window, and make a new package. Set it to "Wander". Under its location, there should be a button titled "Create Marker at Render Camera". Clicking this will automatically set the AI Package's location to "Near Reference", the reference being the brand new red "X" in the Render Window. (It won't be visible in-game) You can move it around like any other object if you want to fine-tune its location. I'll leave the radius to you. From here, there are two things you can do with your AI Package. If you want to give it a schedule, (a "time of 14" and a "Duration" of 4 would work well if you want to slot it in-between lunch and dinner) then you'd want to remove the old "Default" wander package, insert the new one, and then put the "Default" wander package back. This way the old, all-the-time wander package will still be the lowest-priority. Since it would run after sleep and after dinner primarily, it would still only have the NPC wandering at home, but the NPC would also now wander around outside in-between lunch and dinner. If you wanted him/her to wander around at the marker all the time when not eating or sleeping instead of just in-between meals, don't give your new package a schedule and just replace the old wander package with this one. Similarly, if you wanted the NPC to eat or sleep in a location aside from his/her editor location, you could replace whatever packages are in the "wrong location" with ones set to a new marker. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.