Item use costs EXP/Level

Hi Guys,


as the title suggests, I just looking for the smallest most simple script know to man (probably). I've been trying to work it out myself to no avail.


In my game character stats do not rise on level up, instead they will have to play through the game and certain orbs will drop from enemies and chests, these orbs are then used to boost the stats of the characters. the Cap


I want to put in place is with levels. So one orb consumes one level and obviously cannot be used if that character is level 1.


For the benefit of anyone saying "What the heck!?" I'm using it in conjunction with a Skill shop that also requires the consumption of levels to learn skills but certain spells require a certain level to learn them, thus making the player think twice before using up all the available points.


In essence it's identical to the Final Fantasy 10 Sphere grid system, just without the sphere grid... and it's a little more flexible.


Any help with a small snippet of code would be royally appreciated.
Sorry to be a bumpety bumper.  >_>

Original thread: https://forums.rpgmakerweb.com/threads/item-use-costs-exp-level.55218/