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
JS Plugin Releases (RMMZ)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 && gainSkillAPIf your goal is to simply award AP to an Actor altogether you can use
Replacing
actor.gainAP(ap)Replacing
ap with the amount of AP to give that actor.If you want the actor to gain AP only in a specific Skill you would use:
replacing skillId with what skill is being learned and ap with the amount of AP to gain
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:
Game_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 xFor the same thing but with a specific skill:
Game_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 yYou 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.
I encountered this error when using plugin.
What should i do?
What should i do?
Is there a way to learn traits permanently using AP? Similar to learning skills
Thanx
Thanx
Original thread: https://forums.rpgmakerweb.com/threads/learn-skill-from-equipment.125659/