they already have this....
You craft ammo and stuff for an NPC while it fights and if it runs out they cant attack

So they could easily just make instances where you need "energy" to make your weapons do dmg or spells do dmg and then require crafters to craft the energy or w/e.

But its already built into the game (try out the 2nd or 3rd wood working guild quest)