Heal depending on states removed

Well, it can be done.

a = $game_temp.common_event_userb = $game_temp.common_event_targetb.result.removed_states.each { |s| a.add_state(s)}With Hime's script, there is no need to storing actor or enemy id.
Well, Hime's script automatically stores those variables every time a common event is called, I'm not going out of my way to store anything.

Thanks for that additional script, though, that's an interesting mechanic I will probably be implementing for either a boss battle or a new skill or both or something.
Using the $game_temp.common_event_user and $game_temp.common_event_target eliminates the need to check whether the user/target is an actor on an enemy....
The user could be an actor or an enemy depending on who's using the skill on what.

Original thread: https://forums.rpgmakerweb.com/threads/heal-depending-on-states-removed.25386/