Author Topic: [XP] Need a script to pause game on message window  (Read 112 times)

Offline Denver

  • Total Beginner
  • Posts: 8
  • LV: 0
  • Gender: Male
    • View Profile
    • Denver Projects
[XP] Need a script to pause game on message window
« on: May 02, 2017, 02:27:51 PM »
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.

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 811
  • LV: 510
  • Gender: Male
    • View Profile
    • ~
Re: [XP] Need a script to pause game on message window
« Reply #1 on: May 02, 2017, 07:30:12 PM »
Add this snippet above main.

Code: [Select]
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

Offline Denver

  • Total Beginner
  • Posts: 8
  • LV: 0
  • Gender: Male
    • View Profile
    • Denver Projects
Re: [XP] Need a script to pause game on message window
« Reply #2 on: May 02, 2017, 07:38:27 PM »
Looks like it worked! Thank you so much, you are a life-saver!!  :clap: