Jump to content

[LE] Getting Buy/Sell Modifiers


Hufflet

Recommended Posts

I am trying to make a mod that will keep track of all the items the player has bought/sold. The best prices will be displayed in a book that is always on the player. The idea is to gather player information for mods like Trade Routes, so the player can see where they were able to get the best prices.

Right now I wait for the barter menu to open, then track any added/removed items. I can get their base prices, which technically is enough for trade routes (I think that mod just dynamically changes base prices, so good enough). But I also want to account for mods like Trade and Barter, which add perks that modify the buy and sell prices of items. And that is where I get stuck.

 

I know that perks like Haggling do "modify buy prices" or "modify sell prices". But I cannot figure out what variable those actually change. The creation kit suggests that I should look at the SpeechcraftMod Actor value, but that does not seem to change at all. It stays at 0, even after enabling the Haggling perk(s). The other 2 actor values seem to work fine (Speechcraft is just the current speech level, SpeechcraftPowerMod changes when I drink a potion of haggling).

My thought is that there must be some other variable that these perks change. If I could find it, then I could calculate the merchant price from the base item price, and record the "paid-for" price in the book (ignoring enchantments, of course). If it was just the haggling perk, I could write something that would match the same conditions and set a value I know how to read. But I want this to work for any other modded perks that set price.

 

Any help towards this end is much appreciated!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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