Jump to content


Photo

Unlevel leveled lists using at-quickchange


  • Please log in to reply
4 replies to this topic

#1 dreadflopp

dreadflopp

    Dragonborn

  • Pack Authors
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 1,213 posts

Posted 16 January 2017 - 12:51 PM

I've been trying to unlevel the leveled lists using at-quickchange by setting all levels to 1. I've been unsuccessful, is this possible and if so how?
  • 0

#2 Mator

Mator

    Thane

  • Mod Authors
  • PipPipPipPipPipPip
  • 463 posts

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.

  • 0

#3 dreadflopp

dreadflopp

    Dragonborn

  • Pack Authors
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 1,213 posts

Posted 16 January 2017 - 03:33 PM

Thanks Mator, you're the best! Saved me a lot of time!


  • 0

#4 dunc001

dunc001

    Thane

  • Members
  • PipPipPipPipPipPip
  • 436 posts

Posted 17 January 2017 - 06:57 AM

Out of interest what is your thinking behind delevelling everything in this manner?


  • 0

#5 dreadflopp

dreadflopp

    Dragonborn

  • Pack Authors
  • PipPipPipPipPipPipPipPipPipPipPipPip
  • 1,213 posts

Posted 17 January 2017 - 09:00 AM

I'm removing most high level items from the leveled list, similar like morrowloot does. I'm leaving some lists, like merchants, untouched. I'm then adding a copy of the original list as a new leveled list and adds it as a sublist to the list that had high level loot removed. This way the chance of getting high level loot is greatly reduced without cluttering the original lists with copies of iron and steel entries. Dragonbone items are completely removed from my new sublists, daedric are left in some lists with the chance of finding it greatly reduced. Finally I'm probably going to delevel everything, add some skill requirements for using weapons and armours and lower the global chance of finding items. What functions I'll incorporate depends on if it's easy to do and if one might just as well use other mods to reach the same result. I'll release it on Nexus or Dropbox for anyone to use however they like.

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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users