How make damage shield like this?

Code:
var last = this._actionList[this._actionList.length - 1];

That's the line from BattleManager.addText that's breaking by the looks of it. I'm guessing Selection Control does something with _actionList that is interfering with it.

Sorry but I didn't understand.

var last = this._actionList[this._actionList.length-1];

Are you saying that there is this syntax?
Or is it something you should put somewhere?

If not, is it just to explain that the selection control has that syntax and gives an error?
The error is being caused by BattleManager.addText because it can't read property 'length' of undefined. The line I pasted is the one that is causing the crash.
The error is being caused by BattleManager.addText because it can't read property 'length' of undefined. The line I pasted is the one that is causing the crash.

So...
Does it mean that I get an error because I wrote it by putting it without a space?
No, this isn't anything you've done if just turning the selection plugin off fixes it. I'm just explaining to you which line of code is causing the error you see in the console. I'm not sure *why* the selection plugin is causing it.

Original thread: https://forums.rpgmakerweb.com/threads/how-make-damage-shield-like-this.121633/