Changing start screen?

mayorswaim

Swami
Veteran
Joined
Mar 10, 2015
Messages
55
Reaction score
4
First Language
English
Primarily Uses
Sorry, if this is only relevant to scripting and that's not allowed here pls move :0

I really want a start screen that begins with Chapter One, and changes when you complete that chapter. Help?

I think that I'll need another script for this so if you know of one or how to make one please tell me how/show me where !

Thanks!

Edit: I wanted the "start" text to change, from like "Chapter One" to "Chapter Two", not the image or background. I know how to change it in the database, but not how to get it to change from within an event in the game.
 
Last edited by a moderator:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
Yes, you will probably need to post in the Scripting section for this.

The code to change the background picture is very easy, you just need to change the following method in Scene_Title:

#-------------------------------------------------------------------------- # * Create Background #-------------------------------------------------------------------------- def create_background @sprite1 = Sprite.new @sprite1.bitmap = Cache.title1($data_system.title1_name) # change to the path of the new picture @sprite2 = Sprite.new @sprite2.bitmap = Cache.title2($data_system.title2_name) center_sprite(@sprite1) center_sprite(@sprite2) endThe real challenge lies in scripting a way to figure out which background to display, since the Title Screen exists outside of any saved game (and therefore it's difficult, though not impossible, to access the values of the switches/variables from inside the file).  The way I've found best is to have a file in the System folder that tracks data at a level higher than the Game Files, which you write to with the save_data command and read with the load_data command.
 

Warpmind

Twisted Genius
Veteran
Joined
Mar 13, 2012
Messages
936
Reaction score
578
First Language
Norwegian
Primarily Uses
Wavelength, would you kindly point a poor sinner's eyes to a deeper explanation of how to make that data tracking system? :)
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
On the other hand Yato (Racheal that was) has an excellent little script that does precisely what the OP wants (if I have understood correctly).

On this thread you'll find a script which allows you to update your start screen (which I am assuming equals title screen) at any stage and as often as you like.  I used it for the Tale of a Common Man so that I got a new title screen every time a new character joined the party.

Note, if you are using Yanfly's Save Engine, there is a patch in a post on that thread which you will need to use.
 
Last edited by a moderator:

mayorswaim

Swami
Veteran
Joined
Mar 10, 2015
Messages
55
Reaction score
4
First Language
English
Primarily Uses
On the other hand Yato (Racheal that was) has an excellent little script that does precisely what the OP wants (if I have understood correctly).

On this thread you'll find a script which allows you to update your start screen (which I am assuming equals title screen) at any stage and as often as you like.  I used it for the Tale of a Common Man so that I got a new title screen every time a new character joined the party.

Note, if you are using Yanfly's Save Engine, there is a patch in a post on that thread which you will need to use.
It's really cool, but I don't understand what to do..

Edit: Also, anyone know how to remove the Weapons/Armours/Key Items areas from the items menu? I can't find a script/
 
Last edited by a moderator:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
I suggest you start a new thread with that new query.  Trying to answer 2 such different questions in the same thread usually results in deep confusion all round.

Okay, back to Yato's script.  Let us suppose that you want to have a title screen at the beginning, and we will label the file "Opener" and then after the end of the first chapter, you want a different title, which we will label "Onwards".

At line #27 you type in the number of the variable switch you have assigned for this.  So pick one and then NAME IT, that way you don't accidentally use it for something else.

TITLE_VARIABLE = 2

The next bit is asking about whether you want to use 2 images the way the default does (Title 1 and Title 2)  I had just one picture, so in mine it looks like this:

#Set which parts of the title screen are affected

  CHANGE_BACKGROUND = false

  CHANGE_FOREGROUND = true

 

I kept it simple and put FALSE for the next question as well.

 

Then you specify the names of the files (images) you will be using.  I decided that names were probably safer than numbers, as they are instantly recognizable.  So it would look like this:

 

#Set whether to use a series of numbers for the filenames (0.png, 1.png, etc)

  #or a series of names you define below

  USE_FILENAMES = true

  BACKGROUND_NAMES = ["", ""]

  FOREGROUND_NAMES = ["Opener", "Onwards"]

 

Obviously if you have more than two screens, then you adjust this and include all the names of all the images.  If you want to use numbers instead of names, change that 'true' to 'false'

 

That's all you do in the script.

 

In game, when you reach the end of chapter one, you use an event command to add 1 to the variable, and the screen will change automatically to your second one.
 
Last edited by a moderator:

mayorswaim

Swami
Veteran
Joined
Mar 10, 2015
Messages
55
Reaction score
4
First Language
English
Primarily Uses
Nvm, I don't think I can do what I want, but it's OK. Thanks for the help, though!

-You can close the thread-
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top