@Lecode
Okay, new update here.
Boss gave me a python assignment, and regex came up which led me to this solution
(Will do more testing to let you know if it 100% works)
Working Strictly in
LeTBS_Commands.js
/*-------------------------------------------------------------------------
* TBSEntity
-------------------------------------------------------------------------*/
TBSEntity.prototype.getCommandsString = function () {
there is a line for states, and one for equips.
extra += " " + state.leTbs_commands;
under this.battler().states().foreach
extra += " " + equip.leTbs_commands;
under if(this.battler().isActor())
Because this uses space as a delimiter, it doesn't work when it comes to multiple commands (unless they come from a single source)
However, I changed these to
extra += "," + state.leTbs_commands;
extra += "," + equip.leTbs_commands;
While following the trace, it looks fine, but crashes, because it leaves a leading and sometimes trailing comma (if no commands)
I tested this theory by using
extra = "Skill[1],Skill[2]"
and it worked, everyone had these 2 skills.
SO
Before the return statement, I added regex to remove any leading/trailing commas
extra=extra.replace(/(^,)|(,$)/g,"");
return value.replace("[extra]", extra);
Here's my battle test.
user has sword, bow
and state barrage(inflicted before battle)
Sword gives skill Sword
and bow gives skill Bow
State gives:
Shoot
Reload

Looks good, lets check the other guy

Strange, he should have a sword:
But a database check proves me wrong.
So now, I have modified commands to be compatible with Yanfly Equip Core plugin.
ALL USERS:
Please feel free to PM me about this if you are interested.