NPCs and friendly fire

Post » Fri Mar 25, 2011 10:01 am

When the player character hits a friendly NPC when in combat he says "Hey, I'm on your side!", but if an NPC is hit by friendly fire they fight to the death.
Is there any way to extend the PC - NPC behavior to also work between NPCs? If so, is there already such a mod or would someone make it?
User avatar
Veronica Martinez
 
Posts: 3498
Joined: Tue Jun 20, 2006 9:43 am

Post » Fri Mar 25, 2011 2:26 pm

I would like to see this too. Like an extra check if there are in the same faction and so stop fighting - raise disposition and lower aggression or something.
Hate it when guards go on a killing spree and kill just about everybody :ahhh:
User avatar
Kelly Osbourne Kelly
 
Posts: 3426
Joined: Sun Nov 05, 2006 6:56 pm

Post » Fri Mar 25, 2011 7:38 am

Isn't there something like this in one of Duke's mods?
User avatar
Ludivine Poussineau
 
Posts: 3353
Joined: Fri Mar 30, 2007 2:49 pm

Post » Fri Mar 25, 2011 6:16 pm

Would be a real easy thing to do the way I see it, I mean scripting it.

One quest script, runs - say, once every second - loops the loaded NPCs, skips anyone not in combat, for those in combat it checks the combat target, then checks the faction relation and calls stopcombat + adjusts disposition when needed.
User avatar
Rozlyn Robinson
 
Posts: 3528
Joined: Wed Jun 21, 2006 1:25 am

Post » Fri Mar 25, 2011 4:33 pm

http://tesnexus.com/downloads/file.php?id=6612
User avatar
Veronica Flores
 
Posts: 3308
Joined: Mon Sep 11, 2006 5:26 pm

Post » Fri Mar 25, 2011 2:36 pm

http://tesnexus.com/downloads/file.php?id=6612

That only works for PC-NPC. The OP is looking for one that does this for NPC-NPC. Thanks for the link, though. I'll use that one.
User avatar
glot
 
Posts: 3297
Joined: Mon Jul 17, 2006 1:41 pm

Post » Fri Mar 25, 2011 4:00 pm

What about that NPCs Yield mod? Doesn't that make it so friendly NPCs can yield to each other after a friendly fire accident? Or am I misremembering that?
User avatar
Anna Krzyzanowska
 
Posts: 3330
Joined: Thu Aug 03, 2006 3:08 am

Post » Fri Mar 25, 2011 4:08 pm

Would be a real easy thing to do the way I see it, I mean scripting it.

One quest script, runs - say, once every second - loops the loaded NPCs, skips anyone not in combat, for those in combat it checks the combat target, then checks the faction relation and calls stopcombat + adjusts disposition when needed.


I could probably learn how to do it if I spend some days or weeks on it.
Or someone who knows how to script could do it. Would be an instant hit. :shifty: :whistling:
User avatar
N Only WhiTe girl
 
Posts: 3353
Joined: Mon Oct 30, 2006 2:30 pm

Post » Fri Mar 25, 2011 6:37 pm

I could probably learn how to do it if I spend some days or weeks on it.
Or someone who knows how to script could do it. Would be an instant hit. :shifty: :whistling:


I almost made it today, would have probably taken 15min or less without play testing.


The only thing that stopped me from doing it was the fact that I couldn′t easily find info or remember what ugridstoload setting literally means. For example, does setting 5 mean it loads 9 cells or 16 or 25 or what?

(I needed this info for looping the loaded area)
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Fri Mar 25, 2011 6:35 pm

Bah I made the script, I assume the ugridstoload gets simply put in power of 2. So 5 means 25 cells loaded, which in Obse′s cell depth terms means cell depth of 2.

I′ll test the script and release this simple mod if it works.


EDIT: Yup, no probs it seems. Could not make guards fight each other even via console. I′ll upload in a moment.


http://www.gamesas.com/index.php?/topic/1122950-relz-npc-friendly-fire/
User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am


Return to IV - Oblivion