Revive from death item?

So, I was looking for a way to revive your hero in battle after they die, by using an item.
Problem is, I want this to work by having just one hero in the party, and this doesn't seem to work, since once they die, you get a gameover screen or just go back to map scene if there's a "continue" possibility.

What I'm looking for is an item that 1. could automatically activate when your hero dies (something like Totem of Undying from MC, keeping you into the battle), or 2. something like an inflicted state that allows you to use the item if you have it, and after one turn just gives you knockout like the usual.

It may be complicated? I dunno. Thank you all
I'd love it if I could just do it without scripting, but I'm afraid I can't.
Do you actually mean for RMXP? Or did this thread get dropped into the wrong board of the forum? If it IS actually XP, I always like to direct people to Blizzard's outrageously feature-complete script collection over on his own forum because let's face the facts, his plugins are pretty top-notch for that era. I'm not 100% if they cover your needs precisely, but I thought I remembered something about auto-revival in there...

You can find that over here.
Or if you're a bit lazy like me, you can always make a full recovery item and make some conditionals on the database like this:
1621968305924.png



It's only worked if there's still some health left tho... but you get the gist, right? You can make a totem of undying by making that kind of conditions!
Thanks for answering!
Or if you're a bit lazy like me, you can always make a full recovery item and make some conditionals on the database like this
Uhm, one problem with 1% HP condition would be, if my hero gets hit when they have more than 1% HP they die anyway, because the 1% HP condition wouldn't be activated.


If it IS actually XP, I always like to direct people to Blizzard's outrageously feature-complete script collection [...]
I meant XP indeed 🙂 And that's funny cause I was using Tons of Addons 1 & 2 but I just ignored the third part where the Auto-Revive was. I can't make it work, though? There's no explanation for that script in particular and I can't quite read ruby language.
Blizzard's auto-revive has a small bit of configuration
Code:
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

AUTO_REVIVE_IDS = [19] # IDs of status effects
REVIVE_ANIMATION_ID = 25 # ID of the Revive animation
REVIVE_TEXT = 'Auto-Revive!' # text displayed
DEAD_ID = 1 # ID of the "dead" status effect

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Configuration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
They should be pretty self-explanatory: what states trigger auto-revive, what's the text and animation that plays, and leave DEAD_ID as 1 since that should be your death state by default.

This doesn't automatically consume an item though. Rather, you use an item that grants the player the auto-revive state. The script also restores back to only 20% of your MaxHP.

You'll have to play around with this method to get what you want
Code:
class Scene_Battle

  alias judge_autorevive_later judge
  def judge
    if $game_system.AUTO_REVIVE
      flag = false
      $game_party.actors.each {|actor|
          if actor.hp == 0 && AUTO_REVIVE_IDS.any? {|i| actor.states.include?(i)}
            actor.hp += actor.maxhp / 5
            (AUTO_REVIVE_IDS + [DEAD_ID]).each {|i| actor.remove_state(i)}
            actor.animation_id, actor.damage = REVIVE_ANIMATION_ID, REVIVE_TEXT
            actor.damage_pop = flag = true
          end}
      @status_window.refresh if flag
    end
    return judge_autorevive_later
  end

end
Blizzard's auto-revive has a small bit of configuration
Hi, thanks for answering. I did find the configuration and did set everything as I needed.
What I've understood (I'm not good with scripts, can't read ruby and stuff) is that the state auto-revive has to be inflicted BEFORE dying, and that's no good because I wanna have the possibility to use an auto-revive inflicting item right after dying. I guess by "play around with the method" you also meant this, but I wouldn't know how to. I tried working it the way around with some conditioned event in battle, but I keep getting the Gameover screen anyway.

And by the way, it seems this auto-revive state doesn't save the hero from death even when inflicted before knockout... That's what I meant by "I can't make it work". :dizzy:

EDIT:
Alright, I just cheesed it by using a simple script that just calls a certain common event instead of calling the Gameover screen. With this common event I just check if the hero has the needed Item and is revived, just like a Totem of Undying!

Original thread: https://forums.rpgmakerweb.com/threads/revive-from-death-item.136818/