MOG-Battle Command EX not working well...

Hey ,

I've run into an issue where if the 1st Actor tries to use an item (during battle) to another character then I get an error. If another (not the 1st) actor tries to use an item on another character then it is good and everything is fine.

Here is the portion of that code that doesn't seem to be working right...

Spoiler
  #--------------------------------------------------------------------------

  # ● Update BC Slide Effect

  #--------------------------------------------------------------------------

  def update_bc_slide_effect(bc_sprite,index)

      return if !SLIDE_ANIMATION

      return if !COMMAND_TYPE.between?(2,3)

      if COMMAND_TYPE == 2

            nx = @sprite_command_org[index][0]

            ny = index == self.index ? @sprite_command_org[index][1] - 24 : @sprite_command_org[index][1]

      elsif COMMAND_TYPE == 3            

            nx = index == self.index ? @sprite_command_org[index][0] - 24 : @sprite_command_org[index][0]

            if SCROLL_ROW and self.index > @s_row_max

               ny = @sprite_command_org[index][1] - (@sprite_command_cwh[index][1] * (self.index - @s_row_max))

            else    

               ny = @sprite_command_org[index][1] 

            end

      end

     execute_move_rg(bc_sprite,0,bc_sprite.x,nx)

     execute_move_rg(bc_sprite,1,bc_sprite.y,ny)

     @c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]

  end
 

Line 1091 is the one above end at the bottom of the spoiler

@c_nxy = [@sprite_commands[self.index].x,@sprite_commands[self.index].y]

 

Also I have already tried to start New Game and it still doesn't work well.

Capture3.PNG
By "new game" do you mean new project or just new game? It might possibly be that you aren't copying the necessary scripts.
I understand that usually when the "undefined for nil" happens like in my image, its when the maker loads a save file (from play test) after adding in new scripts. So you usually need to start a New Game (as in starting from the beginning of your game) for the scripts to work properly together.
Okay try a new project. It could be a compatibility issue or an issue that all necessary scripts aren't there. Did you get the script from the Master Demo?

Original thread: https://forums.rpgmakerweb.com/threads/mog-battle-command-ex-not-working-well.43067/