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; This should get stickied! Plz moderators, sticky this baby....

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!

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #21  
Old May 25th, 2008
puffdadder's Avatar
the really annoying Catholic
 
Join Date: May 12th, 2007
Location: in a happy state of mind. kind of
Posts: 462
Rep Power: 6
puffdadder has been known to help peoplepuffdadder has been known to help people
Default Re: Tutorial: How to edit the trader files

This should get stickied! Plz moderators, sticky this baby.
__________________
Signature removed. Check your private messages. Ignoring them won't do you any good.
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #22  
Old May 25th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

Could someone tell me how to edit the storyline quest rewards for say... the barkeep? Cuz when i go to config/misc/task_manager.ltx i can edit the rewards only for side quests, so it seems...
Reply With Quote
  #23  
Old May 26th, 2008
Atrocious's Avatar
Oblivion Lost supplier
Bloodsucker
 
Join Date: March 24th, 2008
Location: Germany
Posts: 1,438
Rep Power: 5
Atrocious should make some friends
Default Editing storyline rewards

To edit the storyline rewards, you need these files:
Quote:
\gamedata\scripts\
bar_dialogs.script
dialogs_military.script
dialogs_yantar.script
escape_dialog.script
garbage_dialogs.script
To find the reward you want to change, look through the file where the quest-giver is located and find the right function by its name. The names vary a lot, so I can't tell you what to look for exactly. You can either read through the whole file or you search for terms like "reward", "payment", "transfer", "give" and "send".

Example: When looking through \gamedata\scripts\bar_dialogs.script you should find these functions (beside other results):
Quote:
function give_agroprom_reward(first_speaker, second_speaker)
function give_darklab_reward(first_speaker, second_speaker)
function give_x16_reward(first_speaker, second_speaker)
function actor_transfer_research(first_speaker, second_speaker)
function enter_to_dolg(first_speaker, second_speaker)
[inactive]
function have_hunter_reward(first_speaker, second_speaker)
function barman_give_outfit(first_speaker, second_speaker)
function professor_for_resque(npc, actor)
function arena_give_reward(actor, npc)
From looking at the function names and their content you should know when the function is called during the storyline. Then you can edit the reward by changing the dialogs.relocate_item_section and /or dialogs.relocate_money or by adding new lines to the function. Look into the trader files if you don't know how an item is called in the scripts. Location and names of the trader files are described in post #1 of this thread.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #24  
Old May 26th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

Ok, thanku so very much for such a quick and thorough response.
Reply With Quote
  #25  
Old May 26th, 2008
Amraam's Avatar
I follow teh Moo!
Scientist
 
Join Date: April 29th, 2008
Location: Newcastle, UK
Posts: 741
Rep Power: 4
Amraam is a regular member
Send a message via MSN to Amraam Send a message via Skype™ to Amraam
Default Re: Tutorial: How to edit the trader files

Yup, another vote to have this stickied. Editing trader files is very popular.
Reply With Quote
  #26  
Old May 26th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

Yes, indeed, however... i just realized that this works only for editting the rewards, and not for adding new ones. See, what i wanna do is have the barman give me the (self-made) items outfit_cry_m1 and wpn_007_m1 after bringing him the docs from x18. Also, i wanna have him gimme the item wpn_pwr_m1 after bringing him the x16 docs. Could u tell me how to put this into a formula so i dont have to confuse myself? Iv been trying it for a while now... no dice.
Reply With Quote
  #27  
Old May 27th, 2008
Atrocious's Avatar
Oblivion Lost supplier
Bloodsucker
 
Join Date: March 24th, 2008
Location: Germany
Posts: 1,438
Rep Power: 5
Atrocious should make some friends
Default Re: Tutorial: How to edit the trader files

Quote:
Originally Posted by Da_Bl33darg View Post
Yes, indeed, however... i just realized that this works only for editting the rewards, and not for adding new ones. See, what i wanna do is have the barman give me the (self-made) items outfit_cry_m1 and wpn_007_m1 after bringing him the docs from x18. Also, i wanna have him gimme the item wpn_pwr_m1 after bringing him the x16 docs. Could u tell me how to put this into a formula so i dont have to confuse myself? Iv been trying it for a while now... no dice.
Example X18 (darklab) reward with your items:
Quote:
function give_darklab_reward(first_speaker, second_speaker)
dialogs.relocate_money(second_speaker, 10000, "in")
dialogs.relocate_item_section(second_speaker, "outfit_cry_m1", "in")
dialogs.relocate_item_section(second_speaker, "wpn_007_m1", "in")

end
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #28  
Old May 27th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

Thanku. Should this work in a load game? Or will i have to start a new one for this to go into effect?
Reply With Quote
  #29  
Old May 27th, 2008
Atrocious's Avatar
Oblivion Lost supplier
Bloodsucker
 
Join Date: March 24th, 2008
Location: Germany
Posts: 1,438
Rep Power: 5
Atrocious should make some friends
Default Re: Tutorial: How to edit the trader files

It works with your current game, unless you already received the mission reward.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #30  
Old May 27th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

Wahahaha, im such a noob. Gah; i put it in... and it doesnt work. Not only that, but he doesnt gimme the money for bringing him x16 docs. When i replaced the bar_dialogs.script with the original, he didnt gimme the money either!!! wtf!? Gah!!! what to do, plz?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7.