Crash with Hime Untargetable State whenever I use an item! Please Help!

so when I do not get the entire thing it one piece, I am clueless as to where to put the modified code within the "foreign" language.
What Ron give you was a "patch".
Essentially, what scripts are doing is modifying the behavior of previous scripts above it.
Even something as simple as
Code:
class Game_Party
  def max_battle_members
    return 2
  end
end
and you put it as a new script, it will change the max battle members to 2. It modifies Game_Party in the default scripts, line 73.

So, the instruction is clear.
Put it below Hime's script (to fix/modify its behavior without editing the script directly)
I see. I get it now.

Thanks for clarifying.
Let's see if you really got it this time...

Basically, it loads scripts something like this:

Actor Script
Enemy Script
Battle Command Window Script
Battle Spriteset Script
Battle Scene Script
[Materials Section]
Custom Actor Script #1
Custom Actor Script #2
Custom Battle Command Window Script #1
etc.

Anything that is aliased will be added to the original methods.
Anything that is overwritten, well, disregards the methods that they are now replacing.

What Ron has been asking you is to overwrite a specific method.
OK so that was an easy test. My suggestion above is almost correct.
when using items and an actor is inflicted with the untargetable state the actor selected will not be the one it is used on. Hold on.

Got it.
Ruby:
class Window_BattleActor < Window_BattleStatus
  def actor_index
    id = $game_party.targetable_members[@index].id
    $game_party.battle_members.each_with_index do |bat, i|
      return i if bat.id == id
    end
    return nil
  end
end
@MoltresRider
You made me make and account, i had to thank you! 😍

Original thread: https://forums.rpgmakerweb.com/threads/crash-with-hime-untargetable-state-whenever-i-use-an-item-please-help.157055/