YEA - Skill cost manager

Hey guys, having trouble getting the skill cost manager to work in my game.

I have added

<mp cost: 10%>

to my skill paralyze that has a base of 7 mp to cast but when im battle testing with it at level 10 the mp cost still stays at 7.

anyone know whats going on here?
Did you save your game before you battle tested?
Did you save your game before you battle tested?
**** im stupid. thanks.
It is a common mistake since it is not intuitive that you need to manually save the game before you battle test.
Hey while we're here, I'm trying to make a skill deal damage equal to the current MP of the user, and cost all of his MP.

So far, I've got this in the notetag: 

<custom cost: allMP><custom cost colour: 23><custom cost perform> var[1] = self.mp self.mp = 0</custom cost perform><custom cost requirement> self.mp > 0</custom cost requirement>And in the damage-formula:

v[1]

But the variable doesn't seem to chance by the user's MP, and neither works putting this in the damage formula:

a.mp; a.mp = 0

Thank you!
Okay, I've fixed it by removing the entire custom cost perform, and putting the following in the damage formula: 

v[1] = a.mp; a.mp = 0; v[1]

Sorry for the quick question, and anyone who wonders is now welcome ;-)

Original thread: https://forums.rpgmakerweb.com/threads/yea-skill-cost-manager.18221/