Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Denver on May 02, 2017, 08:27:51 am

Title: [XP] Need a script to pause game on message window
Post by: Denver on May 02, 2017, 08:27:51 am
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.
Title: Re: [XP] Need a script to pause game on message window
Post by: LiTTleDRAgo on May 02, 2017, 01:30:12 pm
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
Title: Re: [XP] Need a script to pause game on message window
Post by: Denver on May 02, 2017, 01:38:27 pm
Looks like it worked! Thank you so much, you are a life-saver!!  :clap: