TES5Edit Script for editing NPCs

Post » Sun Nov 23, 2014 12:18 pm

Trying to figure out how to write a simple script for TES5Edit for NPCs that

? sets the "simple actor" flag
? removes the voice type (or sets it to none)

Anyone know how?

User avatar
dell
 
Posts: 3452
Joined: Sat Mar 24, 2007 2:58 am

Post » Sun Nov 23, 2014 9:41 am

Got the second part down:

{  Remove NPC Voice Type.}unit UserScript;function Process(e: IInterface): integer;begin  RemoveElement(e, 'VTCK');end;end.

Now I just need to figure out how to set the ACBS flags. Anyone?

User avatar
Gracie Dugdale
 
Posts: 3397
Joined: Wed Jun 14, 2006 11:02 pm

Post » Sat Nov 22, 2014 11:51 pm

SetElementNativeValues(e, 'ACBS\Flags', GetElementNativeValues(e, 'ACBS\Flags') or $100000));
User avatar
carrie roche
 
Posts: 3527
Joined: Mon Jul 17, 2006 7:18 pm

Post » Sun Nov 23, 2014 5:21 am

Thanks! Figured it out.

{  Remove NPC Voice Type.}unit UserScript;function Process(e: IInterface): integer;begin  RemoveElement(e, 'VTCK');  SetElementNativeValues(e, 'ACBS\Flags', GetElementNativeValues(e, 'ACBS\Flags') or 1048576);end;end.
User avatar
Carlos Vazquez
 
Posts: 3407
Joined: Sat Aug 25, 2007 10:19 am

Post » Sun Nov 23, 2014 9:30 am

Aaaaand that didn't do what I'd hoped. LOL.

I'm trying to make it so population mods don't use facial animations or voices, but setting the voice type to "none" doesn't seem to do that. They still respond with an audio file. Any thoughts?

User avatar
Nikki Morse
 
Posts: 3494
Joined: Fri Aug 25, 2006 12:08 pm


Return to V - Skyrim