cheesetoast8 Posted April 6, 2018 Share Posted April 6, 2018 I need a script like the one that lets you add prefixes & etc to editorIDs, but it needs to be added to the FULL - NAME entry instead. Link to comment Share on other sites More sharing options...
RetroDaddy Posted July 22, 2018 Share Posted July 22, 2018 Ditto. Link to comment Share on other sites More sharing options...
VIitS Posted July 22, 2018 Share Posted July 22, 2018 Automation Tools for TES5Edit Link to comment Share on other sites More sharing options...
payl0ad Posted July 23, 2018 Share Posted July 23, 2018 Use this: { This script will prepend or append supplied value to the Name field of every selected record. } unit UserScript; var DoPrepend: boolean; s: string; function Initialize: integer; var i: integer; begin Result := 0; // ask for prefix or suffix mode i := MessageDlg('Prepend [YES] or append [NO] to Item Name?', mtConfirmation, [mbYes, mbNo, mbCancel], 0); if i = mrYes then DoPrepend := true else if i = mrNo then DoPrepend := false else begin Result := 1; Exit; end; // ask for string if not InputQuery('Enter', 'Prefix/suffix', s) then begin Result := 2; Exit; end; // empty string - do nothing if s = '' then Result := 3; end; function Process(e: IInterface): integer; var elEditorID: IInterface; begin Result := 0; //AddMessage('Processing: ' + Name(e)); elEditorID := ElementByName(e, 'FULL - Name'); if Assigned(elEditorID) then begin if DoPrepend then SetEditValue(elEditorID, s + GetEditValue(elEditorID)) else SetEditValue(elEditorID, GetEditValue(elEditorID) + s); end; end; end. Link to comment Share on other sites More sharing options...
LarryX Posted November 13, 2018 Share Posted November 13, 2018 Thx for this script, it helped me a lot. :) Link to comment Share on other sites More sharing options...
comatosedragon Posted June 5, 2020 Share Posted June 5, 2020 Thank you for the script, payl0ad Link to comment Share on other sites More sharing options...
Recommended Posts