Show a Message in any Scene - Printable Version +- Save-Point (https://www.save-point.org) +-- Forum: Archives (https://www.save-point.org/forum-105.html) +--- Forum: Creation Asylum Archives (https://www.save-point.org/forum-90.html) +---- Forum: Scripts & Code Snippets (https://www.save-point.org/forum-92.html) +----- Forum: RPG Maker XP Code (https://www.save-point.org/forum-93.html) +----- Thread: Show a Message in any Scene (/thread-6910.html) |
Show a Message in any Scene - Tsunokiette - 08-17-2006 This is a locked, two-post thread from Creation Asylum. Archived here to prevent its loss. No support is given. If you are the owner of the thread, please contact administration. I came up with this while trying to make a class to be used as the super class for all Scenes. To cut time down drasticly. For now, just place this method into the Scene you want the show a message in - Code: def message(text = '') And just do - Code: message("Text in quotes goes here.") And it will show the message just like it would from an event. The reason this won't work with Scene_Title, is because $game_temp doesn't exist there and it would require a complete re-write (easy, but would take forever) of the Window_Message class. RE: Show a Message in any Scene - GoldenShadow - 08-17-2006 Oh, that's the long way. Here's the short one. Add a Code: @message_window = Window_Message.new in the def main, and whenever you want a message to show, do this in any kind of definition that updates. Code: $game_temp.message_proc = Proc.new { @message_waiting = false } |