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

Go Back   Soldak Entertainment Forums > Din's Curse > Din's Curse modding
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 02-07-2012, 02:54 AM
desophos's Avatar
desophos desophos is offline
Expert
 
Join Date: Feb 2012
Posts: 65
Default IdentifyTime and OpenTime

I'd like to speed up opening and identifying, as I feel that the high maximum time blocks up the game. I found these parms in GameSystem in systems.gdb:
Code:
// Item identify stuff

MinIdentifyTime		1.0
BaseIdentifyTime		4.0
IdentifyTimeIncreasePerLevel	1.0
IdentifyTimeDecreasePerLevel	0.25

// Chest open stuff

MinChestOpenTime		1.0
BaseChestOpenTime		2.5
ChestOpenTimeIncreasePerLevel	1.0
ChestOpenTimeDecreasePerLevel	0.25
How exactly do these work? How are the times scaled? There is clearly some level-scaling system at work here, but I don't know how it works.
Reply With Quote
  #2  
Old 02-07-2012, 10:48 AM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,442
Default

Here's basically how it works:

Code:
if ( itemLevel > userLevel )
{
	identifyTime = baseIdentifyTime + ( itemLevel - userLevel ) * identifyTimeIncreasePerLevel
}
else
{
	identifyTime = baseIdentifyTime - ( userLevel - itemLevel ) * identifyTimeDecreasePerLevel
}

if ( identifyTime < minIdentifyTime )
	identifyTime = minIdentifyTime
__________________
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
  #3  
Old 02-07-2012, 02:48 PM
desophos's Avatar
desophos desophos is offline
Expert
 
Join Date: Feb 2012
Posts: 65
Default

Thank you! That clears it up and I have it working now. I really appreciate that you take time to read the forums and respond to posts even during heavy development on Drox Operative (which looks awesome!).
Reply With Quote
  #4  
Old 02-07-2012, 03:54 PM
Shadow's Avatar
Shadow Shadow is offline
Super Moderator
 
Join Date: Jun 2007
Location: Dallas, TX
Posts: 9,442
Default

Quote:
Originally Posted by desophos View Post
Thank you! That clears it up and I have it working now. I really appreciate that you take time to read the forums and respond to posts even during heavy development on Drox Operative (which looks awesome!).
It's easy to fall behind, but I try to be helpful.
__________________
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 11:26 AM.


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