"Death Gamble" Skill help

i'm trying to create a skill where every time it hits, it can do one of 3 things:

it can either:
1) inflict death on the enemy
2) inflict death on the user
3) deal normal damage

i'm trying to find a way where i can have the users luck stat affect the odds of who gets hit by death

i don't think its able to be done properly through the damage formula, because even if it kills the enemy it still has a chance to also inflict death on the user. i have gotten to work though using common events, but i haven't found a way for the luck stat to have an effect though that method

any suggestions would be appreciated!
i don't think its able to be done properly through the damage formula,
No, you can do it only by using damage formula.

i'm trying to find a way where i can have the users luck stat affect the odds of who gets hit by death
However, you need to tell how luck affects the chance. Or just how the skill should work.

Original thread: https://forums.rpgmakerweb.com/threads/death-gamble-skill-help.120028/