Sprite offset script help for xp

Yeah, title. Recently picked up xp and have been trying to make a point and click game with it. The only issue is the area of the screen i have set up to be the face of the characters is 4 tiles wide, so i cant center the faces within it. I`ve been poking around and found you can edit the offsets in Sprite_Character. Heres what i have:

Ruby:
#==============================================================================
# ** Sprite_Character
#------------------------------------------------------------------------------
#  This sprite is used to display the character.It observes the Game_Character
#  class and automatically changes sprite conditions.
#==============================================================================

class Sprite_Character < RPG::Sprite
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_accessor :character                # character
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     viewport  : viewport
  #     character : character (Game_Character)
  #--------------------------------------------------------------------------
  def initialize(viewport, character = nil)
    super(viewport)
    @character = character
    update
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    # If tile ID, file name, or hue are different from current ones
    if @tile_id != @character.tile_id or
       @character_name != @character.character_name or
       @character_hue != @character.character_hue
      # Remember tile ID, file name, and hue
      @tile_id = @character.tile_id
      @character_name = @character.character_name
      @character_hue = @character.character_hue
      # If tile ID value is valid
      if @tile_id >= 384
        self.bitmap = RPG::Cache.tile($game_map.tileset_name,
          @tile_id, @character.character_hue)
        self.src_rect.set(0, 0, 32, 32)
        self.ox = 16
        self.oy = 32
      # If tile ID value is invalid
      else
        self.bitmap = RPG::Cache.character(@character.character_name,
          @character.character_hue)
        @cw = bitmap.width / 4
        @ch = bitmap.height / 4
        self.ox = @cw / 2
        self.oy = @ch
      end
    end

    # Set visible situation
    self.visible = (not @character.transparent)
    # If graphic is character
    if @tile_id == 0
      # Set rectangular transfer
      sx = @character.pattern * @cw
      sy = (@character.direction - 2) / 2 * @ch
      self.src_rect.set(sx, sy, @cw, @ch)
    end
    # Set sprite coordinates
              if @character_name = "offset"
    self.x = @character.screen_x + 16
    self.y = @character.screen_y
    self.z = @character.screen_z(@ch)
    else
    self.x = @character.screen_x - 16
    self.y = @character.screen_y
    self.z = @character.screen_z(@ch)
              if @character_name = "Under"
    self.x = @character.screen_x - 16
    self.y = @character.screen_y
    self.z = @character.screen_z(@ch)
    else
    self.x = @character.screen_x - 16
    self.y = @character.screen_y
    self.z = @character.screen_z(@ch)
  end
  end
    # Set opacity level, blend method, and bush depth
    self.opacity = @character.opacity
    self.blend_type = @character.blend_type
    self.bush_depth = @character.bush_depth
    # Animation
    if @character.animation_id != 0
      animation = $data_animations[@character.animation_id]
      animation(animation, true)
      @character.animation_id = 0
    end
  end
end

The issue is this sets every event on screen to be offset by 16 pixels, which i dont want. Is there a simpler way to do this or a way to have this affect only one event? Thanks!

Heres what it looks like whith the offset code on and off. I want the mannequin to be like the first screenshot and everything else like the second.
Screenshot (67).png
Screenshot (68).png
Hi,
so, if I understand it correctly, you are showing those graphics via events? Could you be please provide more info about how your chracter graphics are constructed? I see some custom checking for names like "offset", so I assume you look after the name of the graphics file, correct? A Screenshot of how your map is set and how the events are placed would be also helpful to get the whole picture.

Original thread: https://forums.rpgmakerweb.com/threads/sprite-offset-script-help-for-xp.152640/