Help with 'In The Zone' skill

Hi all -
Trying to adapt the 'In The Zone' skill from XCom into MV.

This ability should do damage to one selected target. If that damage kills the target, it repeats the attack on another randomly-selected target. If THAT damage kills the target, it repeats again to another randomly-selected target until the damage does not deal a killing blow.

Any thoughts on how this could be completed? I'm using Yanfly's Battle Core plugin if that helps provide more options.
You'll need JavaScripting of some sorts to do this, and probably a plug-in to add the ability to read javascript code from the notetags. I know Yanfly has a few popular plug-ins that can help you achieve this, but there might be others. Search for plug-ins that help you control targeting in skills, and see what you find.

Also, since this will require JavaScript, I'm moving this to JavaScript Support. If you decide you want a plug-in for this, let us know (by reporting your first post) and ask us to move this to Plug-in Requests please.

Original thread: https://forums.rpgmakerweb.com/threads/help-with-in-the-zone-skill.76295/