=begin

Instructions:

FRAME_NB_VARIABLE_ID is the ID of the variable you will use to set the number
of frames for move picture.

FRAME_NB_ORIG is the token frame number which will be substituted. For instance,
if you set it to 1, the event command will only use the variable as a parameter
if you enter 1 frame in the command itself. This is done so you only need to use
it for numbers over 600.
  
  ~Kread

=end

module KRX
  
  FRAME_NB_VARIABLE_ID = 99
  FRAME_NB_ORIG = 1
  
end

class Game_Interpreter
  #--------------------------------------------------------------------------
  # * Move Picture
  #--------------------------------------------------------------------------
  def command_232
    if @params[3] == 0    # Direct designation
      x = @params[4]
      y = @params[5]
    else                  # Designation with variables
      x = $game_variables[@params[4]]
      y = $game_variables[@params[5]]
    end
    if @params[10] == KRX::FRAME_NB_ORIG
      dur = $game_variables[KRX::FRAME_NB_VARIABLE_ID]
    else
      dur = @params[10]
    end
    screen.pictures[@params[0]].move(@params[2], x, y, @params[6],
      @params[7], @params[8], @params[9], dur)
    wait(dur) if @params[11]
  end
end