make a NPC attack certain class?

Post » Fri May 27, 2011 4:15 pm

can I make a npc attack another npc on sight if its a certain class or faction? is it possible? maybe with MWSE?
User avatar
Chloe Lou
 
Posts: 3476
Joined: Sat Nov 04, 2006 2:08 am

Post » Fri May 27, 2011 4:56 pm

can I make a npc attack another npc on sight if its a certain class or faction? is it possible? maybe with MWSE?


Yes, my little boy did it by modifying the Dragon's Breech practice dummy script. So it is possible without MWSE.
User avatar
Hot
 
Posts: 3433
Joined: Sat Dec 01, 2007 6:22 pm

Post » Fri May 27, 2011 5:49 pm

How do you do it then?
User avatar
Sxc-Mary
 
Posts: 3536
Joined: Wed Aug 23, 2006 12:53 pm

Post » Fri May 27, 2011 10:25 pm

You could make a faction (faction A) that has -128 faction reaction towards the faction(s) (faction B) you wish for the NPC to attack, and make that the faction of your attacker NPC. I think that will make all NPCs of faction A attack any member of faction B on sight.

As for class, I don't think you can do that in standard scripting.
User avatar
Aaron Clark
 
Posts: 3439
Joined: Fri Oct 26, 2007 2:23 pm

Post » Fri May 27, 2011 1:10 pm

Nope, class can't be done without some fancy extended scripting.

If you're going for a faction method, though, make sure you keep the fight values on the NPCs relatively high, but not high enough they attack the PC. You want them to be on edge, essentially.
User avatar
Kanaoka
 
Posts: 3416
Joined: Fri Jun 16, 2006 2:24 pm

Post » Fri May 27, 2011 3:18 pm

can you set this with a script? also, it would be on a companion. Does that effect anything?
User avatar
herrade
 
Posts: 3469
Joined: Thu Apr 05, 2007 1:09 pm


Return to III - Morrowind