ninjaseikai
Jul 10 2008, 08:20 AM
hello!
i recently made a vampire lair that i think looks amazing. its an addon to sinbloods vampire lair. its a chapel located near anvil with plenty inside for a whole clan of vampires, the only;y problem is theres no vampires in it.
im not good with the npcs at all. i tried first with placing cattle in the cells and when i loaded it up they were wandering all over the place. not what my cattle should be doing.
i dont understand how the AI works at all and i was wondering if anyone would like to help out. i dont want anything complex, just simply add cattle to the cells that stay there and sleep occasionally. and possibly a few vampire npcs. they dont need any fancy dialogue or quests or anything, just maybe wander around the chapel and go out at night or something, nothing too hard. id just like them to look nice with hair other than vanilla.
but mostly im just asking for the cattle, i can make vampires in game and have them follow me to my lair but i cant think of a way to make cattle.
if your willing to help let me know and ill send you the .esp
thank you!
LoginToDownload
Jul 10 2008, 04:01 PM
You might want to try doing it yourself first for the experience.
Short Answer: Create a "Sleep" AI Package with no time, duration, or conditions. Set the location to a persistent reference near the cattle's bedroll or, if the cattle are placed in the CS near their bedroll, near editor marker. A radius of 500 should do. Give all the cattle this AI Package, and make sure they don't have any others.
Long answer: Take a look at an NPC's AI section. At the top should be some stats.
Aggression: If the actor's disposition towards anyone is lower than their aggression, and they're not faction-mates, the actor will attack. I think unless they have an aggression of five or more they won't start combat under any circumstances, (Aside from sccripting) and with an aggression of zero they won't even fight back.
Confidence: If the NPC's health is at a lower percentage than (100 - Confidence), they'll flee from whoever's fighting them. Someone with a confidence of 0 will always flee combat, someone with a confidence of 50 will flee once they reach half HP, and someone with a confidence of 100 will never flee. (Aside from scripting)
Responsibility: If an NPC's responsibility is less than 30, they'll steal if it's required for an AI package, and won't yell if they see a crime. An NPC with a confidence of 100 can report crimes directly, automatically giving the player a bounty even if not a guard.
Energy: The higher an actor's Energy, the more they'll move about when wandering.
The real meat of an Actor's AI, however, can be seen in the AI Package list at the bottom. Open up an AI Package. AI Packages can be given certain conditions and run-times, and are sorted by priority. (How high on the actor's list they are) Some AI Packages also have a target, and most have a location. The run-time is determined by the AI Package's duration and time. AI Packages will run from <time> to <time + duration>. If "time" isn't specified, they'll run whenever.
Consider an NPC with the following AI Packages, in the order listed. Assume he was placed (that is to say, his Editor Location is) in his one-cell home. Higher-up AI Packages have priority over lower ones.
aaaSleep22x8: A "Sleep" AI Package with a location of "Near Editor Location". Starts at 10 PM, and runs for eight hours.
MyWindowShopping: A brand-new Wander AI Package. The location is set as a marker in a store, with a radius of 1000. The time is 15, and the duration is 2. This one has a condition of (GetItemCount gold001 >= 10).
MyWanderInTown: Another new Wander AI Package, with the location set as a marker in the middle of town, and a radius of 3000 units. The time is 14, and the duration is 4.
aaaEat12x2: Since "aaa" packages are "default" packages, 12x2 means from 12 to 14, or starting at noon and continuing two hours. This is an "Eat" AI Package with the location set as within 2048 units of the Editor Location.
aaaEat18x2: Should be obvious with the description of the last AI Package.
aaaDefaultExploreEditorLoc1024: Wander at the subject's Editor Location, within a radius of 1024 units. No conditions or time specified.
This NPC would start his day at 6 AM, since that's when his "Sleep" AI Package ends. aaaDefaultExploreEditorLoc1024 would always run when none of the others are, so he would wander around his house until noon, when he would eat lunch. When he finished, it would be 2 PM, so he would wander around town. Come 3 PM, if he has ten or more gold, he would hang out in a shop until 5 PM, then wander around in town again until 6. If he doesn't have that much gold on him, he would just keep on wandering until 6 PM. This is because the "Wander in town" AI Package is still "ready to go" when the window-shopping one is, but since the window-shopping package is higher-priority, it will be interrupted unless our subject has less than 10 gold, in which case the window-shopping package can't run.
At 6, he'll head home and eat dinner, finishing at 8. Since now there aren't any eligible AI Packages aside from the lowest-priority "Wander at Home" package that's always eligible, he'll do that until 10 PM rolls along and the higher-priority Sleep AI Package is also eligible. Then he'll turn in. With this knowledge, you should be able to get your NPCs' AI to work properly with little trouble.
tyreil829
Jul 10 2008, 11:45 PM
how do people come up with long messages like the one above me eh?
Jack Sparrow
ninjaseikai
Jul 11 2008, 01:16 AM
i cant get them to stop wandering out of the cell and talking to eachother, they only have a sleep ai package. i just want them to stand there
LoginToDownload
Jul 11 2008, 01:42 AM
What are the stats on the Sleep AI Package? Schedule, location, etc?
ninjaseikai
Jul 11 2008, 02:21 AM
uh i was deleting dialogue and i just recently realized i was deleting it from everyone and not just my cattle. ive already saved too, is there anyway to restore them without starting my mod over? i kinda want my hellos when i talk to npcs
ninjaseikai
Jul 11 2008, 02:23 AM
the schedules are all any except duration is 8, location is near editor location 50,
and theres no target or conditions
LoginToDownload
Jul 11 2008, 02:48 AM
Firstly, you might want to set the duration to zero. Secondly, you should know that the game's units of measurement are very, very small. Try 500. If it still doesn't work, if you upload it, I'll take a look.
As for the dialogue, try selecting your file under Data, clicking "Details", and looking for "INFO" forms for the dialogues you deleted. Select them individually and press the "Delete" key. Or, if all you've done so far is delete greetings you shouldn't, you can just select the GREETING dialogue and press the delete key.
ninjaseikai
Jul 11 2008, 03:44 AM
so when it was made i ahd all my .esm files activated.
oblivion .esm
horsecombatmaster.esm
cm partners.esm
bab.esm
does that mean youll nee dall the .esm files to make it work?
LoginToDownload
Jul 11 2008, 03:58 AM
Does that mean it works now? Woohoo!
I'm not sure at all how file dependency works. All I can reccommend is taking a look at
Wrye Bash, which lets you mess with a mod's master list. If you didn't use anything from any of the other .esm files in its making, you should just be able to remove them from the plugin's master list. I think...
ninjaseikai
Jul 11 2008, 04:02 AM
haha unfortunetely i didnt get it to work>.< i was wondering that cause i cant figure it out so i was gonna upload for help. i didnt use anything from them no but i cant make mods without some of them active or my cs crashes ;.;
Sabat9
Jul 11 2008, 06:52 AM
get this nifty little program called TESGecko. It's great for when you want to "undo" changes you didn't want to make, such as deleting dialogue.
after you get Gecko installed and started up, click on display/copy, then select your mod.
delete the subfolders for anything you want to get rid of. There will be a folder for all the categories in which you made changes that were saved as part of your mod, even one labeled "dialogue". You can also choose "ignore" for anything you want to get rid of.
This is the concept with using Gecko, you're not really undoing or restoring any changes, you're taking the changes out of your mod, and the game then loads the original vanilla data.
It's a must have app for all beginner modders, it's saved my butt a couple times now.
ALSO: Try setting up patrol paths for your cattle within the area that you want them to stay. Add a locked gate with a key. I think you also might want to set them to player faction, so they don't run from or try to attack you. This should keep them rather passive.
The TESWiki has all the instructions you'll need to accomplish this, it's actually not that difficult once you set up a couple NPC's and get the hang of it.
ps: make sure the cattle have enough bedrolls that they can actually sleep on.
ninjaseikai
Jul 11 2008, 06:17 PM
i did all that, the only problem is they run around talking to each other so they're all over the room, idk how to stop them from initiating conversation with each other
LoginToDownload
Jul 11 2008, 07:34 PM
Try toggling the "Skip Fallout Behavior" tag on your sleep package.
I don't know, if my life involved sitting in a pen waiting to be snacked on, I'd be chatting it up in the meantime...
ninjaseikai
Jul 12 2008, 05:38 AM
still notihng, but ts ok i can live with them walking around since theyre not leaving the area anymore haha
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.