amokrun1 Posted December 26, 2019 Posted December 26, 2019 So I have an extensive list of misc mods that all have a commonality in their in-game names that I want to remove. For example, {TIER} Ballistic Armor L1, I want to remove {TIER} from all records. Problem is, the number of instances is quite high, over 1000, and they all for the most part have slight differences to their names, so I cannot just delete the selected records and copy a new renaming to all of them. I am using FO4Edit for this, but help in either this or CK would be greatly appreciated, as going through each record to rename it is not appealing. Any recommendations?
DieFeM Posted December 26, 2019 Posted December 26, 2019 In xEdit have a script named "Replace Text in EDID and FULL", you need to edit it like this to replace {TIER} with nothing: StrSearch = '{TIER} '; StrReplace = ''; Then, to avoid editing the EDID, or said with other words, edit only FULL (which is the name of the record) you need to comment the line that does the replacement in the EDID (by adding 2 slashes at the beginning of the line), so the script will replace only the string in FULL:function Process(e: IInterface): integer; begin // SearchAndReplace(ElementBySignature(e, 'EDID'), StrSearch, StrReplace); SearchAndReplace(ElementBySignature(e, 'FULL'), StrSearch, StrReplace); end;
amokrun1 Posted December 27, 2019 Author Posted December 27, 2019 Thanks! I never tried using scripts in FO4Edit, I'll give this a shot.
Worsin Posted December 29, 2019 Posted December 29, 2019 You can also do this function Process(e: IInterface): integer; begin // SearchAndReplace(ElementBySignature(e, 'EDID'), StrSearch, StrReplace); SearchAndReplace(ElementBySignature(e, 'DESC'), StrSearch, StrReplace); end;to replace info in the description and also here is another awesome Search and Replace scripthttps://pastebin.com/v5yaUPRb just create a new .pas file...paste that in and hit CTRL R in xEdit.
Recommended Posts