搜索结果: *

  1. Warband Script Enhancer 2 (v1.1.0.6)

    how does this operation work on the default warband engine?
    I have test on vanilla using the same way. It works.
    In vanilla and many other mods this operation is used in the script refresh_village_merchant_inventory and some other scripts which refresh the inventories of merchants. The abnormal behavior of this operation may cause the merchants have few goods to sell.
  2. Warband Script Enhancer 2 (v1.1.0.6)

    troop_ensure_inventory_space has weird behavior. If it tries to remove items when there is not enough space, it seems to randomly remove items.
    I test to run the operation with
    插入代码块:
    (try_for_range, ":unused", 0, 96),
      (troop_add_item,"trp_player", "itm_tutorial_spear"),
    (try_end),
    Now my inventory is full of spears. Then I run(troop_ensure_inventory_space, "trp_player", 1),
    Now, there are only about 10 spears left and most items are removed.
    I run again
    插入代码块:
    (try_for_range, ":unused", 0, 96),
      (troop_add_item,"trp_player", "itm_tutorial_spear"),
    (try_end),
    and manually delete the last spear in my inventory and run (troop_ensure_inventory_space, "trp_player", 1),
    It works correctly. There is exactly one space in my inventory as the operation needn't remove anything.
后退
顶部 底部