Not sure if this fits here. It seems similar enough.
In RPG Maker MZ's code, where are the lines of code that add the skill selected by the player on the battle screen to that player's action array and change BattleManager._phase? I can't seem to find them and I need to change what that does.
For reference, somewhere in the code, BattleManager._phase is changed from "input" to "turn". I can follow the code to where the below code gets called, but I don't understand much beyond that. It's also possible I followed the wrong lines of code and have ended up on a wild goose chase. Any help would be greatly appreciated.
Code:
Game_Troop.prototype.updateInterpreter = function() {
this._interpreter.update();
};
That's lines 5877-5879 of rmmz-objects.js
Edit: What I mean to say is that the function GameTroop.prototype.updateInterpreter gets called. Not that it gets defined at that point. So in other words,
Code:
this._interpreter.update();
is called and then things stop making sense to me.