If you start a battle using an enemy with it's graphic set to "none" the game crashes with the message that the width or height is undefined.
However I discovered that you can "transform" an enemy with a graphic into an enemy with it's graphic set to none. And the game will continue just fine.
I believe using a blank enemy graphic was meant to be allowed. After all, the system has no problem using an Actor with no graphic.
Solution:
I traced the problem to the Sprite_Enemy.updateStateSprite function in rmmz_sprites.js. It tries to place a state icon by referencing the bitmap's height, so when there's no bitmap an error occurs.
Other Sprite_Enemy functions begin with an if statement checking if there is even a bitmap to update.
Sprite_Enemy.updateStateSprite is missing this; adding it fixes the error.
However I discovered that you can "transform" an enemy with a graphic into an enemy with it's graphic set to none. And the game will continue just fine.
I believe using a blank enemy graphic was meant to be allowed. After all, the system has no problem using an Actor with no graphic.
Solution:
I traced the problem to the Sprite_Enemy.updateStateSprite function in rmmz_sprites.js. It tries to place a state icon by referencing the bitmap's height, so when there's no bitmap an error occurs.
Other Sprite_Enemy functions begin with an if statement checking if there is even a bitmap to update.
Code:
if (this.bitmap){...