Determining Who's Who in Scene_Battle

With all my troubles, this is one of the things I really need an answer as well.

First off, I find it mysterious how the death and revive works.

Mainly this is my problem:

def revive @hp = 1 if @hp == 0 endOn this script block, I wanted to insert a check that if any of my actors has a note tag <neverdie> and that actor who has that note tag died, I want them to auto revive. Is this possible?

I just made a for loop to detect the notetag, but other than that, for the life of me I have no idea how to make this work.

Second question, is it also possible to determine the actor a state is being applied on? Say one of my actors was poisoned. Then I healed that actor. Is there a way to determine who that actor is so I can make an animation on that actor?

If so, how do I do it and the animation? Since the animation has a target and animation id... how can I address that target?
Could you get me the method that calls that 'revive' method? We can start from there.
on Scene_Battle:

def die @hp = 0 clear_states clear_buffs end #-------------------------------------------------------------------------- # * Revive from Knock Out #-------------------------------------------------------------------------- def revive @hp = 1 if @hp == 0 endon BattleManager

#-------------------------------------------------------------------------- # * Revive Battle Members (When Defeated) #-------------------------------------------------------------------------- def self.revive_battle_members $game_party.battle_members.each do |actor| actor.hp = 1 if actor.dead? end endBy this I want to insert a script where I want to determine if the one who died has a note tag and if that actor has that notetag, automatically revive that actor who died.
None of those blocks is containing method that calls 'revive' method.

Try control + shift + f >>>>> "revive"
How about this one?

Code:
  #--------------------------------------------------------------------------  # * Remove State  #--------------------------------------------------------------------------  def remove_state(state_id)    if state?(state_id)      revive if state_id == death_state_id      erase_state(state_id)      refresh      @result.removed_states.push(state_id).uniq!    end  end
`revive` is defined in Game_Battler or something, so all you need is to override the definition in Game_Actor and Game_Enemy with your own custom note-tag checking logic.
Gotcha, try the following:

Code:
def die  @hp = 0  clear_states  clear_buffs  (revive if $data_actors[self.id].note == "Lalaland") if self.is_a?(Game_Actor)end
Alright, got it working. Could you also assign specific animation into it?
Do you know how and where animation is shown?
I worked with it and it works, thanks Mike 😀

Original thread: https://forums.rpgmakerweb.com/threads/determining-whos-who-in-scene_battle.23497/