I tried it on both an equipped and unequipped enemy. Both crashed the game. I guess I will have to make do with the default prediction screen, Which isn't too bad, I guess.
try this script to solve error 2
Spoiler
JavaScript:
if (this._actionArray[1] != this._targetArray[1] && this._targetArray[1].currentAction() !== null) {
if (this._targetArray[1].isActor()) {
this.drawIcon(this._targetArray[1].weapons()[0].iconIndex, this.windowWidth() - Window_Base._iconWidth * 2, this.fittingHeight(7));
} else if (this._targetArray[1].enemy().meta.srpgWeapon) {
this.drawIcon($dataWeapons[this._targetArray[1].enemy().meta.srpgWeapon].iconIndex, this.windowWidth() - 2 * Window_Base._iconWidth, this.fittingHeight(7));
}
}this._targetArray[1].meta.srpgWeapon
- this cant work the meta is not stored on the EnemyBattler
with
this._targetArray[1].enemy().meta.srpgWeapon
- the meta is stored on "enemy()" of the EnemyBattler
i should have recognized that earlier ^^