jhondidfool Posted May 29, 2017 Share Posted May 29, 2017 (edited) So recently I decided to coma back to modding FO4, And started doing stuff by hand. Bad idea. I have thousands of stuff to edit... So I started to look at xEDIT scripting, and despite the nearly-non-exsistant documentation, stuff like modifying a value for a set number or a formula is easily done. But my problem comes when I try to deal with the components that are part of the Constructable Objects... Does anyone know how to access them? Or at the very least what is the kid of variable they are so I can access them? (GroupRecord within a GroupRecord, MainRecord, SubRecord...?) I've been trying to figure it out for a few hours and no dice. Halp? EDIT: Figured it out. In case anyone needs it, This gives me names and ammounts of the records it's applied to: unit userscript; uses mteFunctions; function Process(e: IInterface): integer; var itemName, name, compNum, count: string; level1, level2 :IInterface; i, iLastIndex, iResults: integer; begin itemName := geev(e,'EDID'); AddMessage('============================='); AddMessage('Item ' + itemName + ' contains:'); level1 := ElementBySignature(e, 'CVPA'); iLastIndex := ElementCount(Level1) -1; iResults := 0; for i := 0 to iLastIndex do begin compNum := 'Component #' + IntToStr(i); Level2 := ElementByName(level1, compNum); name := geev(level2, 'Component'); count := geev(level2, 'Count'); AddMessage('component: ' + name); AddMessage('ammount: ' + count); end; end; end. Edited May 29, 2017 by jhondidfool Link to comment Share on other sites More sharing options...
Recommended Posts