leprechaun
Marquis
Right, new problem. This trigger has always worked for me before, but for some reason it's just stopped without me editing it:
(fisheye made it for me. I understand how it works fine, but don't know what is wrong with it that it doesn't work. It simply doesn't fill Jabbara's inventory with anything. I go to him and his inventory is just empty.)
It gets to "jabbara_merchant_1" just fine, giving me the options like "Tell me about yourself", "Let me see your merchandise", etc, and when I click "Let me see your merchandise" that works too, and it goes to "jabbara_merchant_2", just fine. It then does the "change_screen_trade" just fine, and lets me trade with him, but his inventory is always blank. Ideas?
(fisheye made it for me. I understand how it works fine, but don't know what is wrong with it that it doesn't work. It simply doesn't fill Jabbara's inventory with anything. I go to him and his inventory is just empty.)
Code:
# Refresh Weapon AND Armor seller, Jabbara
(0.0, 0, 24.0, [], [
(reset_item_probabilities,100),
(set_merchandise_modifier_quality,120),
(assign, reg(2), "trp_jabbara"),
(troop_add_merchandise,reg(2),itp_type_body_armor,8),
(troop_add_merchandise,reg(2),itp_type_head_armor,8),
(troop_add_merchandise,reg(2),itp_type_foot_armor,4),
(troop_add_merchandise,reg(2),itp_type_hand_armor,2),
(troop_add_merchandise,reg(2),itp_type_one_handed_wpn,3),
(troop_add_merchandise,reg(2),itp_type_two_handed_wpn,2),
(troop_add_merchandise,reg(2),itp_type_polearm,2),
(troop_add_merchandise,reg(2),itp_type_shield,3),
(troop_add_merchandise,reg(2),itp_type_bow,2),
(troop_add_merchandise,reg(2),itp_type_crossbow,2),
(troop_add_merchandise,reg(2),itp_type_thrown,2),
(troop_add_merchandise,reg(2),itp_type_arrows,1),
(troop_add_merchandise,reg(2),itp_type_bolts,1),
(troop_ensure_inventory_space,reg(2),merchant_inventory_space),
(store_troop_gold, reg(6),reg(2)),
(lt,reg(6),500),
(store_random,reg(8),100),
(val_add,reg(8),200),
(troop_add_gold,reg(2),reg(8)),
]),
Code:
["Jabbara","Jabbara","Jabbara",tf_hero|tf_is_merchant, scn_zendar_farm|entry(15),reserved, fac_commoners,[itm_leather_apron,itm_leather_boots],def_attrib|level(7),wp(80),knows_ironflesh_4|knows_shield_4|knows_inventory_management_3|knows_common,0x0000000000000145000007a54e58f0d1],
Code:
[trp_jabbara,"start", [(eq,"$jabbara_sell",1)], "Hello, {playername}. What can I do for you?", "jabbara_merchant_1",[]],
[trp_jabbara|plyr,"jabbara_merchant_1", [], "I'd like to see your merchandise.", "jabbara_merchant_2",[]],
[trp_jabbara,"jabbara_merchant_2", [], "Certainly. Anything for the {man/woman} who brought my wife back to me.", "trade_done", [[change_screen_trade]]],
[trp_jabbara,"trade_done", [], "Anything else?", "jabbara_merchant_1",[]],
[trp_jabbara|plyr,"jabbara_merchant_1", [], "Tell me about yourself.", "jabbara_self",[]],
[trp_jabbara,"jabbara_self", [], "Certainly, {playername}. Here goes...", "trade_done",[(change_screen_view_character)]],
# [trp_jabbara|plyr,"jabbara_merchant_1", [], "Is there anything I can do for you?"
[trp_jabbara|plyr,"jabbara_merchant_1", [], "No thank you. That's all for now.", "jabbara_leave",[]],
[trp_jabbara,"jabbara_leave", [], "OK. Take care now. I hope to see you again.", "close_window",[]],
It gets to "jabbara_merchant_1" just fine, giving me the options like "Tell me about yourself", "Let me see your merchandise", etc, and when I click "Let me see your merchandise" that works too, and it goes to "jabbara_merchant_2", just fine. It then does the "change_screen_trade" just fine, and lets me trade with him, but his inventory is always blank. Ideas?