I found a plugin but I think it needs tweaking. Does the job tho! Final question, and I don't know if this is even possible without having to do it manually:
Code:
s(895,"Stormshroud Armor",{15056,15057,15058,21278,23073,30362,12966},1544) --Leather
s(-1266,"Stormshroud Armor (Recolor)",{6433,22409,29141,21458,21708},nil) --Leather
s(-166,"Stormshroud Armor (Recolor)",{29804,28051,10152,10150,10153,10149,10147,10145},nil) --Leather
s(-163,"Stormshroud Armor (Recolor)",{54727,8300,8296,8299,8301,8298,8293,8295},nil) --Leather
I am trying to place the 895 value to all pieces in a matching name/set:
Code:
s(895,"Stormshroud Armor",{15056,15057,15058,21278,23073,30362,12966},1544) --Leather; 895
s(-1266,"Stormshroud Armor (Recolor)",{6433,22409,29141,21458,21708},nil) --Leather; 895
s(-166,"Stormshroud Armor (Recolor)",{29804,28051,10152,10150,10153,10149,10147,10145},nil) --Leather; 895
s(-163,"Stormshroud Armor (Recolor)",{54727,8300,8296,8299,8301,8298,8293,8295},nil) --Leather; 895
Any tricks to simplify?
- - - Updated - - -
Originally Posted by
Phanx
Not sure if there's a pure regex solution (at least one you can drop into a search/replace dialog) but based on your example it looks like all the "base" sets have positive IDs and the "lookalike" sets have negative ones, so you could reduce the amount of copy/pasting you have to do by regex-ing the positive ID to the end, then just copying it to the ID-less lines below it.
True, Find+Select then Find All lines containing just a positive value s(####,"...) would work. Just need to capture the first set of numbers! Tried tinkering a bit and this is as far as I got with the expression:
This selects s(#### when all I need is the s(####
Using the select line feature would eliminate 708 lines to comment and leave 89 lines to comment!