Attack with variable effects?

I am pondering a technique called Necromantic Dominion for a game and want it to only effect undead creatures, which is easy enough by creating a unique typing and giving all non-undead creatures immunity to that type. This is the easy part, the hard part is the effect I would like to give it. Basically, I will be using a tier system for the game I am planning to impliment this idea into, and when first obtained I want it to insta-kill tier 1 undead and just do damage to higher tier undead that ignores their magic defense, or in some cases partial magic immunity.

At level 10 as a necromancer, I want to change it to Insta-kill undead of Tier 2 and lower and increase the damage dealt to higher tiered undead, at level 20 as a Necromancer I want to make the insta-kill work on Tier 3 and lower, and at level 30 as a Necromancer I want it to Insta-kill Tier 4 and lower undead.

It is simple enough to make 4 separate abilities and just replace the old one when it reaches that point, so all I need to do is figure out how to make the variable effects work depending upon which tier the undead is assigned to.
Hmm, I'm rather newbie and someone probably will have better idea but here's how I see that. Instead of one undead type, have one for each tier. The skills would then cause on tier 1 autodeath 1, on tier 2 autodeath 1 and 2, etc. Normal creatures would be immune to all of them, and the undead ones only to those that are higher tier than theirs. Then if the damage the skill does is of specific element you can make the undead monsters weak to that element so they take higher damage while normal monsters do not.

That's maybe a bit confusingly written, sorry.
Hmm, I'm rather newbie and someone probably will have better idea but here's how I see that. Instead of one undead type, have one for each tier. The skills would then cause on tier 1 autodeath 1, on tier 2 autodeath 1 and 2, etc. Normal creatures would be immune to all of them, and the undead ones only to those that are higher tier than theirs. Then if the damage the skill does is of specific element you can make the undead monsters weak to that element so they take higher damage while normal monsters do not.

That's maybe a bit confusingly written, sorry.
I thought about it and may have come up with a solution that works, thanks to damage core. Rather then creating seperate types for the tiers of undead, I might make separate types for the attacks themselves, and use damage core to let the attacks exceed 9999 damage. That way I have to deal with 4 types instead of 10.

And I can just have some kind of insane multiplier for weakness on the ones that are\ vulnerable, resulting in a very satisfying 999,999 damage each time or something. I'd just have to give all non-undead enemies a x0 multiplier against those attacks and I guess that would technically have the effect I desire. Thanks for the input, after reading your comment I was able to think of it from another direction. I'm not sure whether or not there is any better way of doing this, but at least it is sorted out.

Original thread: https://forums.rpgmakerweb.com/threads/attack-with-variable-effects.93921/