Weapon& Armor Mastery (passive skill)

It is very common to see this kind of skill in MMORPG and I would like to have the skill in my project as well. But it causes me so much headache and still not be able to create one.

The skill is simply functioning.. For example, Dagger Mastery, the skill once learned, increase ATK by 10 when dagger is equipped. Of course you will not get ATK boost when equip with another type of weapon. Same thing applies to armor type.

Example of usage:

- Put notetag in skill

<passive: wtype 3>

ATK += "x" #<-- can be flat value or %

</passive>

<passive: atype 4>

a.def += a.atk * 0.2

eva += 0.01 <-- 1%

</passive>

Is there a simple script to do such thing available out there? Note that it would be good if the script can increase parameter by flat amount, percentage and any formula.

Thanks!
I am interested in this type of script as well.  Thanks for the request.  Hope someone can point us in the right direction. 😀
Interesting. How is the skill learned? Does it ever appear in your skills list? Could you use a state to give the param boost and attach it to the appropriate weapons?
I have a partial solution. It uses features for skills, just like equipment and states. So, basically anything you can have a state do, you can also have a passive skill do for the actor who's learned it. Unfortunately, since it's based on features, none of the conceivable restrictions that are based directly or indirectly on features can work (ex: skill sealed, percentage of hp/mp, mana cost, etc.), due to causing an infinite loop. So passive skills only work if they're learned permanently (either through levels or events, but not the features of equipment/states).

Edit: I have just finished a significantly improved version of this script. You can find it here: Passive Skills and Items. In addition to having much more user-friendly note tags, it fixes a lot of the recursion issues that my original post here had, allowing for many more activation conditions to be available and for skills temporarily granted by features to apply their effects!

I'm still working on the rest of the things the original poster requested (armor type requirements, flat parameter bonuses, and parameter bonuses as a function of another parameter), but they'll be separate scripts. I'll post them as I write them, and make them easily compatible when they're all done. It could be a few weeks, though. It's getting to the end of term crunch time, so my recreational programming time is limited.

Original thread: https://forums.rpgmakerweb.com/threads/weapon-armor-mastery-passive-skill.37738/