Auto-Life

Here you go.

Add state 121 on someone (you can change it) and then watch them revive once killed immediately <:3c

Code:
class Game_Battler  #--------------------------------------------------------------------------  # ● Add New State (Second Chance)  #--------------------------------------------------------------------------  def add_new_state(state_id)    if state_id == death_state_id      if self.state?(121)        self.hp = self.mhp        self.remove_state(121)        self.tp = 0      else        die      end    end    @states.push(state_id)    on_restrict if restriction > 0    sort_states    refresh  endend
Thank you Archeia. Did you write this up, and can I use it commercially if you did? (I don't act upon implied consent regarding anything to do with money or commercialization.) Also, is there a way to apply the state to an equippable item?
1. yes

2. yes

3. not that I know of. maybe there's a script out there? I usually just event everything. Try this one?
Thank you again. I appreciate it. And thanks to all of those who tried to help. I also appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/auto-life.43043/