"It seems like you didn't even bother to read my question. stupid emote"
Perhaps read my reply carefully and take a hint? What are the steps in order to make the idea work? I've listed a few of them above, please make use of your brain for a second.
Yet you still want a different reply, like what? "Look at file X, at line XX, change it to [super awesome code]" and that's it? Are you for real? You are worse then the ones who want the Spoon..
The issue can be lots of things but did you even consider a approach of this:
"Did the change that i've applied work as i did imagine" If yes, proceed to the next step until you get the whole thing as you want it to be.
This whole thing is a slight variation of the Ulti system, that is already within source premade, ready for adjustments..
Shields - > Ultimate
Shields - > Gems can be applied
Shield/ Left weapon slot/ bottom slot - > counts the Gems inside (Blade is a good test for it)
Bug fixes and adjustment of Upgrade Npcs..
There, that is your solution and whole system in steps, now go and get it running, feel happy and congratulations.
If you have no clue whatsoever, just state it and try easier things to learn but this whole thing...
As for the questions part, feel free to ask whatever you want, as long as it is within the rules but don't expect the people to bother help you, every, single, time, if you don't even take your own time and plan just the basics on which steps YOU could take in order to solve this.
Read my first post, the first part, and again, again and again. That's the path everyone goes through and applies.. Until you understand the this very basic thing and apply it, you just get more annoying to those who did help you already, with every question regardless of the context.