Jump to content

[SOLVED][xEdit] How to list all NPCs with Opposite Gender Anims flag?


Recommended Posts

Posted (edited)

I'm tired of having to go through over 300 actor records every time I install a new NPC overhaul, just check if this flag still exists and turn it off.

Is there a way to have xEdit print the list of actors that have this flag? Or any other flag for that matter.

Edited by belegost
  • belegost changed the title to [xEdit] How to list all NPCs with Opposite Gender Anims flag?
Posted

Orcs are the main victims of this.

I got into the habit of checking for opposite gender anim whenever I was in XEdit doing something to an NPC.

 

On the bright side it is easy to give Nazeem female animations. 🫣

Posted (edited)
1 hour ago, traison said:

 

That's nice, but I still would like to know how to list records by flag. Especially since there are mods that add opposite gender anims to males. And I don't want that either.

xEdit has that "Filters" function, but the damn thing is so overwhelming I could never figure out how to make it usable for literally anything.

Edited by belegost
Posted
  1. Load the plugins you want to check.
  2. Apply script to either the entire plugin (slower), or directly to the NPC_ group (faster).
  3. Results in Messages -tab.
{
  Find opposite gender flag.
}
unit UserScript;

function Process(e: IInterface): integer;
begin
    if Signature(e) <> 'NPC_' then
        Exit;
    
    if ElementExists(e, 'ACBS\Flags\Opposite Gender Anims') then begin
        AddMessage(Name(e))
    end;
end;

end.

 

Spoiler

[00:00] Start: Applying script "sample"
Elenwen "Elenwen" [NPC_:00013269]
Rikke "Legate Rikke" [NPC_:000132A1]
Mjoll "Mjoll the Lioness" [NPC_:0001336B]
Daighre "Daighre" [NPC_:00013391]
Faleen "Faleen" [NPC_:00013397]

...

 

  • belegost changed the title to [SOLVED][xEdit] How to list all NPCs with Opposite Gender Anims flag?
Posted
2 hours ago, traison said:
  1. Load the plugins you want to check.
  2. Apply script to either the entire plugin (slower), or directly to the NPC_ group (faster).
  3. Results in Messages -tab.
{
  Find opposite gender flag.
}
unit UserScript;

function Process(e: IInterface): integer;
begin
    if Signature(e) <> 'NPC_' then
        Exit;
    
    if ElementExists(e, 'ACBS\Flags\Opposite Gender Anims') then begin
        AddMessage(Name(e))
    end;
end;

end.

 

  Reveal hidden contents

[00:00] Start: Applying script "sample"
Elenwen "Elenwen" [NPC_:00013269]
Rikke "Legate Rikke" [NPC_:000132A1]
Mjoll "Mjoll the Lioness" [NPC_:0001336B]
Daighre "Daighre" [NPC_:00013391]
Faleen "Faleen" [NPC_:00013397]

...

 

 

Thank you kindly, Sir/Madam/Apache helicopter

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...