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.
Random Title Screen

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 82
Is there any way to make it so your title screen is random. I've been trying to figure out how to do this, but haven't come up with anything yet. Can someone please help?

*
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
Probably need a script for it. On the plus side, it would be an easy script to write.

**
Rep: +0/-0Level 82
How would I write it? I've tried some things, but I haven't been able to figure out how. If you could help me, that would be great! ;D

*
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
Well, if you look at line 35 of Scene_Title, you will see:

Code: [Select]

    @sprite.bitmap = RPG::Cache.title($data_system.title_name)

Something like the following would do the trick:

Code: [Select]
    random_titles = ["Title1", "Title2", ..., "TitleN"]
    @sprite.bitmap = RPG::Cache.title(random_titles[rand (random_titles.size)])

Where Title1, ... TitleN are the names of actual graphics located in the Titles folder of Graphics.

**
Rep: +0/-0Level 82
Yeah, I tried something similar, but it didn't work. I tried your way exactly, just to be sure, but that doesn't work either, but thanks for your help. I appreciate it.

*
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
Well, it works for me, exactly as I had it above. Did you delete the original line? Because you would have to
Code: [Select]
@sprite.bitmap = RPG::Cache.title($data_system.title_name)

**
Rep: +0/-0Level 82
I deleted the original script, but I will try it again and see if I can get it working. If it works this time, I'll tell you. I might even try it on a new file, just to see if it's just the game I'm working on right now.