(XP) freeze game while showing text message

Discussion in 'RGSS Script Requests' started by kaigames, Feb 10, 2019.

  1. kaigames

    kaigames Villager Member

    Messages:
    18
    Likes Received:
    0
    First Language:
    Portuguese.BR
    Primarily Uses:
    RMXP
    hello .... basically it's what's in the title ... is that the events make random moves on the map while the messages appear ... I wanted them to stop, is there any script that does this? sorry for my english, desde já agradeço
     
    #1
  2. slimmmeiske2

    slimmmeiske2 Little Red Riding Hood Moderator

    Messages:
    5,560
    Likes Received:
    4,122
    Location:
    Belgium
    First Language:
    Dutch
    Primarily Uses:
    RMXP
    Script Support is when you need help with an existing script.

    I've moved this thread to RGSS Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #2
  3. DerVVulfman

    DerVVulfman Resident Werewolf Veteran

    Messages:
    304
    Likes Received:
    149
    First Language:
    English
    Primarily Uses:
    RMXP
    Script done in less than 3 minutes:

    Code:
    #==============================================================================
    # ** Game_Character
    #------------------------------------------------------------------------------
    #  This class deals with characters. It's used as a superclass for the
    #  Game_Player and Game_Event classes.
    #==============================================================================
    
    class Game_Character
      #--------------------------------------------------------------------------
      # * Alias Listings
      #--------------------------------------------------------------------------
      alias simple_stop_all_message_update update
      #--------------------------------------------------------------------------
      # * Frame Update
      #--------------------------------------------------------------------------
      def update
        # Exit if message showing
        return if $game_temp.message_window_showing
        # Perform the original call
        simple_stop_all_message_update
      end
    end
    This assumes you want it carte-blanche, having ALL characters on map to be frozen when the message window is up.

    If you have another script that alters Game_Character, place this under it.
     
    #3
    kaigames likes this.
  4. kaigames

    kaigames Villager Member

    Messages:
    18
    Likes Received:
    0
    First Language:
    Portuguese.BR
    Primarily Uses:
    RMXP
    THANKS!
     
    #4

Share This Page