Jump to content

Working With Items From ESL Mods And SKSE


Recommended Posts

So I'm finding that some script functions (SKSE ones) don't work correctly on items originating from a mod with compacted form IDs. Specifically the SetItemMaxCharge(), SetEnchantmentValue(), and the charges portion of SetEnchantment() do not work on items from an ESL mod that have a charge specified already. The item always keeps its default charge value. Checking the charge value with a script will return the value it was supposed to be set to, but when used the charges are at the default value.

 

Example: An item has 500 charge as it's default value. The script is used to increase that to 3000. When checked with GetItemMaxCharge() it will return 3000, but when you equip it and check "GetAv RightItemCharge" via the console it will still return 500. I've found this to be the case with all items added by ESL flagged mods.

 

My questions are:

Does anyone know a direct way around this? Is there maybe a way to force the item to remove its default charge value with a script (other than those above)?

 

Does anyone know a way that a script can at least identify that an item originates from an ESL mod? This way I could at least make a workaround.

 

Any answers would be greatly appreciated!

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...