You do not differentiate between bows, which are 2-handed weapons. The question is bit fuzzy for this reason. If you only want to consider melee weapons then please so state. If that is the case an easy way to do it would be to check the weight of the of the weapon by using:
if (GetWeight(oItem) >12)
Or whatever the weight for the lightest 2-hander is. Of course if you have extremely light 2-handed weapons, by using weight reduction, this will not work, but if you do then what is the point of this script?
Simpler than listing all the weapons.
And the function to check if it's ranged:
if (GetWeaponRanged(oItem))
Unneeded if you are just interested in how much the thing weighs, which is what I'm guessing.
Modifié par ffbj, 10 décembre 2011 - 06:16 .