Exploding Everyone

Is there any way to create a skill that affects all enemies and all allies at once? Basically, a big bomb blast that targets everyone?

Using common events to force a secondary self-damaging skill has a lot of problems (namely the delay between hitting the enemies and hitting the parties and the awkward skill use animation).

I'd need to do this without a plugin, so any suggestions are appreciated.
The simple answer is that you can't do it without a plugin without a delay between hitting the enemies and hitting the party. If you don't want to use plugins, you need to make a trade-off with what's possible in the default engine.

I think the closest you could get is making the skill scope "user" and not setting anything for its damage in the skill itself. Then just do the damage for *everyone* in the common event, so it should happen simultaneously.

Very cheap and dirty implementation of this:

Code:
let targets = $gameTroop.aliveMembers().concat($gameParty.aliveMembers());
targets.forEach(function(target) {
  let damage = 200 - target.def * 4;
  target.gainHp(-damage);
  target.startDamagePopup();
});
That script actually works pretty well, and its simple enough for me to adjust.

There's just a weird effect...I set the damage to just a flat 200 just check for consistency and it hits the enemy and the allies at more or less the same time, for 200 damage each. Mission accomplished there. But the actual user of the skill doesn't take damage at the same time, instead there's a short delay and they take a much smaller amount of damage (which has ranged from 0 to 33 so far).
Try this plugin. Just add <scope:everyone> to the skill's note box, and set up the skill in the normal way. It doesn't matter what you choose from the scope dropdown menu - the note tag overrides that.

See my plugin thread for terms. I'm not going to post it there just yet though, because the other feature it adds has some minor issues I want to work out first.
I'm actually avoiding plugins because this is intended for a project that I'll be putting into MZ once it's release. But if it's something you're planning to port over shortly after MZ comes out then I might be able to use it.
Sorry, I missed where you said no plugins (unless you edited that in after?).

I'm not planning to port it at this time since I intend to continue developing my project in MV for now, but it's not a very complicated plugin, so I imagine someone else could port it without much difficulty. (In fact, it's based on the Kadokawa plugin that allows targeting dead and alive enemies with a single skill.) Just remember to use a different filename in that case (as mentioned in the terms in my thread).

Do keep in mind that the script Trihan posted could in theory have the same problem as a plugin - there's no guarantee that it will work without changes in MZ. If you want to keep your game as portable to MZ as possible, you should be avoiding script calls as well as plugins.

Original thread: https://forums.rpgmakerweb.com/threads/exploding-everyone.124506/