make an event - if unit picks up an item; condition - unit hero manipulating item (boolean) level is >5; action - order triggering unit to drop manipulating item
when you pick up an item, condition that the item is the certain tome, and set the level of ability to level of ability + 1. i used tomes to lvl my abils in my rpg b4.