Is it possible to make an Actor/Enemy Immune to a Skill?

Hello there, so i'm wondering... is there a way in Ace that i could make an Actor/Enemy immune to a skill instead of a state?

What i want to do is making a skill that kills instantly but that is unable to kill certain enemies, these enemies can't be immune to the death state, 'cause i want them to die but not to die for that certain skill. Also, if it's possible, can it be possible without using any additional states?(also sorry for my english, i'm not a native speaker 😀  ).

Any idea would be greatly appreciated.
Several ways - I think the easiest would be to use damage elements.

Give the skill an unique damage element and an extremely high damage - and for any actor or enemy that should be immune to that skill, give them a feature with the elemental damage rate = 0%.
Why didn't i think of that?  😀

Thank you, man it works perfectly!
Can't you just add "if a.id !== x;" or some such variant to the formula? (Sorry if that's incorrect format, I'm only versed in the math equations done in JavaScript)
And I need actual tips because I was planning on doing this as well and I think a new damage element would have to be worked around for any enemies that are specially affected by all skills of the type that the custom element is masquerading as.
SadGhoster87, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.

If you want to add something, simply click the Edit button next to the Multiquote button and add it to your last post.

And 'a' always equals the user of the skill, and here I think you are wanting to refer to the enemy.  So, for example, if the enemy ID is 82, then the addition at the beginning of the formula would be

b.enemy? && b.enemy_id == 82

If you have any other query, I suggest you start a separate thread and not hijack this one.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-make-an-actor-enemy-immune-to-a-skill.44244/