Soldak Home   Drox Operative   Din's Curse   Depths of Peril   Zombasite  

Go Back   Soldak Entertainment Forums > Depths of Peril > Depths of Peril modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 11-05-2011, 07:34 AM
accelerator accelerator is offline
Amateur
 
Join Date: Oct 2011
Posts: 9
Default How to change prices?

Specifically I'm looking to bring food prices down to a sustainable use level so I can get a more flowing game going instead of the lifestone heal stop/start method.

If there is no database entry I can modify to do this, the alternative I've found would be to adjust the spawn chance entry for food. I don't fully understand the spawn rules but if I understand this right, food would come under common loot so it would be:

a) negatively affected by magic find, (ie less chance of common loot = less chance for food)
b) would eat into the % of other common loot dropped (not such a bad thing)

Secondly, does the default chance of 4.0 indicate that 4% of all common drops would be food?

Last edited by accelerator : 11-05-2011 at 04:30 PM.
Reply With Quote
  #2  
Old 11-06-2011, 12:53 PM
accelerator accelerator is offline
Amateur
 
Join Date: Oct 2011
Posts: 9
Default

Well upping the value to 20 made just enough of a difference that I only occasionally need to top up food (usually after an epic battle), have rarely had to sell it off.
Reply With Quote
  #3  
Old 11-07-2011, 04:47 PM
Shadow's Avatar
Shadow Shadow is online now
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,444
Default

I think the value you want to change is ValueEachPointHealthChangeOverTime in systems.gdb.

The 4.0 is not a percent. It is a relative value compared to all of the other potential spawn values. In this case, it is four times more likely to spawn than something with a value of 1.0.
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Patreon
Reply With Quote
  #4  
Old 11-07-2011, 05:24 PM
Bluddy Bluddy is offline
Legend
 
Join Date: Jan 2011
Posts: 2,060
Default

While we're on this topic, do

IntervalForPriceIncrease 5.0
PriceIncreaseEachInterval 0.4

determine inflation? If so, what interval is 5.0? 5 minutes?

EDIT: nevermind. Just did a search and found that you already explained it to me in the past, I just didn't get it back then. Retroactive thanks.

Last edited by Bluddy : 11-07-2011 at 05:32 PM.
Reply With Quote
  #5  
Old 11-07-2011, 06:30 PM
Bluddy Bluddy is offline
Legend
 
Join Date: Jan 2011
Posts: 2,060
Default

Actually, I'm trying to do the calculation and it's not working out for some reason. I'm doing it in DC.

At level 17, food gives me 265 health over time. Multiplied by 0.27 per point gives 77.3. Now to add inflation, I divide by 5 = 15, and multiply that by 0.4 to get another 6 copper pieces. That gives me a total of 83 copper pieces, but the game wants to charge me 126. What did I do wrong?
Reply With Quote
  #6  
Old 11-07-2011, 07:07 PM
Shadow's Avatar
Shadow Shadow is online now
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,444
Default

The formula looks like this:
intervals = flatValue / intervalForPriceIncrease

finalValue = flatValue * ( 1.0f + ( ( intervals + 1.0 ) * priceIncreaseEachInterval * ( priceIncreaseEachInterval / intervalForPriceIncrease ) ) )
__________________
Steven Peeler
Designer/programmer
Depths of Peril, Kivi's Underworld, Din's Curse, Drox Operative, Zombasite, Din's Legacy, & Drox Operative 2
Patreon
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:45 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright 2007 - 2019 Soldak Entertainment, Inc.