Skillcount in combat

Dear reader,


This question will probably been asked before, but I can't see the wood for the trees due to too many finds.


So, I already apologize for spamming this forum.


I'm looking for a way to count a skilluse in battle and changing that skill in another one after x use.


At the moment I have a common event that adds 1 to the skillvariable.


The event is called by the skill. (trigger none is okay?)


A second event changes (forget old and learn new) the skill after x times the skill is used (trigger is none aswell?) (= variable count is x).


Yet nothing happens after x use.


Is anyone able to help me out?


Thank you!
What you'll want to do is use Yanfly's Skill Core plugin


<Custom Show Eval>
if $gameVariables.value(id, value)>10{
visible = true;
} else {
visible = false;
}
</Custom Show Eval>


IE:


<Custom Show Eval>
if $gameVariables.value(3, 11)>10{
visible = true;
} else {
visible = false;
}
</Custom Show Eval>


So now when you use the first skill 11 times, the second skill will show up. You can then make another common event that sets the variable back to zero and tie it to the second skill.
Alright!


Thank you!


ps. no other way doing this without a plugin?


I'm realy new to rpgmaker and trying to find the strength of the software without plugins.


( Don't tell anyone, but I'm still a bit afraid of plugins atm :/)
@Enthar You could set up a parallel common event that constantly checking the variable to see if it change and if it did remove the old skill and add the new skill and vice versa when the variable is below the required number. But this would require you to that for all party members and because it would be checking the variable every frame it would kill the frame rate. Using the plugin and method above would be the simplest and cause the least amount of headaches. Yanfly's plugins are some of the simplest complex plugins that you can use and are the best ones to step in and get your toes wet.
@Enthar You could set up a parallel common event that constantly checking the variable

won't work, because all parallal processes are automatically stopped in all screens - and that includes the battlescreen, not only the menu screens.
Oh, okay guys....thanks!
You could make askill call a common event that calls either skilldepending on the value of the variable, it can even be the one to change it.


But I never tried dealing with that, so I can't help you with it besides saying you can do it.
thanks for your advice!


although it seem it can only be done by using a plugin.


I'm using the yanfly core skill.


I'm sure I find a way 😉

Original thread: https://forums.rpgmakerweb.com/threads/skillcount-in-combat.68443/