Tutorial: How to edit the trader files
This is a discussion on Tutorial: How to edit the trader files within the S.T.A.L.K.E.R. SoC Modding, Mapping and Editing forums, part of the S.T.A.L.K.E.R. Shadow of Chernobyl category; Many people ask how to add stuff to the trader, change prices or they have some other reason to ask ...
| S.T.A.L.K.E.R. SoC Modding, Mapping and Editing Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot! |
![]() |
| | LinkBack | Thread Tools | Rating: | Display Modes |
|
#1
| ||||
| ||||
| Many people ask how to add stuff to the trader, change prices or they have some other reason to ask for the trader files. Now this post will explain exactly how the trader files work. Note: If you want to learn more about basic modding, please read the Basic Modding with Playable Examples thread, where many stuff is explained. Now for the trader files... The files can be found in \gamedata\config\misc . There is a file for every trader: Quote:
Part 1 - [trader] The info portions that control the changes Spoiler: Part 2 - [trader_generic_buy] What the trader buys from you, for how much Spoiler: Part 3 - [supplies_start] What the trader has to offer Spoiler: Part 4 - [trader_start_sell] What the trader sells Spoiler: Important: If you want to add something that is already in the file (but has ;NO TRADE behind it maybe), then you have to edit the line instead of adding the same item again. Don't make duplicates in the same section! Note: All price calculations are shown for items which are 0% damaged. If they are damaged, they price will be reduced of course. Quest items: If you want to sell or buy quest items, you have to set their quest item status to false. Quote:
---- Special thanks to EggChen, for providing me with the most important information! Also thanks to Kanyhalos for explaining the quest item issue. Last edited by Atrocious; May 13th, 2008 at 05:27 PM.. |
| Remove advertisements | |
| |
| |
|
#2
| ||||
| ||||
| Another thing - not directly related to trader files: If you just want to get yourself some equipment when the game starts, you don't have to edit the trader files and mess with the prices. You can simply change what Wolf gives you after your first conversation with him. What he gives to you is defined in a script file - namely gamedata\scripts\escape_dialog.script Open that file and search for "give_weapon". You should land at Quote:
Quote:
If you want to give yourself some money in the beginning, you can use the same script. Change it like this: Quote:
|
|
#3
| ||||
| ||||
| Another general modding tip: If you can't find one of the files you want to edit, then the mods you are currently using did not edit that file. You would have to extract the file from your database files. Here's a post from Jarvis explaining it. I edited it a bit. Quote:
|
|
#4
| ||||
| ||||
| Awesome mate, it's precisely what I need!! |
|
#5
| ||||
| ||||
| So for the trader to buy something off me for 100% of the base price, I would do this? Code: [barman_generic_buy] ... wpn_g36 = 1, 1 |
|
#6
| ||||
| ||||
| It is 100% of the base price - but I bet he is not selling it for 100% of the base price, but for something like 400%. Check under [barman_start_sell]. |
|
#7
| ||||
| ||||
| By '[barman_start_sell]' do you assume I'm at the start of the game? I'm actually after the brain scorcher, so should I look at [barman_after_brain_sell] ? |
|
#8
| ||||
| ||||
| OK, i've edited the files, but I've got a little problem. When I sell my SS190 rounds, they don't sell in even quantities. When you double click to sell them in the trade, they used to go up in even number (30 intervals IIRC). Now they seen to go up in random intervals. I hope you understand what I'm trying to say ![]() Here are the changes I've made: Code: [barman_generic_buy] ammo_5.56x45_ss190 = 1, 1; buys for 100% of base price [supplies_after_brain] ... ammo_5.56x45_ss190 = 15, 1; 15 boxes, 100% chance [barman_after_brain_sell] ... ammo_5.56x45_ss190 = 1, 1; sells for 100% of base price |
|
#9
| ||||
| ||||
| OK, yeah I have a problem selling SS190 ammo to barman. When I first double click the ammo to sell him, 5 rounds go into the trade box. Double click again, the quantity changes to 35 (increment of 30). Double click a third time, it goes to 49 (increment of 14). Double click a fifth time it goes to 61 (increment of 12). Sixth time, it goes to 70 (increment of 9). Each double click after that, the increment is always 9. Is this meant to happen, or have broken something? |
|
#10
| ||||
| ||||
| Hey Amraam, (Nice name by the way, is that after the air-to-air missile?) That problem is not to do with your changes to the trader files, it is a game glitch. Did you happen to get all that ammo from corpses? What happen is if you loot 10 rounds, it is 10 rounds in one box, and the traders pay you the price for one box!! So it is a bit of an exploit.... There is a script that fixes this and "merges" looted ammo into boxes of 30, or 20 depending on the ammo. It is called dunin_ammo.script.... just place it in your scripts folder.... All credit to Dunin |
![]() |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
All times are GMT -7.









Linear Mode
