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; I been wondering on the "X_sell" part how the calculation is done so I can fix some of my traders ...
| 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 |
|
#41
| ||||
| ||||
| I been wondering on the "X_sell" part how the calculation is done so I can fix some of my traders selling stuff at base price. 5,7 equals what? Last edited by mrchris; June 27th, 2008 at 03:36 PM.. |
| Remove advertisements | |
| |
| |
|
#42
| ||||
| ||||
| 5,7 == (5+7) / 2 == 6 If you want him to sell at base brice, use 1,1 . |
|
#43
| ||||
| ||||
| ok, i just started to make a new trader file for the new trader, i copied the barman.ltx, so that saves my serious typwork, but now comes my question: i changed the line Quote:
Quote:
Quote:
i think that the sell and buy condition can remain the same |
|
#44
| ||||
| ||||
| Quote:
You could put something like this into a file like gamedata\config\scripts\ros_trader.ltx: Code: [smart_terrains] none = true [logic] active = remark combat_ignore = combat_ignore trade = misc\trade_YOURTRADER.ltx [remark] ;target = actor anim = guard no_move = true combat_ignore_cond = always [combat_ignore] Code: [rostok_trader]:stalker character_profile = ros_trader visual = actors\...YOURMESH.ogf corpse_visual = actors\..THESAME.ogf immunities_sect = stalker_immunities custom_data = scripts\ros_trader.ltx Code: <specific_character id="ros_trader" no_random = "1">
<name>pri_trader_name</name>
<icon>ui_npc_u_stalker_bandit_veteran</icon>
<map_icon x="0" y="0"></map_icon>
<bio>pri_trader_bio</bio>
<class>ros_trader</class>
<community>trader</community>
<money min="100000" max="110000" infinitive="1"></money>
<rank>700</rank>
<reputation>50</reputation>
<visual>actors\oblivion\stalker_pripyat_trader</visual>
<snd_config>characters_voice\human_01\stalker\</snd_config>
<crouch_type>-1</crouch_type>
<supplies>
[spawn] \n
stalker_outfit \n
[logic]
trade = misc\trade_kanyhalos.ltx
inv_max_weight = 10000000
</supplies>
#include "gameplay\character_dialogs.xml"
</specific_character>
|
|
#45
| ||||
| ||||
| woow useless post ![]() no "end" needed in the ros_trader script? Last edited by Abandonator; June 27th, 2008 at 05:32 PM.. |
|
#46
| ||||
| ||||
| That's no script boy, it's ltx. ![]() There is another script folder in config and OF COURSE it doesn't contain scripts, but ltx'. |
|
#47
| ||||
| ||||
oh kay, lol PWNDwell i'm going to work further on it ^^ |
|
#48
| ||||
| ||||
| Is there a way to adjust global pricing. I mean so you make all traders buy and sell at fairer prices because frankly no one not even a total moron would sell a HK MP5 for 21 ru. It just wouldn't happen even if it was broke the parts alone are worth more. I would like to balance up prices with out editing every line of every trader. thanks in advance.
__________________ высвобождение через социалистический виток |
|
#49
| ||||
| ||||
| Quote:
![]() Recently there was an attempt to integrate a multiplier that changes the prices dynamically by rank, but I think it didn't work out. I can't find the thread anymore. |
|
#50
| |||
| |||
| Any way to fatten an NPC's purse in a current game? I'm having a post edit issue, I didn't anticipate. I wanted some quick cash, so I modified the base price of the Caffeine Drink, and use them like high priced artifacts. It worked fantastically until the Sid and the professor started stating "NPC does not have enough Money." when I try to buy or sell. All the other traders are fine, even after attempting to bankrupt them to TS. Their affinity to the PC changes the ratio's a little, so I copied the duty trader's ratio's, and set their purses higher keeping them infinite, which I believe will fix this issue in future games (and incidentally, anyone know what happens if you place a value inside the <money></money> tag?). Is it possible I sold enough energy drink to drive their infinite purse into an infinitely negative value? Is there a way to reset their base RU in a current game? Or to have them outright re-spawn? I've waited quite a while and traveled between the two, and still NPC does not have enough money for me to purchase item's from them. thanks in advance. |
![]() |
| Bookmarks |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | Rate This Thread |
| |
All times are GMT -7.








oh kay, lol PWND
высвобождение через социалистический виток 




Linear Mode
