Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Broken Messiah

Random Title/Gameover

Recommended Posts

Here is my latest creation:

 

 

#Broken Messiah's Super Easy Random Title/GameOver (SERTG)
#As stated this is a random title\Gameover script for rmvx.
#To use it simply define TPIC_COUNT\GPIC_COUNT to the number of
#title screens that you have. The Titles\GameOvers all go in the System Folder
#Then in line 13 insert a new when statement as shown, in the Cache.system(" ") section, add the name of a title.
#The number defined in TPIC_COUNT\GPIC_COUNT and number of when statements should the exact same.
#I don't see any reason for incompatibility, just add above Main, but below everything else.
#If you do something wrong, it will appear as a black background.
TPIC_COUNT = 4
GPIC_COUNT = 3

#Create a new class with Scene_Base as it's super. That means that Random_Title
#and Random_Gameover will be able to use any definitions in Scene_Base
class Random_Title < Scene_Title
#Create a new Definition
 def create_title_graphic
  #Creates a new blank sprite
   @sprite = Sprite.new
   #Gets the result of the variable TPIC_COUNT which was setup in the beginning. 
   #The minium will be 0, while the max will be what it is set to be.

   case rand(TPIC_COUNT) 
   # when (Number of Picture).bitmap = Cache.system(Name of Picture)
     when 0; @sprite.bitmap = Cache.system("Title1")

   end
 end
#Remembering to end all defintions and classes
end

class Random_Gameover < Scene_Base

 def create_gameover_graphic
  @sprite = Sprite.new
   case rand(GPIC_COUNT) 
   # when (Number of Picture).bitmap = Cache.system(Name of Picture)
     when 0; @sprite.bitmap = Cache.system("GameOver1")
   end
 end
end

 

 

Don't fire any lazers at me if theres a issue, I'm a novice at this :sweatdrop:

Share this post


Link to post
Share on other sites

Topics in this forum require prefixes. For some reason you can post a topic without adding one, which is weird. And there's a bug that prevents editing the prefix after posting a topic. So can you copy the contents of the topic and repost it, and make sure you give it an RMVX prefix? I'll take care of this one when you do.

 

Also, for future reference, put scripts in [spoiler][code]Script Here[/code][/spoiler] tags.

 

The script sounds pretty cool, though I haven't tried it out. Can you supply a demo perhaps?

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...