HP Damage Issue - How to hurt myself with Poison Item

I can't seem to be able to create an item that hurts the user and I don't understand why. If anyone could help me out, I'd appreciate it.

I can create an item (potion) that can heal the user. However, I can't make an item (Poison) that deals damage to the user.

Since my healing potion works, I simply copied it and changed the "Damage" to "HP Damage" and have 30 in the formula. However, when I try to drink the poison, I get an error sound.

1725827345152.png


I'm sure there is a reason, but why isn't this working the way I thought it would?

*Edit

Never mind. I set the Type of the "Damage" to None and in the Effects section set the Recovery to negative. I would have deleted this post, but I'm not sure how to do that.
use effect type on the left side, you can, Hime Effect Condition extend this effect
in the notebox I think or effect type list to dmg the player for a wrong class or any
other things of missing states.

this help you easier or try YEP_BuffAndStatesCore to make this effect through there
as passive states, as there are some methods, I think Hime is the best one for this effect.
When using an item, the core scripts check to see if it has any "valid" result on the target:
JavaScript:
Game_Action.prototype.testApply = function(target) {
    return (this.isForDeadFriend() === target.isDead() &&
            ($gameParty.inBattle() || this.isForOpponent() ||
            (this.isHpRecover() && target.hp < target.mhp) ||
            (this.isMpRecover() && target.mp < target.mmp) ||
            (this.hasItemAnyValidEffects(target))));
};
Your item is not being used in battle, it's not for an opponent, it's not of type Recover HP or MP, and it has no effects...so the engine sees it as "invalid".

I think you could get around this by adding an effect, e.g.
  1. Recover HP: -30 (and set the damage type to None). Note that this will make the value be affected by the Pharmacology (PHA) Sp-param: when using items from the menu, the user is the one with highest PHA who can act.

  2. Alternatively, try Add State: Dead 0%. Add State effects are "valid" iff the target does not already have that state, and your item can't be used by someone who's already dead. 0% chance means it will never actually apply.
Never mind. I set the Type of the "Damage" to None and in the Effects section set the Recovery to negative. I would have deleted this post, but I'm not sure how to do that.
I think you just report your post if I remember right.
Nah, it won't get deleted. Reporting it will close the thread.
Posts are only ever deleted for serious reasons (e.g. highly inflammatory, defamation etc.) and leaving it allows others to see the solution.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

In future, if your support thread is solved, you can report it to be closed by clicking the Report button on one of your posts in that thread:

317210

When reporting a post, you'll be asked to give a reason. You can enter "problem solved" or "can be closed", something like that. Reports show up for the moderator team, and one of us can close the thread. 👋

Original thread: https://forums.rpgmakerweb.com/threads/hp-damage-issue-how-to-hurt-myself-with-poison-item.171776/