How do you make a revival item?

So I tried to make a revival item but it didn't seem to work. When I tried it in battle this error came up:


nJFVfVW.jpg



Here is the item I used:


x9bjKbA.png



Any ideas what I did wrong? Also I want it so that I cannot use it on alive actors (if possible I would like it to not be able to target alive actors at all).
For one you need to set the target scope to Ally (Dead) rather then Ally. Then you need to remove the HP recovery from the formula box and leave it blank.
For one you need to set the target scope to Ally (Dead) rather then Ally. Then you need to remove the HP recovery from the formula box and leave it blank.

Oh okay. So if I revive the actor, how do I specify how much health% he has?
After you remove the death state, put underneath it the command for HP Recovery. Then you can either heal by a percentage or set number. Note that when the Death State is removed the revived person gains 1 HP.
If you want to restore to full HP, use "b.mhp". That might keep it from crashing as well.
After you remove the death state, put underneath it the command for HP Recovery. Then you can either heal by a percentage or set number. Note that when the Death State is removed the revived person gains 1 HP.

Oh okay, thanks dude.

If you want to restore to full HP, use "b.mhp". That might keep it from crashing as well.

I'll keep that in mind, thanks.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-make-a-revival-item.56632/