MV SrDude's Undertale Battle System - Fixing missing/broken sprites during the first turn.

To get the sprites to always display correctly on the first turn, simply add this script before each battle:

ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 1”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 2”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 3”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 4”);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 0, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 200, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 100, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 300, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 40, true);

If some other sprites are missing, you can add strings using the same scheme. I may add others later
To get the sprites to always display correctly on the first turn, simply add this script before each battle:

ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 1”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 2”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 3”);
ImageManager.loadBitmap(“img/SumRndmDde/utb/”, “Command 4”);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 0, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 200, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 100, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 300, true);
ImageManager.loadBitmap(‘img/SumRndmDde/utb/’, ‘Heart’, 40, true);

If some other sprites are missing, you can add strings using the same scheme. I may add others later
Thank you for sharing this! Although I have run into a problem. I've tried copy and pasting this into a script command before the battle and also in the troops page, but I am getting the error "SyntaxError invalid or unexpected token." Do you know a way to fix this?
Hey, sorry for the long reply. You may have made a mistake somewhere. Or it could be a plugin incompatibility (although unlikely). I would suggest you to check the script functionality in Demo [Undertale Engine Project] which is available on SrDude's site. Also for debugging, add this script before the script described above: ImageManager.clear();
Thank you for sharing this! Although I have run into a problem. I've tried copy and pasting this into a script command before the battle and also in the troops page, but I am getting the error "SyntaxError invalid or unexpected token." Do you know a way to fix this?
For convenience, I made a small plugin that executes the above script before each battle, so there is no need to add this script before each battle.

Original thread: https://forums.rpgmakerweb.com/threads/srdudes-undertale-battle-system-fixing-missing-broken-sprites-during-the-first-turn.175395/