
Originally Posted by
Lewyo
Thank you dlsmd for your speedy response that fix the error but i still cannot work out why the rule does not work all i'm getting is midcast when i shoot. I will post a break down of var, preshot, precast rule and switch.
now you ran into one of the only issues with gearswap that are glaring to me
with gearswap its hard to tell if a specific gear is equiped to ammo when it runs out
this is because gearswap hold in memory what gear is equiped to what slot
this might fix it for you but i cant guarantee it(add this to the vary top of your gearswap file)
Code:
gearswap.parse.i[0x01D] = function (data)
local cur_equip = table.reassign({},gearswap.items.equipment)
gearswap.player.equipment = gearswap.make_user_table()
table.reassign(gearswap.player.equipment,gearswap.to_names_set(cur_equip))
for i,bag in pairs(gearswap.res.bags) do
local bag_name = gearswap.to_windower_bag_api(bag.en)
if gearswap.items[bag_name] then gearswap.player[bag_name] = gearswap.refresh_item_list(gearswap.items[bag_name]) end
end
end