Pocket Plane Group

Miscellany, Inc. => Infinity Engine Modding Q&A => Topic started by: Wounded_Lion on November 19, 2005, 09:30:57 PM

Title: Store Pricing
Post by: Wounded_Lion on November 19, 2005, 09:30:57 PM
Does anyone know the forumla by which Base Price, Sell Markup, Reputation, and Charisma determine item price?  I have experimented with the engine without success; the engine often generates prices that are non-integer multiples of the base price (example = 129.69696969696969697% markup)... yet all modifiers are integers... so how can this be?  I am skilled in algebra but not a mathmetics expert in general.  Many thanks for any enlightenment that you can provide.

a W.L.
Title: Re: Store Pricing
Post by: Wounded_Lion on November 22, 2005, 01:37:01 PM
So...  we all know that REPMODST.2DA determines percentage markup or markdown of the base price based on reputation...  right?  IESDP indicates that this file uses charisma to determine percentage markup or markdown, but the file name itself and the fact that there are 20 columns as opposed to 25 would seem to indicate that reputation is actually used.  So... the next question that I have is thus:  how does charisma affect item price?  There is an NPC reaction modifier file associated with charisma, but nothing I have found seems to control percentage markup or markdown based on charisma.

a W.L.
Title: Re: Store Pricing
Post by: Echon on November 22, 2005, 02:49:56 PM
CHRMODST.2DA (for BG:TotSC):

Code: [Select]
2DA V1.0
0
  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  17  18  19  20  21  22  23  24  25
1 0 0 0 0 0 0 0 0 0 0  0  0  0  0  0  -5 -10 -15 -20 -25 -25 -25 -25 -25 -25

-Echon
Title: Re: Store Pricing
Post by: Wounded_Lion on November 22, 2005, 03:48:34 PM
Hmm...  weird.  Either I missed this file somehow or my BGII installation does not include it for some reason...  Of course, I have made some stupid mistakes lately...   ;)  must be something in the water here.  I'll check this out later (I am away from home right now).  Thanks.

a W.L.