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; Usually you don't have to leave the level. You can just quicksave/-load. Also, if only a few items like medkits ...
| 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 |
|
#71
| ||||
| ||||
| Usually you don't have to leave the level. You can just quicksave/-load. Also, if only a few items like medkits and ammo show up, but no weapons, then the trader file is probably broken. About the correctness of the formula I don't know. |
| Remove advertisements | |
| |
| |
|
#72
| ||||
| ||||
| No, the save/load did not work, but I was not editing the stock, just the formula for prices. It must be stored in the save game data. The formula that I posted about the purchase price (from another thread) seems to be correct, since the ".2, .8" I have means that a hostile Sakharov offering me about 25% of the value for my items (not 50%) is correct. Bartender was offering me more due to the fact that he is not hostile and his range for the same item is ".2, .5". |
|
#73
| ||||
| ||||
| I need some help with the buy and sell conditions at the top of the trader files. Specifically what does this mean exactly? {+bar_darklab_document_done} bar_after_darkvalley_sell I know that for barman this is the condition that must be met before the bar_after_darkvalley_sell portion of the file will be activated and used. What I need to know is why, when I add a modified version of that to my Ecologist's sell line, it does not work properly. {+bar_darklab_document_done} ecolog_after_darkvalley_sell This makes Sakharov act as if he is being attacked, and then somehow lets him phase though the window and out into the hallway of the mobile lab. I thought that it was a simple flag that means that as long as the darkvalley documents were returned to barkeep then this would be activated. Obviously I was wrong, and I can find no decent descriptions of how, or why. Is there another way trigger new buy&sell points along the main story, so that I can add some variety to my traders? Thanks! |
|
#74
| ||||
| ||||
| Quote:
![]() When traders act stupid, you have a syntax error in your trade file. Sell condition: sell_condition = {+yan_kill_brain_done} ecolog_after_brain_sell, ecolog_start_sell Translated (the stuff in brackets represents the meaning of the word in ltx configs): if ( { } ) info portion yan_kill_brain_done is given ( + ) then go to section (in this file - would probably even work with different files) ecolog_after_brain_sell else ( , ) go to section ecolog_start_sell. Example with a new section: sell_condition = {+yan_kill_brain_done} ecolog_after_brain_sell, {+bar_darklab_document_done} ecolog_after_darkvalley_sell, ecolog_start_sell So it's: if X16 done then ... else if X18 done then ... else default. Note that you have to create the whole new section ecolog_after_darkvalley_sell because it doesn't yet exist! |
|
#75
| ||||
| ||||
| Everyone thank Admiral for stickifying this Thank you sir. |
|
#76
| ||||
| ||||
| I just wanted to confirm that my reading of the logic behind the structure of the flags was correct. Thanks! |
|
#77
| ||||
| ||||
| Well I have just worked out that the equation for the Sell sections is [someone_sometime_sell] item_name = A, B where ((A+B)/2) * 100% = the price the trader will sell item_name for. It was that illogical multiplication that was confusing me. I just thought that I would spell it in case anyone else is having problems. Atro, I understood your explanation of A+B/2 = C% but I thought that C% was added not multiplied to the base price (100%). Cheers for the guide!
__________________ Every man for himself, only God takes care of everybody. Read the FAQ for OL, or... ![]() See my website for my latest mods for OL2.2 and CS. |
|
#78
| ||||
| ||||
| Ok I'm going to try this out.....on OL.....
__________________ SOC is awsome, its all about choice really, like the real ending. the real ending you choose is the real ending for you, regardless.....so there are no fake endings.. |
|
#79
| |||
| |||
| Could someone please take a look at this trader file here and tell me why the items iv modded doesnt show up after "fabric" ? I have no clue what could be wrong here. |
|
#80
| ||||
| ||||
| Can somebody upload a trader mod so traders sell EVERYTHING ? i MEAN INCLUDING QUEST ITEMS SUCH AS DOGTAILS,BLOODSUCKER JAWS, ARTIFACTS.. etc PLEASE ! thank you ! |
![]() |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
All times are GMT -7.







SOC is awsome, its all about choice really, like the real ending. the real ending you choose is the real ending for you, regardless.....so there are no fake endings..




Linear Mode
