#=======================================================================
# Stop All Movement
# RMXP Port by Drago del Fato
# Original Name: Yanfly Engine RD - Stop All Movement
#
#=======================================================================
$imported = {} if $imported == nil
$imported["StopAllMovement"] = true
module YE
module EVENT
module SWITCH
# Bind this switch to "Stop All" self movement on the map.
STOP_ALL = 81
end # SWITCH
end # EVENT
end # YE
class Game_Character
alias new_passable passable?
def passable?(x, y, d)
if $game_switches[YE::EVENT::SWITCH::STOP_ALL]
return false if self != $game_player
end
new_passable(x, y, d)
end
end