Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Random Title + BattleTransition + GameOver Screen Simplified, A little snippet that I made.
YanXie
post May 17 2008, 12:02 AM
Post #1


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




Random Title + BattleTransition + GameOver Screen Simplified

Version 1.0
Author puppeto4
Release Date 17/05/2008

Introduction
Most of you will remember that Woratana made one like this before right? So why did I made this again?

Well,after getting better with scripting,I thought that I'll write this again,so that the script will be easier to use.So here it is.


Features

Unlimited Title Screen + Battle Transition Screen + GameOver Screen

The most important thing is you don't need to modify the script to use it,unlike the previous version.

Script

Download below :

Attached File  Random_Title___BattleTransition___GameOver_Screen_Simplified.txt ( 3.71K ) Number of downloads: 104


Or, copy from below :

[Show/Hide] Random Title + BattleTransition + GameOver Screen Simplified

CODE
#==============================================================================
# ** Scene_Gameover
#------------------------------------------------------------------------------
#  This class performs game over screen processing.
#==============================================================================

class Scene_Gameover < Scene_Base
  #--------------------------------------------------------------------------
  # * Constant
  #--------------------------------------------------------------------------
  GameOver = Dir.glob("./Graphics/System/GameOver*.{bmp,png,jpg}")
  GameOver.each_index { |i| GameOver[i] = GameOver[i].split("/").last }  
  #--------------------------------------------------------------------------
  # * Create Game Over Graphic
  #--------------------------------------------------------------------------
  def create_gameover_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system(GameOver[rand(GameOver.size)].to_s)
  end
end
#==============================================================================
# ** End of Scene_Gameover
#------------------------------------------------------------------------------
################################################################################
#==============================================================================
# ** Scene_Title
#------------------------------------------------------------------------------
#  This class performs the title screen processing.
#==============================================================================

class Scene_Title < Scene_Base
  #--------------------------------------------------------------------------
  # * Constant
  #--------------------------------------------------------------------------
  Title = Dir.glob("./Graphics/System/Title*.{bmp,png,jpg}")
  Title.each_index { |i| Title[i] = Title[i].split("/").last }
  #--------------------------------------------------------------------------
  # * Create Title Graphic
  #--------------------------------------------------------------------------
  def create_title_graphic
    @sprite = Sprite.new
    @sprite.bitmap = Cache.system(Title[rand(Title.size)].to_s)
  end
end
#==============================================================================
# ** End of Scene_Title
#------------------------------------------------------------------------------
################################################################################
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs the map screen processing.
#==============================================================================

class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # * Constant
  #--------------------------------------------------------------------------
  Transition = Dir.glob("./Graphics/System/BattleStart*.{bmp,png,jpg}")
  Transition.each_index { |i| Transition[i] = Transition[i].split("/").last }
  #--------------------------------------------------------------------------
  # * Execute Pre-battle Transition
  #--------------------------------------------------------------------------
  def perform_battle_transition
    Graphics.transition(80, "Graphics/System/" + (Transition[rand(Transition.size)].to_s), 80)
    Graphics.freeze
  end
end
#==============================================================================
# ** End of Scene_Map
#------------------------------------------------------------------------------
################################################################################



Customization

Just do it like this :

For Title screen, name all the title screen to "Title" and add anything after that, like this "Title33"

For Battle transition screen, name all the files to "BattleStart" and add anything after that, like this "BattleStart78"

For GameOver screen, name all the files to "GameOver" and add anything after that, like this "GameOverNN"

No need to modify the script at all.

Compatibility

Shouldn't have any problem with other scripts.

Screenshot

Obviously Useless

DEMO

Do you need it?

Installation

Just copy and paste the script in a new page above main.

FAQ

1. What if my project is encrypted ?

If you want to encrypt your project,don't include the Title/GameOver/Transition files in the project files first.

After your project encrypted,extract your project and make a new folder in your the extracted folder of the project.

Then,make a new folder and name it "Graphics". In that folder,make one more folder named "System". Put all your GameOver/Title/Transition files in that folder.

Finally,compress your project folder (Archive the file,or just use WinRar to compress it) and upload it. wink.gif

Terms and Conditions

Credit and use it smile.gif

Do not post this outside of RPG RPG Revolution.

ъ(`ー゜)
cheers,puppeto4. smile.gif


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Suraksin Varja
post May 17 2008, 02:05 AM
Post #2


Level 4
Group Icon

Group: Member
Posts: 47
Type: Artist
RM Skill: Skilled




Thanks once again Puppeto!
Go to the top of the page
 
+Quote Post
   
Azuaya
post May 17 2008, 03:23 AM
Post #3


Random Wanderer
Group Icon

Group: Revolutionary
Posts: 157
Type: Scripter
RM Skill: Beginner




Puppet04, I congratulate you for helping around in people's need. *thumbs up* A well deserved script that will surely be in my credit section if i use it lol.

~Azuaya


__________________________
I wander around the RPG Maker VX forums to help others in need... if I'm bothered.

Go to the top of the page
 
+Quote Post
   
woratana
post May 18 2008, 01:45 AM
Post #4


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




Puppeto, is Dir.glob will work in encrypted project?


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
YanXie
post May 18 2008, 01:49 AM
Post #5


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




Too bad,nope :[

looking for a solution atm,maybe I'll refer to XP fix for this.


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
woratana
post May 18 2008, 02:13 AM
Post #6


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




I think to add file name manually probably be the only way. sad.gif
since there is no way to search files in encrypted RGSSAD.

or use ID, like Title(id).png and user put max ID in the script


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
YanXie
post May 18 2008, 05:33 AM
Post #7


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




Well,the best solution that I can find is to make a new "Graphic/System" folder in the project folder after the project is encrypted, and put all the image files there.

That works very well. I don't think it is important to encrypt Title/GameOver/Transition image files since most people encrypt their project to protect scripts/tilesets/charsets.

cheers,puppeto4. smile.gif


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
woratana
post May 18 2008, 11:02 AM
Post #8


Looking for scripter to hire? PM me *O*
Group Icon

Group: +Gold Member
Posts: 1,038
Type: Scripter
RM Skill: Undisclosed




That'll work too. Puppeto smile.gif


__________________________
Check out my NEW blog!!!



MVP (Most Valuable Poster) Award 2008


Go to the top of the page
 
+Quote Post
   
Ilikepie123
post May 19 2008, 03:27 PM
Post #9


Sir Jacketh
Group Icon

Group: Revolutionary
Posts: 137
Type: Artist
RM Skill: Undisclosed




Would it be possible only to use one section of the whole script? Like;
"#==========================================================================
====
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs the map screen processing.
#==============================================================================

class Scene_Map < Scene_Base
#--------------------------------------------------------------------------
# * Constant
#--------------------------------------------------------------------------
Transition = Dir.glob("./Graphics/System/BattleStart*.{bmp,png,jpg}")
Transition.each_index { |i| Transition[i] = Transition[i].split("/").last }
#--------------------------------------------------------------------------
# * Execute Pre-battle Transition
#--------------------------------------------------------------------------
def perform_battle_transition
Graphics.transition(80, "Graphics/System/" + (Transition[rand(Transition.size)].to_s), 80)
Graphics.freeze
end
end
#==============================================================================
# ** End of Scene_Map
#------------------------------------------------------------------------------"
Or would I have to use the whole thing?


__________________________
Hmwut?
Go to the top of the page
 
+Quote Post
   
YanXie
post May 19 2008, 03:30 PM
Post #10


Because Tomorrow Will Surely Come...
Group Icon

Group: Revolutionary
Posts: 1,137
Type: None
RM Skill: Skilled




yup, it will work too, and if it is Scene_Map, battle transition will be the only one that will be randomized.

cheers,puppeto4. smile.gif


__________________________
how make teleport to graveyard then your character die?

AWAY FOR VACATION.
NOT HERE UNTIL JAN/FEB 2010 -w-/
Go to the top of the page
 
+Quote Post
   
Ilikepie123
post May 19 2008, 05:50 PM
Post #11


Sir Jacketh
Group Icon

Group: Revolutionary
Posts: 137
Type: Artist
RM Skill: Undisclosed




QUOTE (puppeto4 @ May 19 2008, 06:44 PM) *
yup, it will work too, and if it is Scene_Map, battle transition will be the only one that will be randomized.

cheers,puppeto4. smile.gif

Thanks for replying so quickly biggrin.gif and Kyle1234lee GOT PANNED! x]


__________________________
Hmwut?
Go to the top of the page
 
+Quote Post
   
cmpsr2000
post May 21 2008, 02:12 PM
Post #12


Keeper of the Ruby Code of DOOM!
Group Icon

Group: Revolutionary
Posts: 355
Type: Scripter
RM Skill: Masterful




QUOTE (puppeto4 @ May 18 2008, 07:47 AM) *
Well,the best solution that I can find is to make a new "Graphic/System" folder in the project folder after the project is encrypted, and put all the image files there.

That works very well. I don't think it is important to encrypt Title/GameOver/Transition image files since most people encrypt their project to protect scripts/tilesets/charsets.

cheers,puppeto4. smile.gif


If you want to encrypt it but still enable loading, marshal.dump an array of the filenames then use load_data to bring them back in (load_data can read inside encrypted archives biggrin.gif ).


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 22nd May 2013 - 11:55 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker