In LeCode's "LeTBS_Commands.js" he forgot to add in the event call and the item call for the function, "BattleManagerTBS.onCommandInput".
Go to line 461(version 0.7.72) and replace that function with this one:
BattleManagerTBS.onCommandInput = function (command) {
if (command.match(/skill\[(\d+)\]/i)) {
this.processCommandCallSkill(Number(RegExp.$1));
return;
}
if (command.match(/event\[(\d+)\]/i)) {
this.processCommandCallEvent(Number(RegExp.$1));
return;
}
if (command.match(/item\[(\d+)\]/i)) {
this.processCommandCallItem(Number(RegExp.$1));
return;
}
Lecode.S_TBS.Commands.oldBattleManagerTBS_onCommandInput.call(this, command);
};
He also mistakenly put in the wrong code for functions, "Window_TBSCommand.prototype.addCommand_item"
and "Window_TBSCommand.prototype.addCommand_event".
Go to line 326 and replace both of these functions with this:
Window_TBSCommand.prototype.addCommand_item = function (id) {
var item = $dataItems[id];
var canUse = this._entity.battler().canUse(item);
this.addCommand(item.name, "item[" + id + "]", canUse);
};
Window_TBSCommand.prototype.addCommand_event = function (id) {
var common_event = $dataCommonEvents[id];
this.addCommand(common_event.name, "event[" + id + "]", true);
};
Now you can create an equip command for your characters!
I will give an example:
First, I go to Common Events and add an event.
View attachment 135968
Next, I went to the actor, Lucius and put this in his note box.
View attachment 135967
The one I added is
event[7] 135 it will call common event 7 and 135 is the icon number.
Now, Lucius will change his weapon to Whip if it is in your party's inventory.
View attachment 135969
Here is his bow. It has a large atk range.
View attachment 135970
Now I'll equip whip, which has small atk range.
View attachment 135971
View attachment 135972
Whip is equipped and now his atk range is different, among other things.