Is there a plugin command hidden somewhere where I can manually add AP to a character? I don't want them to only learn skills based on killing enemies but also by doing different other tasks and that would help a lot :)
Learn Skill from Equipment
● ARCHIVED · READ-ONLY
-
-
Is there a plugin command hidden somewhere where I can manually add AP to a character? I don't want them to only learn skills based on killing enemies but also by doing different other tasks and that would help a lot :)
I have not run to my computer to help so fast!
There isn't a plugin command but there are 2 functions you can call easily enough using `Script` in an event:gainAP&&gainSkillAP
Using gainAPIf your goal is to simply award AP to an Actor altogether you can useactor.gainAP(ap)
Replacingapwith the amount of AP to give that actor.
Using gainSkillAPIf you want the actor to gain AP only in a specific Skill you would use:
actor.gainSkillAP(skilIId, ap)
replacing skillId with what skill is being learned and ap with the amount of AP to gain
Let me know if you run intto any troubles! -
Hehe thank you, but it doesn't work (yet) - instructions unclear. No matter if I use "actor", replace it with an ID or the name of the actor - plus I would probably also want it for the whole party.I have not run to my computer to help so fast!
There isn't a plugin command but there are 2 functions you can call easily enough using `Script` in an event:gainAP&&gainSkillAP
Using gainAPIf your goal is to simply award AP to an Actor altogether you can useactor.gainAP(ap)
Replacingapwith the amount of AP to give that actor.
Using gainSkillAPIf you want the actor to gain AP only in a specific Skill you would use:
actor.gainSkillAP(skilIId, ap)
replacing skillId with what skill is being learned and ap with the amount of AP to gain
Let me know if you run intto any troubles! -
Hehe thank you, but it doesn't work (yet) - instructions unclear. No matter if I use "actor", replace it with an ID or the name of the actor - plus I would probably also want it for the whole party.
actor is a place holder in this case for a Game_Actor object.
I'll ggive you both
For a single Actor Gaining:
$gameActors.actor(acotorId).gainAP(ap)
$gameActors.actor(acotorId).gainSkillAP(skillId, ap)
For the Entire Party to gain AP you can throw this functtion att tthe bottom of the equipment skills plugin:
gainPartyAP FunctionGame_Party.prototype.gainPartyAP = function(ap) {
for (const actor of this.members()) {
if (actor && actor.isActor()) {
actor.gainAP(ap);
}
}
};
Then call$gameParty.gainPartyAP(x);using whattever number in place of x
For the same thing but with a specific skill:
gainPartySkillAP FunctionGame_Party.prototype.gainPartySkillAP = function(skillId, ap) {
for (const actor of this.members()) {
if (actor && actor.isActor()) {
actor.gainSkillAP(skillId, ap);
}
}
};
Then call$gameParty.gainPartySkillAP (x, y); using whatever your skill id to replace x and tthe amount of ap for y
You add these to their own JS file after fomars plugin or just throw them at the bottttom of thte existing plugin. Either way you'd be calling the script call gainPartyAP OR gainPartySkillAP from witthin and event -
Wait? So you actually made a plugin that can do the same thing Espers in FF6 can do. That is awesome. I mean it's more like FF9, but you could use it with accessories as Espers too. Still, awesome.Equipment Skill System
Version 1.1
by Fomar0153
Description
Allows you to learn skills from your equipment.
Please note this plugin requires an AP system.
Click here for my AP System.
Features
With this plugin you can pernamently learn skills from your equipment.
Screenshots

How to Use
Place the plugin in your project's js/plugins/ folder.
Inside RPG Maker MZ's editor, open the Plugin Manager.
Create a new entry and select this plugin from the list.
Please note that in order to work this plugin must be placed below the AP System in the plugin list.
Customise the options to your liking and then click ok.
Skills that you wish to be learnable from equipment must be notetagged with: <ap: n> where n is the AP to learn.
To add the skills to the equipment you can either add them via traits which will let the players use the skills prior to being mastered, like Final Fantasy IX.
Or you can add them via notetags: <skills: x;y;z>
Seperate the skill ids with a semicolon, there is only room on the menu to display 3 skills.
If you want a piece of equipment to teach a skill faster than that the normal rate then do: skillid:learnrate e.g. <skills: x:2;y;z>
Download
Click here.
FAQ
Q: My skills don't gain the AP displayed in battle.
A: Please double check you have this plugin below the AP System in your plugin manager.
Credits
Fomar0153
Terms of Use
As long as I am credited, you may use this plugin in your projects both commercial and non-commercial.
Version History
1.0 -> 1.1 - 29/08/20
New feature added: You can now restrict who can learn which skills from equipment. -
I encountered this error when using plugin.
What should i do? -
Is there a way to learn traits permanently using AP? Similar to learning skills
Thanx