Script call for skill

So I have several skills I want to have conditional learning for them and the system mv provides for that is only level. I'm going to be using skill learn by yamfly.

The thing is I don't know what Eval scrip calls to use.

For example. If skill 10 is used 8 times then x player will learn skill 11.
What would be the correct script to use for this?

Another one I'm trying to figure out is. If player has fought 120 times then learn skill 14.
How would I put this?

Can anyone help me please
Hi!
I don't play too much with Mv battle. But I know that has a way for you to count battles:
$gameSystem.battleCount() This will return the number of how many battles did you fight.
Alternatively, you can set a variable to increase by 1, every time the player enters a battle.

For the skill thing, I have no idea how to track the times he used the skill =/
Okay. I think I get it. How would I set the variable along with the script? I'm pretty bad at using script lol.
Okay. I think I get it. How would I set the variable along with the script? I'm pretty bad at using script lol.
Don't need to use script for the variable. You can put the code when the battler start in a event command, only in turn 1.
Or you put a variable as part of the damage formula so that it adds one to the value of the variable every time it is used. Counting battles tells you nothing as you would have no way of knowing if the skill was used in battle.

Have a conditional on the troop page of each encounter set to turn zero and then every subsequent turn which checks the value of the variable. When it reaches #n use the learn skill command. I'd also turn on a control switch which stopped that conditional check happening again.
Ah ok, I think I'm starting to get it. Still a bit unsure. I'll give it a test run later on to see if I can manage to set it up properly.

Original thread: https://forums.rpgmakerweb.com/threads/script-call-for-skill.115367/