How to make a skill that deals massive damage to all enemies but kills the user

I am fairly new to rpgmakervxace, and I was wondering if this is possible?
Everything is possible if you try hard enough.
I have to test it, but I think you can do it with Lunatic Damage.

You should create a line under line 142 that state:

Ruby:
when /KILLWHENUSED/i
a.add_state(1)

Then in that skill notetag add the:

<custom damage>
NORMULA FORMULA
KILLWHENUSED
</custom damage>

This will cause to deal the damage in your formula, then kill the user.
a.add_state(1); [enter damage formula here]

There you go! Or you can do...
a.hp -= a.hp; [enter damage formula here]
a.add_state(1); [enter damage formula here]

There you go! Or you can do...
a.hp -= a.hp; [enter damage formula here]
I feel so dumb... That's right you don't even need a script for something that simple.
Thanks a bunch for the responses! I very much appreciate it

Original thread: https://forums.rpgmakerweb.com/threads/how-to-make-a-skill-that-deals-massive-damage-to-all-enemies-but-kills-the-user.150047/