[XP] Need a script to pause game on message window

Started by Denver, May 02, 2017, 08:27:51 am

Previous topic - Next topic

Denver

INTRODUCTION
Hello! You know, many games, such as Resident Evil or Harvest Moon, are kind of paused when messages are displayed, so the player can read them without the character being harmed or losing in-game time. Unfortunately, that is not the case with RPG Maker XP and so far I have not found a script with such feature. So why not try to ask for it here?  :)

REQUEST
Please, I need a script to "pause" the game every time a message is displayed, pretty much like the Scene_Menu.

CURRENT SCRIPTS
So far I am not using any custom script and I probably will not use any, since I can do nearly everything using events.

LiTTleDRAgo

Add this snippet above main.

class Scene_Map
  $@ || alias_method(:update_pause_text, :update)
  def update(*args)
    return @message_window.update if $game_temp.message_text                                     
    update_pause_text(*args)
  end
end

Denver

Looks like it worked! Thank you so much, you are a life-saver!!  :clap: