class Game_Character
attr_accessor :disable_movement
alias_method :seph_disablemovement_gmchr_init, :initialize
def initialize
@disable_movement = false
seph_disablemovement_gmchr_init
end
for m in ['move_down', 'move_left', 'move_right', 'move_up']
s = "alias_method :seph_disablemovement_gmchr_#{m}, :#{m};"
s += "def #{m}(turn_enabled = false);"
s += " return if @disable_movement;"
s += " seph_disablemovement_gmchr_#{m}(turn_enabled);"
s += "end"
eval s
end
end