Training Stats

Im hoping there is an easy solution that I just cant figure out, and if anyone has already asked this im sorry.  I couldnt find the answer anywhere.


Does anyone know how i could set up a system where I could advance a stat such as attack or M. defence by one point permanently that would take time before it was added.


Basically what I want to do is pay a NPC something like 100 gold to give one of my party members +1 to a specific stat but not apply that stat upgrade until the player has walked so many steps or so much time has passed.  Possibly even removing the character from the party until the stat is increased and they could be added back afterwards.  Maybe even pay for it after the stat is increased.  Showing the character is training then paying for their advancements afterwards.
Most of that is eventing. You'll need an event on the NPC, and then a conditional check to see if they have the gold required to pay to train. From there, you can remove the party member via an event command, and then check against the number of steps taken before adding them back.


It's not an easy event though (as you can see), you may wish to work through Andar's tutorials (they are for ACE but the ideas still work) to get an idea of all of this, as it depends heavily on knowing how to use variables and conditional branches.
Awesome thanks for the help! Ill definitely check the tutorials  out.  
Here's the tutorial link in case you can't find it:

Original thread: https://forums.rpgmakerweb.com/threads/training-stats.70953/