Aller au contenu

Photo

What's the formula for calculating item cost?


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
BCH

BCH
  • Members
  • 86 messages
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.

#2
OldTimeRadio

OldTimeRadio
  • Members
  • 1 400 messages
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.

#3
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
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 .


#4
BCH

BCH
  • Members
  • 86 messages
Thanks, both! I see now several places where my search attempt failed. :-)