08-17-2006, 01:00 PM
(This post was last modified: 08-01-2017, 04:08 PM by DerVVulfman.)
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.
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 = '')
$game_temp.message_text = text.dup
message = Window_Message.new
loop do
$game_temp.message_text = text.dup
message.update
message.refresh
Input.update
Graphics.update
break unless !(Input.trigger?(Input::C) or Input.trigger?(Input::B))
end
message.dispose
end
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.