deli43 said:Yeni bir sahneye tüccar ekledim ama envanteri boş o envanteri nasıl doldurabilirim ? Envanterine eşya at demeyin.
Forumda araştırdım bir tane konu buldum ama sorun çözülememiş sanırım.
Sahne olarak ekledin ama troop olarak eklemedin module_troops'tan ekleyebilirsin hani varya townların at tücarı felan oralardan ekleyebiliyorsun.
["town_1_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(1),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2],
["town_2_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(2),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2],
["town_3_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(3),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2],
Dracheon said:Onun için module_scripts gerekiyor galiba.
module_scripts'de arat tüccarları kodlarına bak.
deli43 said:Sahne olarak ekledin ama troop olarak eklemedin module_troops'tan ekleyebilirsin hani varya townların at tücarı felan oralardan ekleyebiliyorsun.
module_troops'a bu şekilde ekledim diyaloglar falan değişmesin diye ama envanterleri boş
Code:["town_1_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(1),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], ["town_2_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(2),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2], ["town_3_merchant", "Tuccar","{!}Tuccar", tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(3),0, fac_commoners, [itm_coarse_tunic, itm_leather_boots ],def_attrib|level(2),wp(20),knows_inventory_management_10, man_face_young_1, man_face_older_2],
["burayaıdsiniyaz_merchant","Merchant","{!}Merchant",tf_female|tf_hero|tf_randomize_face|tf_is_merchant, scn_sahneniyaz|entry(9),0, fac_commoners, [itm_sarranid_common_dress_b, itm_sarranid_boots_a, itm_sarranid_felt_head_cloth_b ],def_attrib|level(2),wp(20),knows_inventory_management_10, woman_face_1, woman_face_2],
kervansaray_merchants_begin = "trp_kervansaray_merchant"
kervansaray_merchants_end = "trp_town_1_horse_merchant"
# script_refresh_center_kervansaray_merchant
("refresh_center_kervansaray_merchant",
[
(reset_item_probabilities, 100),
(set_merchandise_modifier_quality, 150),
(try_for_range, ":cur_merchant", kervansaray_merchants_begin, kervansaray_merchants_end),
(store_sub, ":cur_town", ":cur_merchant", kervansaray_merchants_begin),
(val_add, ":cur_town", towns_begin),
(troop_clear_inventory, ":cur_merchant"),
(party_get_slot, ":cur_faction", ":cur_town", slot_center_original_faction),
(troop_add_merchandise_with_faction, ":cur_merchant", ":cur_faction", itp_type_goods, 16),
(troop_ensure_inventory_space, ":cur_merchant", merchant_inventory_space),
(troop_sort_inventory, ":cur_merchant"),
(store_troop_gold, reg6, ":cur_merchant"),
(lt, reg6, 1000),
(store_random_in_range, ":new_gold", 250, 500),
(call_script, "script_troop_add_gold", ":cur_merchant", ":new_gold"),
(end_try),
]),
# Kervansaray Merchants
["kervansaray_merchant","Merchant","{!}Merchant",tf_hero|tf_randomize_face|tf_is_merchant, scn_kervansaray|entry(1),0, fac_commoners,[itm_linen_tunic, itm_sarranid_boots_a],def_attrib|level(5),wp(20),knows_inventory_management_10, mercenary_face_1, mercenary_face_2],
#Kervansaray Merchants
[anyone ,"start", [(is_between,"$g_talk_troop",kervansaray_merchants_begin,kervansaray_merchants_end),
(party_slot_eq, "$current_town", slot_town_lord, "trp_player")],
"{My lord/my lady}, you honour my humble shop with your presence.", "kervansaray_merchants_talk",[]],
[anyone ,"start", [(is_between,"$g_talk_troop",kervansaray_merchants_begin,kervansaray_merchants_end)],
"Welcome {sir/madam}. What can I do for you?", "kervansaray_merchants_talk",[]],
# [trp_salt_mine_merchant,"start", [], "Hello.", "kervansaray_merchants_talk",[]],
# [anyone,"merchant_begin", [], " What can I do for you?", "kervansaray_merchants_talk",[]],
[anyone,"kervansaray_merchants_pretalk", [], "Anything else?", "kervansaray_merchants_talk",[]],
[anyone|plyr,"kervansaray_merchants_talk", [], "I want to buy a few items... and perhaps sell some.", "goods_trade_requested",[]],
[anyone,"goods_trade_requested", [], "Sure, sure... Here, have a look at my stock...", "goods_trade_completed",[[change_screen_trade]]],
[anyone,"goods_trade_completed", [], "Anything else?", "kervansaray_merchants_talk",[]],
[anyone|plyr,"kervansaray_merchants_talk", [], "What goods should I buy here to trade with other towns?", "trade_info_request",[]],
[anyone|plyr,"kervansaray_merchants_talk", [], "Nothing. Thanks.", "close_window",[]],
[anyone,"trade_info_request", [], "That information can be best obtained from caravan masters\
and travelling merchants. If you want I can send you to the district where foreign merchants stay at when they come to the town.\
If you spend some time there and listen to the talk,\
you can learn a lot about what to buy and where to sell it.", "trade_info_request_2",[]],
[anyone|plyr,"trade_info_request_2", [], "Then I'll go and spend some time with these merchants.", "close_window",
[
(jump_to_menu,"mnu_town_trade_assessment_begin"),
(finish_mission),
]],
[anyone|plyr,"trade_info_request_2", [], "I have no time for this right now.", "kervansaray_merchants_pretalk",[]],
https://Iron Chieftain community.taleworlds.com/index.php?topic=352831.0