Equip Skill with YEP_Equip Battle Skill

http://yanfly.moe/2016/04/08/yep-90-equip-battle-skills-rpg-maker-mv/

With this plugin you need to equip the skills that each actor gonna use in battle, the help section of the script says you can use it with both script calls or the said Lunatic Mode:

actor.equipSkill(id, slot)


- This will cause the actor to equip skill ID into the specific slot.


This will bypass whether or not the actor can equip the skill or not.


W.E i'm getting sintax erros and even 'actor not defined' errors.


Error:
 

Spoiler
rpg_managers.js:1722 ReferenceError: actor is not defined
    at Game_Interpreter.eval (eval at <anonymous> (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:10439:10), <anonymous>:1:1)
    at Game_Interpreter.command355 (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:10439:5)
    at Game_Interpreter.executeCommand (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:8897:34)
    at Game_Interpreter.update (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:8805:19)
    at Game_Event.updateParallel (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:8716:27)
    at Game_Event.update (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:8708:10)
    at file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:6033:15
    at Array.forEach (native)
    at Game_Map.updateEvents (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:6032:19)
    at Game_Map.update (file:///D:/Drive/Project%20TimeWarp/js/rpg_objects.js:5992:10)rpg_managers.js:1722 SceneManager.catchException


I know nothing about js either, though the command looked simple.

Using this plugin without this specific feature makes its purpose kind of stupid if you don't make a tutorial for the player about "how to equip skills" and having this right on the beginning of a demo would be a pain in the uranus. I'll be glad if somebody give me a hand here.
Did you start a new game (required) or did you try to load an old savefile from before the plugin was added (usually won't work and produce errors similiar to yours)?


Can you post screenshots of where and how you placed those commands?


Can you give a screenshot of your plugin manager to see if you have anything that might cause incompatibilities?
I aways start a new game to test those things, thx god my project is on the beginning.

I was using a paralel event to make the script call, but i dunno for what i have replace the 'actor' part, i can't place it as a note tag cuz i dunno if i should place it on the actor or on his class, i've tried this before and nothing happened as far as i remember.

Isn't it better to post my plugin,js list instead of a screenshot, i'm using over 70 active plugins?
 

Spoiler
{"name":"TDDP_PreloadManager","status":true,
{"name":"WebAudioCache","status":true,
{"name":"TDDP_FluidTimestep","status":true,
{"name":"YEP_CoreEngine","status":true,
{"name":"VE_BasicModule","status":true,
{"name":"ARP_CommandIcons","status":false,
{"name":"YEP_MainMenuManager","status":true,
{"name":"AltMenuScreen","status":true,
{"name":"GALV_BustMenu","status":true,
{"name":"PrettyGauges","status":true,
{"name":"rito_xpbar_menu","status":true,
{"name":"MenuLocation","status":false,
{"name":"--------------------","status":true,
{"name":"YEP_ClassChangeCore","status":false,
{"name":"YEP_X_Subclass","status":false,
{"name":"--------------------","status":true,
{"name":"YEP_BattleEngineCore","status":true,
{"name":"YEP_X_ActSeqPack1","status":true,
{"name":"YEP_X_ActSeqPack2","status":true,
{"name":"YEP_X_ActSeqPack3","status":true,
{"name":"YEP_X_AnimatedSVEnemies","status":true,
{"name":"VE_BattleStatusWindow","status":true,
{"name":"VE_DirectCommands","status":true,
{"name":"VE_BattleCommandWindow","status":true,
{"name":"YEP_X_BattleSysCTB","status":true,
{"name":"YEP_X_VisualHpGauge","status":true,
{"name":"MOG_BossHP","status":true,
{"name":"MOG_ComboCounter","status":true,
{"name":"MOG_CollapseEffects","status":true,
{"name":"MOG_DmgPopupEffects","status":true,
{"name":"YEP_BattleAICore","status":true,
{"name":"YEP_BuffsStatesCore","status":true,
{"name":"YEP_X_TickBasedRegen","status":true,
{"name":"YEP_DamageCore","status":true,
{"name":"YEP_X_ArmorScaling","status":true,
{"name":"YEP_X_CriticalControl","status":true,
{"name":"YEP_TargetCore","status":true,
{"name":"YEP_X_SelectionControl","status":true,
{"name":"YEP_VictoryAftermath","status":true,
{"name":"YEP_X_AftermathLevelUp","status":true,
{"name":"--------------------","status":true,
{"name":"YEP_EquipCore","status":true,
{"name":"YEP_WeaponUnleash","status":true,
{"name":"--------------------","status":true,
{"name":"HIME_EquipSlotsCore","status":true,
{"name":"YEP_ShopMenuCore","status":true,
{"name":"--------------------","status":true,
{"name":"YEP_SkillCore","status":true,
{"name":"YEP_SkillLearnSystem","status":true,
{"name":"$ellyestatesdamage","status":true,
{"name":"YEP_AutoPassiveStates","status":true,
{"name":"--------------------","status":true,
{"name":"YEP_EnemyLevels","status":true,
{"name":"MrTS_StaticExp","status":true,
{"name":"YEP_EnhancedTP","status":true,
{"name":"YEP_EquipBattleSkills","status":true,
{"name":"YEP_JobPoints","status":true,
{"name":"DreamX_Ext_VictoryAftermath","status":true,
{"name":"DreamX_TouchSurpriseBattles","status":true,
{"name":"--------------------","status":true,
{"name":"YEP_StatusMenuCore","status":true,
{"name":"DreamX_StateDescriptions","status":true,
{"name":"YEP_X_BattleStatistics","status":true,
{"name":"MrTS_DeathSounds","status":true,
{"name":"--------------------","status":true,
{"name":"YEP_KeyboardConfig","status":true,
{"name":"YEP_CreditsPage","status":true,
{"name":"YEP_FpsSynchOption","status":true,
{"name":"MrTS_SimpleSaveLoadMenu","status":true,
{"name":"KloeEssentials","status":true,
{"name":"MrTS_PopUp","status":true,
{"name":"MOG_Scrollbar","status":true,
{"name":"MBS_SmoothScroll","status":true,
{"name":"SAN_AnalogMove","status":true,
{"name":"ARP_TitleCommandExit","status":true,
{"name":"YED_WordWrap","status":true,
{"name":"StaticCursorBox","status":true,
{"name":"SOUL_MV Destination Cursor","status":true,
{"name":"TDDP_MouseSystemEx","status":true,
{"name":"VolumeBars","status":true,
{"name":"VE_ControlText","status":true,
{"name":"MuteMinimize","status":true,
{"name":"OrangeTimeSystem","status":true,
{"name":"OrangeDayAndNight","status":true,
{"name":"Fullscreen","status":true,
{"name":"YEP_RegionRestrictions","status":true,
];

Original thread: https://forums.rpgmakerweb.com/threads/equip-skill-with-yep_equip-battle-skill.61745/