How do I make an Item damage an actor but heal the rest?

My thing is the following:
I want an object that can heal and buff the agility of an actor (easy thing), BUT if a specific actor consumes it, it insta-kills him.

I tried with "b.$gameActors.actor(1) == true; -9999; else; 700; end" but doesn't work

Any help?
Assuming this is specifically for actors, try this in the damage formula:
JavaScript:
b.actorId() === 1 ? -9999 : 700
b.actorId() === 1 ? -9999 : 700
It worked halfway, when I try to put the variable in negative, it gives me a result of 0, but the healing works anyway

I also tried putting damage type instead of healing type, it gave me the same result but inverted
If I can't use the negative formula to deal damage, can I try putting the Dead status on it directly?
Try this instead:
JavaScript:
b.actorId() === 1 ? b.die() : 700
I think it might still try to give you a heal/damage result. May be using b.gainHp(-9999) instead of b.die() just to try something else. Not at the computer at the moment so I can't fully test anything.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-make-an-item-damage-an-actor-but-heal-the-rest.176839/