MV Yanfly Skill Mastery Levels Plugin - use on Map/add exp manually

Hello all,

I am currently using Yanfly's Skill Mastery Levels Plugin for my game as the Skills menu looks very neat with the corresponding gauges. From my understanding, the plugin automatically tracks how many times a skill is used in combat and then levels up accordingly (there are custom formulas, but the standard is "current skill level * 5" uses per level, so reaching lvl2 takes 5 uses, reaching lvl 3 takes 10 uses, etc).

My issue is that I currently have no plans to feature combat in my game. Any "skill use" is on the map (for example, cutting wood, foraging, things like that). But I believe there is no manual script call to use a skill on the map - everything I found refers to the combat scene only.

I am hoping for assistance with one of two solutions:
1. Find a way to call a skill on the map so it counts as a "use" for the plugin; or
2. Manually add X varialble to the plugin experience or "uses" via script call.

I appreciate that this is a paid plugin but I hope someone will be able to assist with this. I took a screenshot of one of the sections of the plugin below that seemed relevant as it refers to different script calls for parts of the plugin, however if a specific different section would be helpful let me know and maybe I can find and screencap it.

SkillMastery.PNG


Hopefully, it will be something as simple as tracking every (evented) "skill use" in a variable that increases by 1, and then setting "this._skillMasteryUses[skillId]" = that variable, but my Javascript is not solid enough to guesstimate correctly yet. :-D

Thanks all
Lui
It's right in the "script calls" section of the plugin's instructions.

1695910776180.png


If you're not sure how to refer to a specific actor (to be the "battler" variable), you can look up the pinned topic of MV Script Calls.

For example, the first actor you see on the map would be $gameParty.leader().gainSkillMasteryLevel(X, Y)
Brilliant, thank you! I completely skimmed past that because it was referring to battlers, but it works perfectly 🙂

/EDIT: I just realised there's an even easier way than the loop I just constructed, haha. Simply track every "skill use" on the map in Variable 1, and then use this:

$gameParty.leader().setSkillMasteryUses(1, $gameVariables.value(1))

Thanks for pointing me at the right script calls!
This thread is being closed due to being solved. If you find you do need the thread later, report it to let us know why. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-skill-mastery-levels-plugin-use-on-map-add-exp-manually.161551/