Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#515876 10/07/14 10:18 PM
Joined: Jun 2014
P
member
OP Offline
member
P
Joined: Jun 2014
Has anyone had any luck in determining if we can control the vendor-stock refresh rate or is it hard-coded to be once per level?

Joined: Jul 2014
U
stranger
Offline
stranger
U
Joined: Jul 2014
while I am not doing any modding myself, I enjoy looking through the files to see how things work. that being said..

story/rawfiles/goals/trade.txt

has this bit

Code
PROC
GenTradeItems((CHARACTER)_Player,(CHARACTER)_Trader)
AND
NOT DB_TraderGeneratedTreasureForLevel(_Trader,_)
THEN
DB_TraderGeneratedTreasureForLevel(_Trader,0);


it seems more than reasonable to assume you can rig something up to restock merchants. however as I said, I haven't done any modding so it may be harder than it seems.

Joined: Jun 2014
journeyman
Offline
journeyman
Joined: Jun 2014
Interesting, if you delete the AND NOT line it should restock each time you check it.

Joined: Jun 2014
P
member
OP Offline
member
P
Joined: Jun 2014
Well, depends. Does it clear it or keep adding? It will take some time to investigate each of the PROC and determine the safest way to introduce a timer.

Joined: Aug 2009
journeyman
Offline
journeyman
Joined: Aug 2009
Has anyone created a mod to reset vendor stocks every 10 minutes now or still no luck?

Joined: Oct 2014
B
enthusiast
Offline
enthusiast
B
Joined: Oct 2014
The mod I'm making restocks vendors every time you talk to them. The script was really short and easy, should be easy to mod main to do that if someone were so inclined.

Modding main and sorting through other people's code isn't really my cup of tea though, and a mod like this would be best served along with multiple other tweaks, not by itself.



Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5