MV YEP_X_ChangeBattleEquip as a Skill instead of Command

So before going too deep into this i want to say that i did manage to make a skill that you access the equip menu in battle with,the problem is that it makes enemies skip an upcoming action:

Example: If an enemy was about to use Lightning Strike but first an actor uses the ChangeEquip skill that calls a common event with the script call SceneManager.push(Scene_Equip); it will make the enemy skip an upcoming action.


<AI Priority> ( Just wanted to showcase what i meant )

Turn === 1: Skill 62, Lowest hp% (Here the actor uses the skill and since he used it the enemy will skip this action).

Turn === 2: Skill 62, Lowest hp% (The enemy will start using this skill if the actor used the ChangeEquip skill).

Turn === 3: Skill 63, Lowest hp%

Now let's see what's wrong with YEP_X_ChangeBattleEquip:
- So first of all,since this is a command it doesn't have a description/help box, i know that there are plugins for this one that i'm using has a feature to make commands have description/help boxes but i don't want that.
- You can set the command to have a cooldown but it won't write the text like with skills using YEP_X_SkillCooldowns.
- Using YEP_X_SkillCooldowns i made my skill have 2 free uses before initiating the cooldown, not sure how to do this with this plugin.


Spoiler: Image 1 VERY BIG
Screenshot_39.png

Spoiler: Image 2
Screenshot_40.png

Spoiler: Image 3
Screenshot_41.png



Spoiler: Image 4
Screenshot_42.png

Spoiler: Image 5
Screenshot_43.png

Spoiler: Image 6
Screenshot_44.png
Sigh...of course i somehow managed to fix this.
basically it was a problem related to how Yanfly's BattleAI counted the turns.
I switched the format from this:

Turn === 1: Skill 62, Lowest hp%

to this:


Variable 20 === 1: Skill 62, Lowest hp%

Var 20 adds +1 at the end of the turn.

I think this should be fixed even thought it's not what i requested.

Original thread: https://forums.rpgmakerweb.com/threads/yep_x_changebattleequip-as-a-skill-instead-of-command.138792/