Equip Skill for Actor Notetag

What I really want is an add-on for YEP.90 – Equip Battle Skills – RPG Maker MV.


In that plugin is possible to make a skill that can be equipped for battle. 


The problem is that the tag used CAN ONLY be put on the class notetag.


My need is that it must be done even from the ACTOR notetag.


The idea here is that the characters can have different set of skill made by plot, not by class.


The classes set can change while in the game, the actor will not. 


And my Js skill is not enough for that.
im not sure if this is gonna works, but try replacing in the plugin code 
this:
 

DataManager.processEBSNotetags1 = function(group) {
var note1 = /<(?:STARTING SKILL SLOTS|starting skill slots):[ ](\d+)>/i;
for (var n = 1; n < group.length; n++) {
var obj = group[n];
var notedata = obj.note.split(/[\r\n]+/);

obj.startingSkillSlots = Yanfly.Param.EBSStartSlots;

for (var i = 0; i < notedata.length; i++) {
var line = notedata;
if (line.match(note1)) {
obj.startingSkillSlots = parseInt(RegExp.$1);
}
}
}
};


for this:
 

Quote



DataManager.processEBSNotetags1 = function(group) {
    var note0 = /<(?:STARTING SKILL SLOTS|starting skill slots):[ ](\d+)>/i;
    var note1 = /<(?:EQUIP)[ ](.*):[ ]([\+\-]\d+)>/i;
  var note2 = /<(?:EQUIP STATE):[ ]*(\d+(?:\s*,\s*\d+)*)>/i;
  var note3 = /<(?:EQUIP STATE):[ ](\d+)[ ](?:THROUGH|to)[ ](\d+)>/i;
  var note4 = /<(?:UNEQUIPPABLE|cannot equip)>/i;
  var note5 = /<(?:ALL ACCESS EQUIPPABLE|ALL CLASS EQUIPPABLE)>/i;
  var note6 = /<(?:ACCESS ONLY EQUIPPABLE|CLASS ONLY EQUIPPABLE)>/i;
    for (var n = 1; n < group.length; n++) {
        var obj = group[n];
        var notedata = obj.note.split(/[\r\n]+/);


    obj.startingSkillSlots = Yanfly.Param.EBSStartSlots;
    
    obj.equipParamBonus = {
      0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0
    }


    obj.equipStates = [];
    obj.equippable = true;
    obj.allEquippable = Yanfly.Param.EBSAllEquip;
        for (var i = 0; i < notedata.length; i++) {
            var line = notedata;

            if (line.match(note0)) {


                obj.startingSkillSlots = parseInt(RegExp.$1);


            } else if (line.match(note1)) {


                var stat = String(RegExp.$1).toUpperCase();


        var value = parseInt(RegExp.$2);


        switch (stat) {


                    case 'HP':


          case 'MAXHP':


          case 'MAX HP':


                        obj.equipParamBonus[0] = value;


                        break;


                    case 'MP':


          case 'MAXMP':


          case 'MAX MP':


          case 'SP':


          case 'MAXSP':


          case 'MAX SP':


                        obj.equipParamBonus[1] = value;


                        break;


                    case 'ATK':


          case 'STR':


                        obj.equipParamBonus[2] = value;


                        break;


                    case 'DEF':


                        obj.equipParamBonus[3] = value;


                        break;


                    case 'MAT':


          case 'INT':


          case 'SPI':


                        obj.equipParamBonus[4] = value;


                        break;


                    case 'MDF':


          case 'RES':


                        obj.equipParamBonus[5] = value;


                        break;


                    case 'AGI':


          case 'SPD':


                        obj.equipParamBonus[6] = value;


                        break;


                    case 'LUK':


                        obj.equipParamBonus[7] = value;


                        break;


                }


            } else if (line.match(note2)) {


        var array = JSON.parse('[' + RegExp.$1.match(/\d+/g) + ']');


        obj.equipStates = obj.equipStates.concat(array);


      } else if (line.match(note3)) {


        var range = Yanfly.Util.getRange(parseInt(RegExp.$1),


                    parseInt(RegExp.$2));


        obj.equipStates = obj.equipStates.concat(range);


      } else if (line.match(note4)) {


        obj.equippable = false;


      } else if (line.match(note5)) {


        obj.allEquippable = true;


      } else if (line.match(note6)) {


        obj.allEquippable = false;


      }


        }


    }


};









Im not sure at all, but is possible it works, i havent tested it

Original thread: https://forums.rpgmakerweb.com/threads/equip-skill-for-actor-notetag.63542/