#==============================================================================
#  @> Pause While Message ~ Karin's Soulkeeper, 2015
#------------------------------------------------------------------------------
#   v1.0 - May 20 : Started & finished.
#------------------------------------------------------------------------------
#  * Description:
#    This script disables NPC's autonomous movement whenever a message box
#    is active.
#------------------------------------------------------------------------------
#  * To Use:
#    Put this script below Materials and above Main.
#------------------------------------------------------------------------------
#  * Compatibility:
#    This script aliases Game_Event.update_self_movement
#------------------------------------------------------------------------------
#  * Terms:
#    Free to use in any kind of project, with or without credit. I wouldn't
#    really mind. Though I'd appreciate it! (^w^)/
#    Just don't, you know, claim that you made this here script yourself,
#    Because that's just mean (._.)
#==============================================================================

#==============================================================================
# ** Aliased Class: Game_Event
#==============================================================================
class Game_Event < Game_Character
  #--------------------------------------------------------------------------
  # * Alias: Update During Autonomous Movement
  #--------------------------------------------------------------------------
  alias update_self_movement_orig update_self_movement
  def update_self_movement
    return if $game_message.busy?
    update_self_movement_orig
  end
end