Script to change the offset of PCs/NPCs?

It's pretty self-explanatory...

A script to change the offset of characters in X and/or Y values - avoiding changing the offset of stationary objects (doors, lights, switches, etc).

For example:
Spoiler
95411-cbaa79d7c3c4e2d4eeb853aeb49bb6a5.jpg
95399-cbaa79d7c3c4e2d4eeb853aeb49bb6a5.jpg
Here is a little something for you.
Spoiler: Code inside
Code:
#========================================================
# Author: Heirukichi
# Last update: 05-26-2019 [MM-DD-YYYY]
# License: CC 4.0 BY-SA
#========================================================

module HRK_CHOFS

  #======================================================
  # Set this to false if you want to use the default offset
  #======================================================
  USE_CUSTOM_OFFSET = true
 
  #======================================================
  # Change these to be your character offset
  #======================================================
  OFFSET_FOR_CHARACTERS_X = 12
  OFFSET_FOR_CHARACTERS_Y = 12

  #======================================================
  # - - - WARNING! Do not modify after this point!
  #======================================================
  def self.custom_offset?
    USE_CUSTOM_OFFSET
  end

  def self.shift_y
    OFFSET_FOR_CHARACTERS_Y
  end

  def self.shift_x
    return 0 unless custom_offset?
    OFFSET_FOR_CHARACTERS_X
  end
end

#========================================================
# * Game_CharacterBase class
#========================================================
class Game_CharacterBase
 
  alias hrk_chofs_shift_y_old shift_y
  def shift_y
    if  HRK_CHOFS.custom_offset?
      object_character? ? 0 : HRK_CHOFS.shift_y
    else
      hrk_chofs_shift_y_old
    end
  end

  def shift_x
    object_character? ? 0 : HRK_CHOFS.shift_x
  end

  alias hrk_chofs_screen_x_old screen_x
  def screen_x
    hrk_chofs_screen_x_old - shift_x
  end

end

P.S. I hope this does what you want (the image link is broken).
(the image link is broken)

Fixed (Hopefully)

I hope this does what you want

I'm pretty sure that it is, you can see similarities in the examples I gave. Of course 0,0 probably won't be as I put it but it wasn't a necessity. I will return to see if it works for me. Thank you.
Of course 0,0 probably won't be as I put it but it wasn't a necessity. I will return to see if it works for me. Thank you.
It should be exactly as it is in the picture as long as you set the custom offset to true.
It should be exactly as it is in the picture as long as you set the custom offset to true.

It's perfect, thank you

Original thread: https://forums.rpgmakerweb.com/threads/script-to-change-the-offset-of-pcs-npcs.109409/