Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
NUUN Skill Learning - NUUN_SkillLearning.js
Plugin desc : Skill learning
License : MIT License
Author : NUUN
Website : https://github.com/nuun888/MZ/blob/master/NUUN_SkillLearning.js
Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_SkillLearning.js
File name : NUUN_SkillLearning.js
Help of plugin :
* @target MZ
* @plugindesc Skill learning
* @author NUUN
* @version 1.1.3
* @base NUUN_Base
* @orderAfter NUUN_Base
*
* @help
* You can learn skills used by your opponent.
*
* This plug-in is compatible with "NUUN_Base" version 1.6.1 or later.
*
*
* Learned when receiving or using a skill
* Skill notes
* <SkillLearning:[rate], [skill], [mode]> If it is a skill that can be learned when attacked, the skill will be learned with a probability.
* Only battlers with the ability to learn skills will learn.
* [rate]:Probability of learning (percentage)
* [skill]:Acquisition skill 0: Acquire activation skill. 1 or more: Specified skill
* [mode]:learning target 0: friend or foe 1: friend only 2: enemy only
* Example: <SkillLearning:80, 0, 0> 80% chance to learn attack skills when attacked.
* <SkillLearning:100, 52, 1> When attacked, 100% chance to learn Skill ID 52 if the learner is an ally.
*
* <WatchingSkillLearning:[rate], [skill], [mode]> If the skill can be learned when the opponent uses the skill, the skill will be learned with probability.
* Only battlers with the ability to learn skills will learn.
* [rate]:Probability of learning (percentage)
* [skill]:Acquisition skill 0: Acquire activation skill. 1 or more: Specified skill
* [mode]:learning target 0: friend or foe 1: friend only 2: enemy only
*
* Notes with features (including enemy)
* Create a feature that learns a skill.
* <SkillLearningAbility>
* Learn skills if they can be learned when attacked.
* <WatchingSkillLearningAbility>
* If the skill can be learned when the opponent uses the skill, the skill will be learned.
*
*
* Learn target skill when attacking
*
* Skill notes
* <AttackSkillLearning:[rate], [skill], [mode]> Learn target skill when attacking.
* Only skills with the following tag (OnAttackSkillLearning) can be learned.
* [rate]:Probability of learning (percentage))
* [skill]:Learned skill 0: All skills 1: 1 random skill from all skills.
* [mode]:learning mode 0: Hit 1: Defeat
*
* Enemy, Class notes
* <OnAttackSkillLearning[SkillId]> Set skills that can be learned from already learned skills or action skills when attacking.
* [SkillId]:SkillId
* <OnAttackSkillLearning13> If a skill with skill ID 13 has been acquired (if it is an enemy, it has been set) for a class or enemy action, that skill will be acquired.
*
* <OnAttackSkillLearning:[mode]> Sets the skill that can be learned when attacking.
* [mode]:learning target 0: friend or foe 1: friend only 2: enemy only
*
* Common setting
*
* Set the skill learning correction rate
* Notes with features
* <SkillLearningCorrection:[rorrection]> Set the skill learning correction rate.
* [rorrection]:± Correction rate
*
* The rating of all skills learned by the enemy is set at 5.
*
* Terms of Use
* This plugin is distributed under the MIT license.
*
* Log
* 3/29/2025 Ver.1.1.3
* Fixed to support NUUN_PopupEx.
* Fixed the popup display target.
* 12/28/2022 Ver.1.1.2
* Added definitions for popup support.
* 12/27/2022 Ver.1.1.1
* Added a function that allows you to specify the skills that can be acquired for each enemy and occupation.
* Fixed an issue where an error would occur when the target to acquire the skill was an ally.
* 12/25/2022 Ver.1.1.0
* Added a function that allows you to learn the target skill when attacking.
* 12/18/2022 Ver.1.0.2
* Added a function to play SE when acquiring skills.
* 12/17/2022 Ver.1.0.1
* Added definitions by applying learning skills to enemy "use skills" in the enemy book.
* 12/17/2022 Ver.1.0.0
* First edition.
*
* @param SkillLearningText
* @desc Text when skill is acquired %1: Learner %2: Skill name
* @text skill learning text
* @type string
* @default %1 learned %2!
*
* @param SkillLearningSe
* @text SE when learned
* @desc Specify the SE at the time of acquisition.
* @type struct<SkillLearningSE>
* @default {"name":"","volume":"90","pitch":"100","pan":"0"}
*