#:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=: # Stop All Movement # Version: 1.00 # Author : LiTTleDRAgo #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=: # # Explanation : # This script can stop all movements just by flipping the switch # # To Stop Player movement just turn on switch 1 (default) # And to stop All Events movement, turn on switch 2 (default) #=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= #============================================================================== # ** Game_Player / Game_Event #------------------------------------------------------------------------------ # This class handles the player and events. It's used within the Game_Map class. # Refer to "$game_player" and "$game_events" for the one instance of this class. #============================================================================== (0...2).each {|i| eval " class #{['Game_Player','Game_Event'][i]} < Game_Character #-------------------------------------------------------------------------- # * Constant Variables #-------------------------------------------------------------------------- STOP_PLAYER_SWITCH = 1 STOP_EVENT_SWITCH = 2 #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias_method :drg127_upd, :update #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update if self.is_a?(Game_Player) return super if $game_switches[STOP_PLAYER_SWITCH] && Input.dir8 else return if $game_switches[STOP_EVENT_SWITCH] end drg127_upd end end#"}