Jump to content

FO4Edit Script to remove armour slots?


Recommended Posts

So I'm looking for help with a project - I'd like to build my own version of a 'more armour slots' mod. I can see how to do it manually easily enough, it'll just be really really tedious. So I'm wondering about writing a script for FO4Edit that would find the relevant armour slots (BOD2 records) and delete them if present? Is this possible? Has it been done? How hard is it?

Link to comment
Share on other sites


unit RemoveSlot;

const
iBipedSlot = 41; // slot number to remove

function Process(e: IInterface): Integer;
begin
SetElementNativeValues(e, 'BOD2\First Person Flags', GetElementNativeValues(e, 'BOD2\First Person Flags') and not (1 shl (iBipedSlot - 30)));
end;

end.
Link to comment
Share on other sites

So something like this? (Sorry, I am very much a novice at this stuff)

 

unit RemoveSlot;

const
  iBipedSlot = 41; // slot number to remove
  iBipedSlot = 42;

function Process(e: IInterface): Integer;
begin
  SetElementNativeValues(e, 'BOD2\First Person Flags', GetElementNativeValues(e, 'BOD2\First Person Flags') and not (1 shl (iBipedSlot - 41)));
  SetElementNativeValues(e, 'BOD2\First Person Flags', GetElementNativeValues(e, 'BOD2\First Person Flags') and not (1 shl (iBipedSlot - 42)));
end;

end.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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