Author Topic: What's the formula for calculating item cost?  (Read 375 times)

Legacy_BCH

  • Full Member
  • ***
  • Posts: 160
  • Karma: +0/-0
What's the formula for calculating item cost?
« on: March 19, 2012, 02:47:47 pm »


               Is there an explanation of how item cost is derived online somewhere?  If so, my search skills are failing me.

I've looked into itempropdef.2da, iprp_costtable.2da, and subtables like iprp_meleecost, but that doesn't paint a whole picture for me.

In particular, I've seen that having more properties on an item makes each of those properties (effectively) more expensive, and cost can vary based on the inventory slot of the item (a belt with Haste is cheaper than boots with Haste).

Any help you can offer is appreciated.
               
               

               
            

Legacy_OldTimeRadio

  • Hero Member
  • *****
  • Posts: 2307
  • Karma: +0/-0
What's the formula for calculating item cost?
« Reply #1 on: March 19, 2012, 03:44:01 pm »


               You should really crosspost your request to the scripting forum.  The folks there are more likely to be able to help you find an answer.  You can also continue your research using the NWN Omnibus, which can be downloaded from the NWVault.  If you do, be sure to view the tutorial video.  The NWN Omnibus contains a ton of material you can search against all at once, including offline copies of several of the old Bioware forums.  For the kind of information you're looking for, it's very useful.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
What's the formula for calculating item cost?
« Reply #2 on: March 19, 2012, 05:33:38 pm »


               ItemCost = [BaseCost + 1000*(Multiplier^2 - NegMultiplier^2) + SpellCosts]*MaxStack*BaseMult + AdditionalCost

http://social.biowar...6284320#6285176


Umm Looks like Im missing part of the formula in the thread. Ill try and correct it tonight.

EDIT:  Ok the only thing missing off the formula was the AdditionalCost,  It was not that important to the discution in the other thread.
               
               

               


                     Modifié par Lightfoot8, 19 mars 2012 - 08:05 .
                     
                  


            

Legacy_BCH

  • Full Member
  • ***
  • Posts: 160
  • Karma: +0/-0
What's the formula for calculating item cost?
« Reply #3 on: March 19, 2012, 08:14:22 pm »


               Thanks, both!  I see now several places where my search attempt failed. :-)