 |
 |
 |
|
 |
 |
 |
|
 |
 |
Need a Refresh on some params... |
|
|
|
|
17:44:30 13 March 2012 |
|
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™
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
18:14:27 13 March 2012 |
|
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.
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
21:14:59 13 March 2012 |
|
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

http://www.moddb.com/members/gannebamm
_________________
and my beloved ones:::
"Why do They call it friendly fire? It's stupid fire, and The ones who do it are not your friends!"
--From "Misremembering STALKER: The Conversations" by NatVac
">> I'm not a LUA programmer but I have notions in POO (I don't know how to say it in english, so I mean "object language"
It's OOP (object-oriented programming), crucifist, but it can be poo in English, too. It depends on the programmer."
- Natvac
|
22:19:04 13 March 2012 |
|
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?
- Никто не любит долго подпись ...
Мои Yчeбники: http://tinyurl.com/ct66avh
*My tutorials
Дожить до забыть...
"Не заключенных, Никакого милосердия!"
Изменения:
- MISERY Co-dev
- http://www.moddb.com/mods/stalker-misery/
- My mods:
- http://www.moddb.com/mods/stalker-nameless
- http://www.moddb.com/mods/photo-realistic-zone-2
- http://www.moddb.com/mods/stalker-particle-paradise
- http://www.moddb.com/mods/stalker-particle-paradise-3
- Modding Group: True zone© {{PROJECTS}} - Head
- http://www.moddb.com/company/true-zone
"Im not a noob, im a retard, there's a difference!" - Jamie1992
"Modding...Not cheating, just surviving" - oblakoder
Oh the irony...
|
01:48:05 14 March 2012 |
|
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.
IMPORTANT! Fetching error logs! - http://sdk.stalker-game.com/en/index.php?title=Crash-log
My first STALKER story: The Job (Updated 11/6/11)
https://www.gsc-game.com/index.php?t=community&s=forums&s_game_type=xr&thm_page=1&thm_id=19109&sec_id=5
|
|
1 | All Messages |
|
|
|
» » |
|
All short dates are in Month-Day-Year format. |
 |
|
 |
|
|
|
 |
 |
 |