Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
LAWS: Message on Game Load By: TheLawG14
Introduction
This is a pretty simple script, it was just based off a request I did for gRaViJa (at HBgames) and I decided to release it to those that want it as well. What it does is show a message after loading a game file (for example: "Welcome Back!") and you can customize how long this message is shown and what is shown.
Features
Shows a message after loading a file
Can customize how long the message is shown and what the message says
Can exit out message more quickly with action button
Can change message text depending on progress of game with variable (thanks to Night_Runner)
Screenshots
Demo
None, it's a pretty simple script
Script
Code
CODE
#============================================================================== # Title: Message on Game Load | Version 1.2 # Author: TheLawG14 [aka. TheScripter] # Requester: gRaViJa [@ hbgames.org] #==============================================================================
#============================================================================== # ** Module LawMessageOnGameLoad #------------------------------------------------------------------------------ # This is where you can customize the script for the game. #==============================================================================
module LawMessageOnGameLoad # The text to show at the load screen Text = proc { # Change the message depending on the progress in the game case $game_variables[10] # Variable #10 measures progress (by default) when 0..10 then return "The game is still beginning" when 11, 12 then return "Prepare to return to battle" when 21 then return "Your party needs you" else "Welcome back Law!" end } # The amount of time the message is displayed on screen Wait_Time = 200 end
#============================================================================== # ** Scene_Load #------------------------------------------------------------------------------ # This class performs load screen processing. #==============================================================================
class Scene_Load < Scene_File #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- alias scripter_scene_load_on_decision on_decision #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- def on_decision(*args) # Run the original on_decision scripter_scene_load_on_decision(*args) # If a map was loaded if $scene != self # Make the welcome back text @message_window = Window_LoadMessage.new # Loop for loop_count in 0..LawMessageOnGameLoad::Wait_Time Graphics.update Input.update break if Input.repeat?(Input::C) end Graphics.freeze @message_window.dispose end end end
#============================================================================== # ** Window_LoadMessage #------------------------------------------------------------------------------ # This window displays the loading message #==============================================================================
#============================================================================== # # *** END OF SCRIPT *** # #==============================================================================
Instructions
In the top of the script there are two Constant variables that you can edit. Just change them to your liking and the script does the rest.
Compatibility
There shouldn't be an compatibility issues, however if there are, please report them.
Credits and Thanks
Thanks to gRaViJa for the idea and request. Also, a big thanks to Night_Runner for adding in the progress feature where the text changes depending on where you are in the game.
Terms and Conditions
Please just give me credit if you decide to use this, thanks
This post has been edited by The Law G14: Jul 2 2011, 07:04 AM
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Like I said over at HBG this could be used for so many types of RPGs to enhance the theme from the word go Is that script number 17 now?
__________________________
I'm running the Great North Run in September in aid of NACC. A condition my wife has in it's severe form. Please sponsor me with whatever you can, thank you. If you'd like to help spread the word please share the image and link to my fundraising page.
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: +Gold Member
Posts: 1,527
Type: Scripter
RM Skill: Undisclosed
Welcome back
code
CODE
#============================================================================== # Title: Message on Game Load | Version 1.1n1 # Author: TheLawG14 [aka. TheScripter] # Requester: gRaViJa [@ hbgames.org] #==============================================================================
module LawMessageOnGameLoad # The text to show at the load screen Text = proc { # Change the message depending on the progress in the game case $game_variables[10] # Variable #10 measures progress (by default) when 0..10 then return "The game is still beginning" when 11, 12 then return "Prepare to return to battle" when 21 then return "Your party needs you" else "Welcome back Law!" end } Wait_Time = 200 end
#============================================================================== # ** Scene_Load #------------------------------------------------------------------------------ # This class performs load screen processing. #==============================================================================
class Scene_Load < Scene_File #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- alias scripter_scene_load_on_decision on_decision #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- def on_decision(*args) # Run the original on_decision scripter_scene_load_on_decision(*args) # If a map was loaded if $scene != self # Make the welcome back text @message_window = Window_LoadMessage.new # Loop for loop_count in 0..LawMessageOnGameLoad::Wait_Time Graphics.update Input.update break if Input.repeat?(Input::C) end Graphics.freeze @message_window.dispose end end end
#============================================================================== # ** Window_LoadMessage #------------------------------------------------------------------------------ # This window displays the loading message #==============================================================================
#============================================================================== # # *** END OF SCRIPT *** # #==============================================================================
It's been strange not seeing you here
__________________________
K.I.S.S. Want help with your scripting problems? Upload a demo! Or at the very least; provide links to the scripts in question.
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Woah, that's really neat, man! Thanks! I'll add that to the main script and make sure to credit you. And I'm glad to see you here, Night_Runner! And it is nice to be back lol
This post has been edited by The Law G14: Jul 2 2011, 07:03 AM
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Thanks! The new script version should have the text centered better though, unless your text is really long. Does it stretch from one side of the screen to the other?
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
no not that, no matter how long the text size the box it's self begins a little too far to the right on the left side whereas the right side of the text box is even and centered.
This post has been edited by carnie_natas: Aug 25 2011, 01:26 PM
__________________________
Light one up! You can run.....But you'll only die tired!
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
I'm still not entirely sure what you mean, can you try to show a screenshot? But until then, this might work if I think I understand what you're problem is. Change line 87 that says :
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One
I'm still not entirely sure what you mean, can you try to show a screenshot? But until then, this might work if I think I understand what you're problem is. Change line 87 that says :
Group: Local Mod
Posts: 1,346
Type: Scripter
RM Skill: Skilled
Rev Points: 5
Ah alright, I see what the problem is, this should work:
script
CODE
#============================================================================== # Title: Message on Game Load | Version 1.2 # Author: TheLawG14 [aka. TheScripter] # Requester: gRaViJa [@ hbgames.org] #==============================================================================
#============================================================================== # ** Module LawMessageOnGameLoad #------------------------------------------------------------------------------ # This is where you can customize the script for the game. #==============================================================================
module LawMessageOnGameLoad # The text to show at the load screen Text = proc { # Change the message depending on the progress in the game case $game_variables[10] # Variable #10 measures progress (by default) when 0..10 then return "The game is still beginning" when 11, 12 then return "Prepare to return to battle" when 21 then return "Your party needs you" else "Welcome back Law!" end } # The amount of time the message is displayed on screen Wait_Time = 200 end
#============================================================================== # ** Scene_Load #------------------------------------------------------------------------------ # This class performs load screen processing. #==============================================================================
class Scene_Load < Scene_File #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- alias scripter_scene_load_on_decision on_decision #-------------------------------------------------------------------------- # * Decision Processing #-------------------------------------------------------------------------- def on_decision(*args) # Run the original on_decision scripter_scene_load_on_decision(*args) # If a map was loaded if $scene != self # Make the welcome back text @message_window = Window_LoadMessage.new # Loop for loop_count in 0..LawMessageOnGameLoad::Wait_Time Graphics.update Input.update break if Input.repeat?(Input::C) end Graphics.freeze @message_window.dispose end end end
#============================================================================== # ** Window_LoadMessage #------------------------------------------------------------------------------ # This window displays the loading message #==============================================================================
#============================================================================== # # *** END OF SCRIPT *** # #==============================================================================
"When you first come, no one knows you. When help them out, they all know you. When you leave, they all love you. When you come back, they've already forgotten you." -- copy into your sig if you think this quote speaks true!
If you are one of the very few teenagers that know what real rap is and don't blindly listen to the hate statements (rap is crap), then put this in your sig. I say this in the name of Common, Mos Def, Lupe Fiasco, 2Pac, Nas, Talib Kweli, Eminem, and many others. -Exiled One