If you are using MV then this will not work for you.
RPG Maker XP VX and VX Ace use RGSS (Ruby) code called scripts.
RPG Maker MV and MZ use Javascript.
Unless you are using VX ace now, this will not work for you.
If you are using MV then this will not work for you.
Original thread: https://forums.rpgmakerweb.com/threads/battle-log-waits-for-button-input.102359/