RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[VX] +Random Title Script+

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 86
Random Title Screen
Version 1.0
by Woratana
Release Date: 07/02/2008


Introduction
This script will random your tile screen.
To make player not get bored every time they start game. :)


Features
Version 1.0
- Random title screen from pictures as much as you want


Script
Place it above main.
Code: [Select]
#==============================================================================
# ? [RMVX] +Random Title Screen+
#------------------------------------------------------------------------------
# Version 1.0
# by Woratana [woratana@hotmail.com]
# Release Date: 07/02/2008
#
# This scrip will random title screen
#
# You can set title screen pictures to be random at line:
# Title = ["filename","filename2","filename3",...]
# title screen picture must be in folder "System"
#
# For example, Title = ["Screenfire","Title1"]
# >> Title Screen will random between pictures "Screenfire" and "Title1".
#=============================================================================
class Scene_Title < Scene_Base
  Title = Array.new
 
  # Set Title Screen Pictures for random here!
  Title = ["Title","Title10","Title25","Title50","Title80"]
 
  def create_title_graphic
    @sprite = Sprite.new
    title_random = rand(Title.size)
    @sprite.bitmap = Cache.system(Title[title_random].to_s)
  end
end


Instruction
You can set the pictures that will be in random list for title screen at this line:
Code: [Select]
Title = ["filename","filename2","filename3",...]
put your file's name in double quote "filename", and seperate pictures with ,
The file name don't need file type (e.g. .jpg,.png), and must be in folder "System"

For Example,
Code: [Select]
Title = ["ice","water","fire","earth"]
The title screen will random between the files "ice" or "water" or "fire" or "earth".

You can add pictures to be random as much as you want :lol:


Author's Notes
Free for use in your non-commercial work if credit included. If your project is commercial, please contact me.

Please do not redistribute this script without permission. If you want to post it on any forum, please link to this topic.
« Last Edit: February 08, 2008, 10:04:08 PM by Zeriab »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Looks good. I made a comment on it at another forum so no need to do it here. In any case, good work.

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
I edited your post and fixed an error in the script due to the forum breaking up a line at a bad position efficiently breaking the script. I hope you don't mind.

Thanks for posting your sweet little script here ^_^

*hugs*
 - Zeriab

**
Rep:
Level 86
@MA
Thanks a lot for suggest! :)

@Zeriab
That's fine.

Thanks, Zeriab.  ;)