Unlevel leveled lists using at-quickchange
Posted 16 January 2017 - 12:51 PM
Posted 16 January 2017 - 01:58 PM
QuickChange can't do this I don't think. You need a specific script which will loop through the leveled lists.
unit UserScript; function Process(e: IInterface): Integer; var entries, entry: IInterface; i: Integer; begin if Signature(e) <> 'LVLI' then exit; entries := ElementByPath(e, 'Leveled List Entries'); for i := 0 to Pred(ElementCount(entries)) do begin entry := ElementByIndex(entries, i); SetElementEditValues(entry, 'LVLO\Level', '1'); end; end; end.
I think that should do the trick. Will test...
EDIT: Tweaked and working.
Edited by Mator, 16 January 2017 - 02:01 PM.
Posted 16 January 2017 - 03:33 PM
Thanks Mator, you're the best! Saved me a lot of time!
Posted 17 January 2017 - 06:57 AM
Out of interest what is your thinking behind delevelling everything in this manner?
Posted 17 January 2017 - 09:00 AM
My motivation is doing something like YASH or Morrowloot but very light weight and basic. I'm sacrificing functionality to make it as conflict free as possible. Hopefully a bashed patch will solve all conflicts.
Sent from my Nexus 6P using Tapatalk
Edited by dreadflopp, 17 January 2017 - 09:02 AM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users