How Do I Make NPCs Non-Interactive?

Post » Sat Feb 19, 2011 12:17 am

One thing I liked about Nehrim was that you occasionally ran into people that you simply couldn't initiate conversation with. I thought this would be a good addition to mods for Oblivion that add generic NPCs to cities and such, but I can't figure out how this is achieved. Does anybody know how they did it? Thanks for the help.
User avatar
Kristina Campbell
 
Posts: 3512
Joined: Sun Oct 15, 2006 7:08 am

Post » Sat Feb 19, 2011 7:42 am

Im not sure thisll work on NPCs (it does with containers I think), but you could try a script attached to each 'non-interactable' NPC like this:

Begin OnActivateIf IsActionRef Player == 1        ReturnElse        ActivateEndIfEnd


The only reason I put a check to see if the player is doing it, is because I dont know if putting an overriding 'dont activate' script on an NPC (no matter what activates him/her) might screw other things up.
User avatar
Tessa Mullins
 
Posts: 3354
Joined: Mon Oct 22, 2007 5:17 am

Post » Sat Feb 19, 2011 2:58 am

The only reason I put a check to see if the player is doing it, is because I dont know if putting an overriding 'dont activate' script on an NPC (no matter what activates him/her) might screw other things up.

I haven't noticed any issues yet with just using OnActivate, so I don't think the check is necessary. Thanks for the tip!
User avatar
Britta Gronkowski
 
Posts: 3475
Joined: Mon Apr 09, 2007 3:14 pm


Return to IV - Oblivion