I know this comes up all the time, but a search of recent topics hasn't bought anything conclusive.
I'm trying to get NPCs of two opposing faction to attack each other on sight, I've tried setting the respective faction reaction to -128 and the fight rating to 70, I placed the two NPCs nose to nose and they still didn't attack each other, ( though they do attack the PC if the PC is from one of the two factions in question ). Has anyone had success with this method?
As a seccond idea, if I create two NPCs with a script attached for one to attack the other and populate a cell with several instances of each, will that confuse the game engine, or will they just attack the nearest instance of the opposing NPC?
Also a third random question, is an NPC companion clever enough to drink a potion if they need it and how would I give or take items away from said companion. Is there a script already out there that makes them level up in line with the PC and do their stats increase accordingly?
1. dont know, never tried
2. nearist/first instance, i'm fairly sure. if you want them all to fight, make a unique individual for both groups (unique only in script and ID) that all the rest are scripted to AI follow, and have one of these startcombat with the other.
3. i know for sure NPCs will drink non-player made health, magika, and stamina potions. i think they will also drink cure disease, or other status restoration potions if needed. they may also drink player made potions with these effects, i'm not sure. to give or take away ppotions, use the companion share selection in the dialog menu. to enable this, include the short "companion" on the NPCs script, and set it to 1 when they are your companion, usually accomplished with dialog. they may be some framework scripts out there. i'm fairly sure there are. i never really bothered to check because i wanted to script my companions myself. increasing level on an npc does nothing, really except function as an extra variable (for getlevel checks and such) to simulate leveling up, it's skills would have to be modified individually by script.