TAA_SkillMastery (v1.3.1)

Definitely know! I guess specifically I wanted to be sure that traited skills aren't being counted as "Learned" so my own skill system works as intended. What I am trying to do is have Lvl 0 coincide with my use of Fomars EquipmentSkills to drive initial skill mastery, and then your plugin take over for future levels of the skill
In theory, you could the isLearnedSkill function to make sure the skill is actually learned. It checks only if the skill is actually known by the actor, different from the hasSkill function, which also consider traits. To use it in the requirements object just add a.isLearnedSkill(ID), replacing "ID" with the corresponding skill ID. That should do it.

So in essence, I want the Actors ability to start gaining exp for a skill to be restricted by if they have already "learned" the skill. Not just having it added from a trait (in my case from armors)

When I try to add in Requirements via the Plugin manager for a skill, I'm getting the "Duplicated ID" console log and it doesn't seem to be taking the requirements I set
Are you using the Plugin Manager or a JSON file as a datasource?
This message is only triggered when you have two or more settings referencing the same skill ID. Make sure your parameters are correctly set so that does not happen.

At first few tests it seems to work. I've tried saving and reloading multiple times and no error message so far in combat.
Glad that worked!
I'll just wait for Puppet Knight test results, than review the code one last time before making it official! 🙂
Are you using the Plugin Manager or a JSON file as a datasource?
This message is only triggered when you have two or more settings referencing the same skill ID. Make sure your parameters are correctly set so that does not happen.
I have the parameters set as the source and only set up the one skill in the settings. That's why i found it so weird lol.

I will retry a.isLearnedSkill() for the Default Skill parameter requirement. Previously it locked the meter all together and wouldnt level up even after learning

Update:

Wont start haha:

1676493369988.png


1676493481826.png


1676493503046.png

1676493513911.png
I have the parameters set as the source and only set up the one skill in the settings. That's why i found it so weird lol.

I will retry a.isLearnedSkill() for the Default Skill parameter requirement. Previously it locked the meter all together and wouldnt level up even after learning

Update:

Wont start haha:

View attachment 253340

View attachment 253343

View attachment 253344
View attachment 253345
Not exactly related to the Skill Requirements, but by filling in the parameter in the Plugin Manager brought a bug into evidence. I was able to replicate it in my test project, and I've included a fix in the attached test version. Please check if that solves this issue and let me know!

Also, in order for the isLearnedSkill function have the effect you want, you would have to include it into each skill referencing the respective skill ID directly, or you can use the id variable to prevent typos. This variable will always reference the current skill's ID (so the function call would be a.isLearnedSkill(id)).
Able to launch the game. So woot there


Also, in order for the isLearnedSkill function have the effect you want, you would have to include it into each skill referencing the respective skill ID directly, or you can use the id variable to prevent typos. This variable will always reference the current skill's ID (so the function call would be a.isLearnedSkill(id)).

I didn't realize I flipped the function xD. Working as needed now! Could a future iteration of the plugin add a parameter boolean of whether a skill is learned in order for it to gain exp? Would make life a lot easier down the line ^_^'.

Separate question:
Only because I'm not seeing it with 8am while feeding my 1 year old son eyes. Is there a way to prevent Enemies from gaining skill levels altogether?

I know I can prevent specific skills from leveling as a solve, but I have some skills that Actor's can use to so that isn't ideal.


Last Question as I'm designed with your plugin in mind, does X Type 1 count purely on Skill Use, or is it also factoring in Hits/Number of targets for that use?

Say if I cast Fire on 3 enemies at once, will that only count as 1 use still?
Putting this as a separate post since its more about compatibility with another plugin:


Currently I use Gabe MZ - Equip Requirements for scaffolding the Actors progression. Since Skills in my game are tied to Armors.

The note tags follow a <requires [requirement] x> format as seen below:

Game_Actor.prototype.checkEquipRequiriments = function(actor, item) { let result = true; let reg = /<require\s+([\w\s]*?)>/g; let match; while (match = reg.exec(item.note)) { match = match[1].split(/\s/); switch (match[0]) { case "level": if (result) result = actor.level >= match[1]; break;

I'm trying to run a match vs Skill Levels and am pretty sure I need to use the `$gameSystem.hasSkill` script call, however it requires me to add in the actorId. Is there any way you anyone can think of to avoid this or get the script to point to the current actor?


How its currently set up
case "sLevel": if (result) result = $gameSystem.hasSkill(match[1]) >= match[2]; break;

Which would look like <require sLevel 99 2> in the notetag. To require Skill ID 99 to be at least Level 2.
I didn't realize I flipped the function xD. Working as needed now! Could a future iteration of the plugin add a parameter boolean of whether a skill is learned in order for it to gain exp? Would make life a lot easier down the line ^_^'.
Glad it's working!

I'll review the code to check how complex adding that parameter can be. If it turns out to be simple, I could add it before releasing the official update. If not, I'll add that to my backlog and come back to it someday 😀

Separate question:
Only because I'm not seeing it with 8am while feeding my 1 year old son eyes. Is there a way to prevent Enemies from gaining skill levels altogether?

I know I can prevent specific skills from leveling as a solve, but I have some skills that Actor's can use to so that isn't ideal.
Currently the plugin has a parameter to disable level up messages for enemy skills, but not to prevent them from leveling up altogether. That is a nice new feature, though... and I believe it won't be too much work. I'll need to review the code to confirm that, but if it is not a big change, I may add this before officially releasing version 1.2.2. 🙂

Last Question as I'm designed with your plugin in mind, does X Type 1 count purely on Skill Use, or is it also factoring in Hits/Number of targets for that use?

Say if I cast Fire on 3 enemies at once, will that only count as 1 use still?
Type 1 progression (which is Skill Uses) counts how many times the skill has been triggered, regardless of how many targets or how much damage it causes. So with your example, even if the Fire skill targets 3 enemies, it will count a single use.

I'm trying to run a match vs Skill Levels and am pretty sure I need to use the `$gameSystem.hasSkill` script call, however it requires me to add in the actorId. Is there any way you anyone can think of to avoid this or get the script to point to the current actor?
When you use the $gameSystem.hasSkill function, what the plugin really does is use the actor ID passed as parameter to get the actor object and call its hasSkill function. Since you already have an actor variable inside the function you're editing, you can use the actor's hasSkill function directly. So, using your own code example:
JavaScript:
Game_Actor.prototype.checkEquipRequiriments = function(actor, item) {
        let result = true;
        let reg = /<require\s+([\w\s]*?)>/g;
        let match;
        while (match = reg.exec(item.note)) {
            match = match[1].split(/\s/);
            switch (match[0]) {
                case "level":
                    if (result) result = actor.level >= match[1];
                    break;
                ...
                case "sLevel":
                    if (result) result = actor.hasSkill(match[1], match[2]);
                    break;

The actor's hasSkill function has two parameters, one for the skill ID, and another for the required minimum skill level. The level is optional, if not provided it will only check if the skill has been added to the actor's mastery database. So, if you call actor.hasSkill(99, 2), for example, it will return true if the actor has skill 99 in its database with a level equal or higher to 2.
JavaScript:
Code:
Game_Actor.prototype.checkEquipRequiriments = function(actor, item) {
        let result = true;
        let reg = /<require\s+([\w\s]*?)>/g;
        let match;
        while (match = reg.exec(item.note)) {
            match = match[1].split(/\s/);
            switch (match[0]) {
                case "level":
                    if (result) result = actor.level >= match[1];
                    break;
                ...
                case "sLevel":
                    if (result) result = actor.hasSkill(match[1], match[2]);
                    break;

Huzzah! Naturally I was overcomplicating things haha. Thanks a ton for this fix.


Also exciting to hear my feedback being taken into consideration. Love your plugin either way!
@Puppet Knight , it turned out those parameters were simple to implement, as I expected. So I officialy released version 1.2.2 including both of them (one to prevent all enemies from leveling up skills, and another to prevent any skills added as traits to be leveled up as well). Hope this helps ease a bit of your work! 😀

The updated version has been posted to the plugin's itch page.

Also exciting to hear my feedback being taken into consideration. Love your plugin either way!
Thank you for your feedback! It's really nice to see people are actually using my plugins, and II'm happy to incorporate new stuff into them when I can!

Let me know when your game comes out so I can check it out! 😉
So I officialy released version 1.2.2 including both of them (one to prevent all enemies from leveling up skills, and another to prevent any skills added as traits to be leveled up as well
Yay!!!! This is amazing news.


Let me know when your game comes out so I can check it out!
Sure!!

poster,504x498,f8f8f8-pad,600x600,f8f8f8.u2.jpg
With regards to other level up requirements, is it safe to assume I can set up

|| Ors in requirements to allow for different pathing?
With regards to other level up requirements, is it safe to assume I can set up

|| Ors in requirements to allow for different pathing?
Yes! It is an eval, so it pretty much accepts any code (considering the variables involved are in scope). Just be sure whatever route it takes it will always result in a boolean value (true or false).
A quick question about the backend regarding levels vs damage caluclations:



It might be my imagination, but I noticed after Enemy skill leveling was disabled, the Enemies managed to do damage they shouldve been doing to begin with.

So my question is, how is Minimum Level and Maximum Level damage calculated when using the plugin manager parameters as a source.


With what happened with enemies Im running under the impression that Level 5 = Unleveled Skills = Database Data formula, and that any level below that is some form of a percentage of teh calculations set?


Im just try to see where I truly need to get specific in my own database work and how nuanced I have to be for the plugin parameter settings.
It might be my imagination, but I noticed after Enemy skill leveling was disabled, the Enemies managed to do damage they shouldve been doing to begin with.
That seems highly unlikely, as the parameter only prevents the skill from gaining experience, it changes nothing on how the plugin calculates damage compared to previous versions.

So my question is, how is Minimum Level and Maximum Level damage calculated when using the plugin manager parameters as a source.
Not sure what you mean. But when you do not specify a level for a given skill using enemy note tags, it will always assume the minimum level for that enemy. And if the skills are not allowed to gain experience, they will remain at minimum level.

With what happened with enemies Im running under the impression that Level 5 = Unleveled Skills = Database Data formula, and that any level below that is some form of a percentage of teh calculations set?
Let's say you setup a custom damage formula for level 3 of a skill, but none for lower levels, nor a default formula for that skill. In that case the plugin will assume the database formula as default, and will only apply the custom formula if the skill level is equal or greater than 3.

The damage can be scaled through the skill level, but only if a custom formula is set to take the level into consideration. The plugin allows you to completely change the formula for each skill level, so it all really depends on how your skills data is configured. If you set the skill formula to something like a.atk + a.agi, for example, and don't set a different one for different skill levels, then the damage will be entirely related to the actor / enemy stats, and will not be affected by the skill level.
I'll rephrase my question.


If a skill is falling to all of the default plugin manager settings (ie I don't add it ' Plugin Manager Skills' paramater) would the damage formula be the same from Level 1 to Level 5?
I'll rephrase my question.


If a skill is falling to all of the default plugin manager settings (ie I don't add it ' Plugin Manager Skills' paramater) would the damage formula be the same from Level 1 to Level 5?
Yes. Unless you add a different formula for a given skill level, the formula will be the same for all levels. If a default formula is set for an individual skill in the plugin parameters, that will overwrite the default database settings. If no default formula is set for the plugin, then the database formula is used.
Yes. Unless you add a different formula for a given skill level, the formula will be the same for all levels. If a default formula is set for an individual skill in the plugin parameters, that will overwrite the default database settings. If no default formula is set for the plugin, then the database formula is used.
Got it. Thank you!
Morning! So I tried out the horizontal gauges again and run into the following error when trying to use Fomars Equipment Skills at the same time:

1677072772943.png


Something to note, this actually doesn't occur until a skill is able to start gaining Exp and I then try to change weapons. Fomars plugin also draws gauges, but only on the equip screen.

1677073042202.png

Your gauge doesn't try to draw there,

Only on skills like designed:

1677073119330.png

Draws fine in battle:
1677073139860.png

Once my actor Learns the skill through use in battle (driven by fomars plugin and battle core)
1677073193181.png

Your plugin is enabled:
1677073213819.png


Skill shows fine even in my equip skill window xD

1677073254412.png


But the minute I hit "Equip" in the equip menu:

1677073286817.png



Sorry for the long one.

Things of Note: this was breaking this way even before any of the recent updates, so it wasn't any of those. And it only occurs with the horizontal gauge. Load order of Fomar and your plugin made no difference. And I am using FOSSIL.

I can still use your plugin with the Vertical gauges just fine and will do so If I don't have choice, I just prefer the horizontal ones if I can get them working
Separately I'm also still getting the duplicated skill ID message in the log. And adjustments I've made via the plugin manager skills parameter aren't being reflected in game.

Assuming I set this up correctly, level 3:

1677082747485.png


1677082777026.png


The moment I hit "New Game" or Select a save via Continue:

1677082806564.png
Morning! So I tried out the horizontal gauges again and run into the following error when trying to use Fomars Equipment Skills at the same time:

View attachment 253977

Something to note, this actually doesn't occur until a skill is able to start gaining Exp and I then try to change weapons. Fomars plugin also draws gauges, but only on the equip screen.

View attachment 253981
Your gauge doesn't try to draw there,

Only on skills like designed:

View attachment 253983
Draws fine in battle:
View attachment 253984
Once my actor Learns the skill through use in battle (driven by fomars plugin and battle core)
View attachment 253985
Your plugin is enabled:
View attachment 253986

Skill shows fine even in my equip skill window xD

View attachment 253987

But the minute I hit "Equip" in the equip menu:

View attachment 253988


Sorry for the long one.

Things of Note: this was breaking this way even before any of the recent updates, so it wasn't any of those. And it only occurs with the horizontal gauge. Load order of Fomar and your plugin made no difference. And I am using FOSSIL.

I can still use your plugin with the Vertical gauges just fine and will do so If I don't have choice, I just prefer the horizontal ones if I can get them working
Hello again!

Well looking into Formar's code I think I figured out the issue. The function used to draw the item name expects four parameters: the item itself, x and y coordinates, and width. The default engine code allows the width to be omitted and sets a default value if that happens, and Formar's code depends on it (as it does not provide width when calling it).

TAA_SkillMastery edits this function and still allows for the width to be omitted, but the call to draw the gauges was issued before the bit that sets a default value if it is not defined. I just moved things around the code a bit and I think this issue will be solved. Please try the attached test version so we confirm that!

Separately I'm also still getting the duplicated skill ID message in the log. And adjustments I've made via the plugin manager skills parameter aren't being reflected in game.

Assuming I set this up correctly, level 3:

View attachment 254005

View attachment 254006

The moment I hit "New Game" or Select a save via Continue:

View attachment 254007
Okay, if there is not more than one entry for the same skill ID then this message is weird, as that is the only condition for it to be displayed. However, the parameters print you provided is for the skill level settings... the duplicate message happens if the same ID is listed more than once in the skill list, which is two steps before the print you posted:
1678045445473.png


Can you confirm the skill ID 99 is not listed twice there, please?
I tried in my test project, and I couldn't replicate this issue other than actually having duplicate IDs.
TAA_SkillMastery edits this function and still allows for the width to be omitted, but the call to draw the gauges was issued before the bit that sets a default value if it is not defined. I just moved things around the code a bit and I think this issue will be solved. Please try the attached test version so we confirm that!
The update seems to have done the trick I can now use the horizontal bars ^_^! I ran into an error originally, but it was caused by a menu redirect I was using. I sorted that.

edit: fun fact for my head cannon, the minimum height or width the gauge has to be is "5" else you won't be able to see the progress bar if you have Gauge Outline set to "On"

@taaspider is it safe to assume that Default Gauge Color 1, is what dictates the Outline color? Except when the gauge is locked of course and that setting is on

If so, would it be a heavy lift to:

1) Allow us to set the unlocked gauge outline color by itself
2) Set the thickness of the outline itself?

Can you confirm the skill ID 99 is not listed twice there, please?
I tried in my test project, and I couldn't replicate this issue other than actually having duplicate IDs.
1678051443525.png

1678051455119.png



It is in fact. The only entry lol

Original thread: https://forums.rpgmakerweb.com/threads/taa_skillmastery-v1-3-1.131348/