0 of 0

File information

Last updated

Original upload

Created by

JN52

Uploaded by

JN52

Virus scan

Safe to use

Tags for this mod

7 comments

  1. yakuzadeso
    yakuzadeso
    • premium
    • 484 kudos
    Hey JN52, nice mod! I'm adding it in Trade with Withers' description. Btw I took a look at the code to see how you're removing items from Withers because you figured out a fix for the modded items. As far as I can tell the IterateInventory function returns all the items in Withers inventory that you then get with the event listener and remove them right?
    1. JN52
      JN52
      • member
      • 1 kudos
      Thanks! And yes, IterateInventory takes in three parameters: the entity guid, an arbitrary event name (string), and an arbitrary completion event name (also string). Iterate inventory will trigger an "EntityEvent" for each item in the inventory, and the event has an item id and a name associated with it (the one you gave it in the second param). You can then use that information to set up a listener that will remove items by the item ID each time it receives an event that matches the name you specified. Since EntityEvents are a sort of generic event, you have to add an if statement that checks whether the entityevent you're looking at is one coming from your iterateinventory call or not. I'm not exactly sure how the completion event works, either it fires when all of the other events have been fired, or it fires when all the other events have been caught by a listener (most likely the former, as I'm not sure how it would know if an event it sent out had been handled. the latter would be nice though, lol). Either way I used the completion event to determine when I should add items back to withers' inventory
    2. yakuzadeso
      yakuzadeso
      • premium
      • 484 kudos
      That's nice! Good job! Def a whole lot easier to remove items from his inventory this way *and actually better since you can get every item without the need of a list. I remember seeing the Iterate function in the discord server when I was developing the mod but couldn't figure out how to use it at the time, and then forgot it ever existed lol.
  2. Paramonov95
    Paramonov95
    • premium
    • 178 kudos
    Sick mod dude! Btw, I'm not They, I'm He. 
    1. JN52
      JN52
      • member
      • 1 kudos
      Thanks, and noted!
  3. TitoVespasianus
    TitoVespasianus
    • member
    • 10 kudos
    This is useful because the Ancient mods items randomly drop?
    1. JN52
      JN52
      • member
      • 1 kudos
      If you use Paramonov's Randomized Equipment Loot mod (https://www.nexusmods.com/baldursgate3/mods/6326) along with his item mods with the "Roleplay" versions instead of the "Cheat versions", they will drop randomly. Additionally, since Withers' does not use loot tables in "Trade With Withers", this adds the items to his possible stock