DanielUA Posted October 13, 2013 Share Posted October 13, 2013 Mator, really thank for your help... And of course for the work you already did. I will try to finish this script. Just a bit later :) Link to comment Share on other sites More sharing options...
JobVanDam Posted October 13, 2013 Share Posted October 13, 2013 One thing I had to do awhile back that was really annoying is with Flags for NPC's. You can't just copy a single flag over. You have to copy the entire group over so I ended up going through them all one by one. Link to comment Share on other sites More sharing options...
matortheeternal Posted October 13, 2013 Author Share Posted October 13, 2013 One thing I had to do awhile back that was really annoying is with Flags for NPC's. You can't just copy a single flag over. You have to copy the entire group over so I ended up going through them all one by one. Flags are fairly complicated, from what I've seen. They're stored as a binary string, where each individual character serves as an identifier for a flag. Are you talking about Copying them using the QuickChange Copy function or otherwise? Link to comment Share on other sites More sharing options...
JobVanDam Posted October 13, 2013 Share Posted October 13, 2013 One thing I had to do awhile back that was really annoying is with Flags for NPC's. You can't just copy a single flag over. You have to copy the entire group over so I ended up going through them all one by one. Flags are fairly complicated, from what I've seen. They're stored as a binary string, where each individual character serves as an identifier for a flag. Are you talking about Copying them using the QuickChange Copy function or otherwise? Is the QuickChange copy function the thing where you highlight the records to the left and then "Copy to selected records"? If so, yeah thats what I tried using and it just doesn't work.If that's too difficult don't worry about, I only had to do that once. Probably never gonna happen again. Here's a real test of intestinal fortitude.How's about a function that when you select records on the left hand side you can either duplicates or create overrides of those records BUT it will only create based on condition such as race, gender etc.? For instance I select 5 NPC records:Argonian MaleNord MaleBreton MaleKhajiit FemaleNord Female I select Override Records.I then select Breton, Nord and Male then the function only creates overrides of the Nord Male and the Breton Male in the mod I specify. Link to comment Share on other sites More sharing options...
JobVanDam Posted October 13, 2013 Share Posted October 13, 2013 Another super nice thing to have would be a search function similar to the CK where you search for a string and everything that matches shows up. This one by one thing is wack. Link to comment Share on other sites More sharing options...
matortheeternal Posted October 13, 2013 Author Share Posted October 13, 2013 Is the QuickChange copy function the thing where you highlight the records to the left and then "Copy to selected records"? If so, yeah thats what I tried using and it just doesn't work. If that's too difficult don't worry about, I only had to do that once. Probably never gonna happen again. No, the Quickchange copy function is the one you use when you run the script QuickChange and type Copy for a function to use. Here's a real test of intestinal fortitude. How's about a function that when you select records on the left hand side you can either duplicates or create overrides of those records BUT it will only create based on condition such as race, gender etc.? For instance I select 5 NPC records: Argonian Male Nord Male Breton Male Khajiit Female Nord Female I select Override Records. I then select Breton, Nord and Male then the function only creates overrides of the Nord Male and the Breton Male in the mod I specify. Right Click -> Apply Filter -> Copy as Override Another super nice thing to have would be a search function similar to the CK where you search for a string and everything that matches shows up. This one by one thing is wack. Right Click -> Apply Filter Link to comment Share on other sites More sharing options...
JobVanDam Posted October 13, 2013 Share Posted October 13, 2013 Is the QuickChange copy function the thing where you highlight the records to the left and then "Copy to selected records"? If so, yeah thats what I tried using and it just doesn't work.If that's too difficult don't worry about, I only had to do that once. Probably never gonna happen again.No, the Quickchange copy function is the one you use when you run the script QuickChange and type Copy for a function to use. Here's a real test of intestinal fortitude.How's about a function that when you select records on the left hand side you can either duplicates or create overrides of those records BUT it will only create based on condition such as race, gender etc.? For instance I select 5 NPC records:Argonian MaleNord MaleBreton MaleKhajiit FemaleNord Female I select Override Records.I then select Breton, Nord and Male then the function only creates overrides of the Nord Male and the Breton Male in the mod I specify. Right Click -> Apply Filter -> Copy as Override Another super nice thing to have would be a search function similar to the CK where you search for a string and everything that matches shows up. This one by one thing is wack. Right Click -> Apply Filter O RLY? No wai! Link to comment Share on other sites More sharing options...
matortheeternal Posted October 14, 2013 Author Share Posted October 14, 2013 O RLY? No wai! Welcome to the thread. Link to comment Share on other sites More sharing options...
JobVanDam Posted October 14, 2013 Share Posted October 14, 2013 This Filter functionality is a little overwhelming could you point me in the direction of a good tutorial for it? Only tutorials on Google I find are how to clean your mods. Link to comment Share on other sites More sharing options...
Treplos Posted October 14, 2013 Share Posted October 14, 2013 (edited) @ Zilav and Mator, ty both kindly!! :laugh: After a bit of testing and errors, I managed to integrate Zilav's ReverseSort Procedure into my script. Mind you I am a complete noob, but it works :D It now sorts A-Z or Z-A. I wish I could make it detect one of 2 hotkeys to sort either A-Z with "Ctrl-P" or Z-A with "Alt-P" (like I can make it do in Autohotkey). This is obviously a little side feature, as I am just trying to get around learning a few things about Pascal lol { Print FULL NAME records of a selection in any order, A-Z or Z-A. Hotkey: Ctrl+P } Unit Userscript; var FName: string; slPrint: TStringList; //=========================================================================== Function Initialize: Integer; Begin slPrint := TStringList.Create; End; //=========================================================================== Function Process(e: IInterface): Integer; Begin // Full Name: // slPrint.Add(GetElementNativeValues(e, 'FULL')); slPrint.Add(GetElementEditValues(e, 'FULL')); End; //=========================================================================== Procedure ReverseSort(slPrint: TStringList); var i: integer; s: string; begin slPrint.Sort; for i := 0 to slPrint.Count div 2 - 1 do begin s := slPrint[i]; slPrint[i] := slPrint[slPrint.Count-i-1]; slPrint[slPrint.Count-i-1] := s; end; end; //=========================================================================== Function Finalize: Integer; Begin // --------------------------- // Choose your sorting method // --------------------------- // Sort A-Z --> Leave this as default. slPrint.Sort; // Sort Z-A --> Un-Comment this to get reverse Z-A sorting. //ReverseSort(slPrint); FName := ProgramPath + '-- Export.txt'; slPrint.SaveToFile(FName); AddMessage('>>> Saving list to ' + FName); slPrint.Free; Result := 1; End; End. @ Pikachu ... I mean Jonvandam, The filter seems pretty straightforward. Are you looking for certain strings in EditorID? - Uncheck the headers of all options you do not want. - Check the option you want: If you want to filter by EditorID: go to Editor ID contains, check it and type the word of your choice, like Axe in the box, then click Filter. If you want to filter by Full Name, goto Name contains, and repeat the above, etc. - After filtering, your list will shrink to include only your filtered records. Any change you do should only affect them. At least that's how I use it :D Edited October 14, 2013 by Treplos Link to comment Share on other sites More sharing options...
Recommended Posts