ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Need a Refresh on some params...

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  17:44:30  13 March 2012
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
 

Message edited by:
LoNer1
03/13/2012 17:45:44
Messages: 1890
Need a Refresh on some params...

Hey guys, Lead of Particle Paradise here.

I need a refresh on some of the game's params, and i could not find the exact meaning of some in the wiki.

I'm trying to make the economy in stalker a PITA for the player, bottom line, hard.

But, when i opened the trader_xxx.ltx files i forgot what kind of meaning the params in there had...

I do know that
[trader]

is the kind of trader, so trader, barman etc. etc. and that
buy_condition = trader_generic_buy
sell_condition = {+esc_kill_bandits_quest_done} trader_after_fabric_sell, trader_start_sell
buy_supplies =  {+esc_kill_bandits_quest_done} supplies_after_fabric, supplies_start


are conditions and logic.

But, when it comes to the values behind the weapons and items in game, i'm a bit confused?

i thought that

af_fuzz_kolobok			= 1,	0.3



means, one kolobok in the traders inv. and the probability to spawn is 30/100 so 30%? or is that the price reduction?

and another thing is, how can i make prices 1 1/2 more expensive in the [trader_generic_buy] / [supplies_start] / [supplies_after_fabric] and [trader_start_sell] ? to make

af_fuzz_kolobok			= 1,	0.3


into

af_fuzz_kolobok			= 1,	1.25



?

-----------------------
Scripts

Another thing is, i want to lock traders door from a specific time till another specific time, but i dont know were to start? I know its in the logic, and i looked at it but i dont know how to set up the timer.

i want his door to be locked from 1 in the night till 6 in the morning. And possibly, when you want to open it you get a message saying:

"Automessage: Im sleeping now, come back later"

or the like...

Thanks for the time, and i hope i can add this all to the next patch of PPx 2.1.1.9x

Yours,
[PPx]L☢Ner1™
  17:58:51  13 March 2012
profilee-mailreply Message URLTo the Top
angrydog
Senior Resident
 

 
On forum: 09/01/2009
Messages: 3341
http://sdk.stalker-game.com/en/index.php?title=Editing_trader_files
  18:14:27  13 March 2012
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
Messages: 1890

---QUOTATION---
http://sdk.stalker-game.com/en/index.php?title=Editing_trader_files
---END QUOTATION---



Thanks, lol. But i have another question.

Can i add more trade sections to the trader, like

sell_condition = {+esc_kill_bandits_quest_done} trader_after_fabric_sell, trader_start_sell, {+gar_garbage_quest_here} trader_after_garbage, trader_start_sell



etc. etc.
  21:14:59  13 March 2012
profilee-mailreply Message URLTo the Top
gannebamm
has abondened XRay and uses Unity3D now
(Resident)

 

 
On forum: 05/02/2007
 

Message edited by:
gannebamm
03/13/2012 21:19:02
Messages: 1077

---QUOTATION---
http://sdk.stalker-game.com/en/index.php?title=Editing_trader_files

Thanks, lol. But i have another question.

Can i add more trade sections to the trader, like

sell_condition = {+esc_kill_bandits_quest_done} trader_after_fabric_sell, trader_start_sell, {+gar_garbage_quest_here} trader_after_garbage, trader_start_sell



etc. etc.
---END QUOTATION---


yes you could but you should set the conditions (see logic section on stalker wiki for syntax) properly:

sell_condition = {+gar_garbage_quest_here} trader_after_garbage, {+esc_kill_bandits_quest_done} trader_after_fabric_sell, trader_start_sell


{+gar_garbage_quest_here} means has infoportion "gar_garbage_quest_here", while {-gar_garbage_quest_here} would be read as "has not" the mentioned iportion. AFAIK the conditions are read from left to right, so if you set:

sell_condition = trader_start_sell, {+gar_garbage_quest_here} trader_after_garbage, {+esc_kill_bandits_quest_done} trader_after_fabric_sell


he would use trader_start_sell section since it is allways checked as true (= has no condition). As mentioned above you should read the logic section of stalker wiki to get more info about the syntax of conditions.

Its long time ago ive done something with logic therefore i would be very happy if somebody could verify my AFAIK infos.
gbamm

edit ::
And i think it isnt a good idea to implement the same condition/section pair twice in a section check:

sell_condition = ..., trader_start_sell, ..., trader_start_sell

  21:30:01  13 March 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
@gannebamm
Yep, I agree with your logic. Valid.
  22:19:04  13 March 2012
profilee-mailreply Message URLTo the Top
LoNer1
Настоящий Cталкер, Русская Версия
(Resident)

 

 
On forum: 10/23/2009
 

Message edited by:
LoNer1
03/13/2012 22:20:26
Messages: 1890
So Gbam, you mean that if i do:

sell_condition = trader_start_sell, {+esc_kill_bandits_quest_done} trader_after_fabric_sell, {+gar_garbage_quest_here} trader_after_garbage 


The trader will start with the start sell, than the escape one and than the garbage one?

And now were are at it, is it possible to bind the condition of a weapon to the sale of it too? like in CoP were a weapon with -70 and below wouldn't be bought by the trader?
  01:48:05  14 March 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
No, since the list is evaluated from left to right, it will evaluate trader_start_sell (default true), then trader_after_fabric_sell (true if we have inforportion esc_kill_bandits_quest_done), then trader_after_garbage (true if we have inforportion gar_garbage_quest_here)
Since the first condition (trader_start_sell) defaults to true, it will be the only section used for the whole game, since this is the first section returned, since it is the first true one. Sticking it at the end will result in it being returned only if all previous conditions fail (are false).
So you want to use this

sell_condition = {+gar_garbage_quest_here} trader_after_garbage, {+esc_kill_bandits_quest_done} trader_after_fabric_sell, trader_start_sell


Which reads as: has_info gar_garbage_quest_here? if true then return trader_after_garbage, else has_info esc_kill_bandits_quest_done}? if true then return trader_after_fabric_sell, else return trader_start_sell

Hopefully thats clear enough.
  04:50:44  14 March 2012
profilee-mailreply Message URLTo the Top
Lijenstina
Doom metal in the shade of the flying radiators
(Resident)

 

 
On forum: 07/23/2005
Messages: 1902
Section is switched when the condition in the {} returns false.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.