In The Bard's Tale IV: Barrows Deep, pretty much every weapon comes with its own active ability that it grants the user.
After having used the weapon enough times during combat, you master the ability on that character. From then on, you can choose to use that ability at any point, even if you don't have the original weapon equipped, by selecting it from your Mastery Book in the Inventory.