VXAce Way To Make Title Screen Changes Depending On Place In Game

I'm using VX ACE.
I was wondering if there's a way to have the title screen change partway through the game. preferable with some kind of variable so it can change a few times.
Is there a way for the title screen to check any sort of save slot variable? or just some way for this to save over the game?
if its not possible I will live
thank you for your time <3
By default, no. But using this script: Persistent Data Script
Spoiler: Pastebin link is dead, here's the script
Ruby:
=begin
 Game Custom Data v1.26
 by AdiktuzMiko
 --- Date Created: 11/25/2013
 --- Last Date Updated: 07/18/2015
 --- Level: Easy
 
 This is a simple script which provides you with the capability of having custom data
 for your game that is saved outside of the save files. Since it is outside of save
 files, it is shared by all. You can even make multiple games share a single custom
 data file.
 
 You can utilize this for having persistent data between your game/games.
 
 You can specify where to put the custom data file, what name will it have and even
 what file extension.
 
==============================================================================
   ++ Installation ++
==============================================================================
 Install this script in the Materials section in your project's
 script editor.
 
 Modify the ADIK::DATA module to your liking
 
==============================================================================
   ++ Script Calls ++
==============================================================================
 
 CustomData.get(key) to get a certain value
 CustomData.set(key,value) to set the value saved in "key" equal to "value"
 CustomData.add(key,value) to add value to the current value of the data
 CustomData.sub(key,value) to subtract value to the current value of the data
 CustomData.mul(key,value) to multiply the current value of the data by the given value
 CustomData.div(key,value) to divide the current value of the data by the given value
 CustomData.push(key,value) to add the given value into an array saved as custom data
 CustomData.delete(key,value) to remove the given value from an array saved as custom data
 CustomData.save to save the current contents of custom data
 
 Note: Custom Data is loaded automatically upon running the game
 
==============================================================================
   ++ Compatibility ++
==============================================================================
 This script aliases the following default VXA methods:

   DataManager#load_database
     DataManager#load_game
     Scene_Title#start
     DataManager#save_game_without_rescue
==============================================================================
   ++ Terms and Conditions ++
==============================================================================

 Read this: http://lescripts.wordpress.com/terms-and-conditions/

==============================================================================

 
=end

module ADIK
  module DATA
 
  # Primary folder where the save data will be placed
  # based on the default paths in your computer
  # set to nil if you don't want to use this
  DATA_PATH = 'CURRENT'
   
#~     Heres a list of parameters you can set the DATA_PATH into
#~    
#~     AppData = Contains the full path to the Application Data directory of the logged-in user
#~     LOCALAPPDATA = This variable is the temporary files of Applications.
#~      CURRENT = Folder where the game is run from

#~     !!!The following might require your game to run in admin mode!!!

#~     ProgramFiles = This variable points to Program Files directory
#~     CommonProgramFiles = This variable points to Common Files directory
   
  #Enter each subfolder paths after the primary folder here
  #The script automatically creates the folder path specified

  FOLDER = ["RPGMaker","Games"]
   
  #File name of the custom data file, include file extension
  FILENAME = "Data.rvdata2"
    #Does the system save the custom data every time that you change it
    AUTOSAVE = true
  #On this example settings given, the file will be saved into
  #C:\Users\USER\AppData\Roaming\RPGMaker\Games\Data.rvdata2
  end
end

#==============================================================================
# DO NOT EDIT BELOW THIS LINE
#==============================================================================

module DataManager
 
  class <<self; alias load_database_customdata load_database; end
  def self.load_database
    load_database_customdata
    if not ADIK::DATA::DATA_PATH == 'CURRENT'
      @spath = ENV[ADIK::DATA::DATA_PATH] + "\\"
    else
      @spath = ""
    end
    ADIK::DATA::FOLDER.each do |path|
      @spath += path + "\\"
      Dir.mkdir(@spath) if !FileTest.exist?(@spath)
    end
    @path = @spath + ADIK::DATA::FILENAME
    begin
      load_customdata
    rescue
      $adik_custom_data = {}
      save_customdata
    end
  end
 
  class <<self; alias load_game_customdata load_game; end
  def self.load_game(index)
    if load_game_customdata(index)
      load_customdata unless ADIK::DATA::AUTOSAVE
      return true
    else
      return false
    end
  end
 
  def self.customdata_filename
    return  @path
  end
 
  def self.customdata_file_exists?
    FileTest.exist?(customdata_filename)
  end
 
  class <<self; alias save_game_without_rescue_customdata save_game_without_rescue; end
  def self.save_game_without_rescue(index)
    save_game_without_rescue_customdata(index)
    DataManager.save_customdata
    return true
  end
 
  def self.load_customdata
    File.open(customdata_filename, "rb") do |file|
      contents = Marshal.load(file)
      $adik_custom_data = contents[:adik_custom_data]
    end
    return true
  end
 
  def self.save_customdata
    File.open(customdata_filename, "wb") do |file|
      contents = {}
      contents[:adik_custom_data] = $adik_custom_data
      Marshal.dump(contents, file)
    end
    return true
  end
 
end

module CustomData

  def self.get(key)
    return $adik_custom_data[key]
  end
 
  def self.set(key,value)
    $adik_custom_data[key] = value
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.save
      DataManager.save_customdata
  end
 
  def self.add(key,value)
    $adik_custom_data[key] += value
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.sub(key,value)
    $adik_custom_data[key] -= value
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.mul(key,value)
    $adik_custom_data[key] *= value
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.div(key,value)
    $adik_custom_data[key] /= value
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.push(key,value)
      $adik_custom_data[key] = [] if $adik_custom_data[key].nil?
    $adik_custom_data[key].push(value)
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
  def self.delete(key,value)
    $adik_custom_data[key].delete(value)
    DataManager.save_customdata if ADIK::DATA::AUTOSAVE
  end
 
end

class Scene_Title
  alias custom_data_start start
  def start
   custom_data_start
   DataManager.load_customdata unless ADIK::DATA::AUTOSAVE
 end
end

You'll also need this script:
Ruby:
=begin

 * Script snippit for adjusting title screen based on persistent data
  by Howard_Bentley
 
  # requires persistent data script found here:
  https://forums.rpgmakerweb.com/threads/game-custom-data-v1-26.20304/

  Simply set the names of the titlescreens you would like to use below,
  then use the script command:
    change_title_screen(value)
  Ex: change_title_screen(2) wil make the title screen use the
  "Castle" and "Fire" images next time you boot up the game
  
  *Note: DATA[0] should not be set, and will be ignored!!
  using change_title_screen(0) will use the title screens set
  in the database editor instead!
=end

module HB
  module Title_Screen
   
    #This name can be used to access or set the data manually
    #ex: CustomData.set("Title", 2)
    CUSTOM_GAME_DATA_NAME = "Title"
    
    #If DATA_OVERWRITE = false, any commands that try to change the
    #title screen to a lower number won't work.
    #You can still change it manually using the CUSTOMDATA.set command
    DATA_OVERWRITE = false
    
    DATA = {}
    
    DATA[1] = {
      :title1 => "Book",
      :title2 => "Dragons",
    } #end DATA[1]
    
    DATA[2] = {
      :title1 => "Castle",
      :title2 => "Fire",
    } #end DATA[2]
    
    DATA[3] = {
      :title1 => "Devil",
      :title2 => "",
    } #end DATA[3]
  end
end

class Scene_Title

  
  def create_background
    @sprite1 = Sprite.new
    @sprite1.bitmap = Cache.title1(get_title1_background)
    @sprite2 = Sprite.new
    @sprite2.bitmap = Cache.title2(get_title_background2)
    center_sprite(@sprite1)
    center_sprite(@sprite2)
  end
  
  def get_title1_background
    value = CustomData.get(HB::Title_Screen::CUSTOM_GAME_DATA_NAME)
    default = $data_system.title1_name
    return default if value.nil?
    return default if value == 0
    return default unless HB::Title_Screen::DATA.include?(value)
    return default if HB::Title_Screen::DATA[value][:title1].nil?
    return HB::Title_Screen::DATA[value][:title1]
  end
  
  def get_title_background2
    value = CustomData.get(HB::Title_Screen::CUSTOM_GAME_DATA_NAME)
    default = $data_system.title2_name
    return default if value.nil?
    return default if value == 0
    return default unless HB::Title_Screen::DATA.include?(value)
    return default if HB::Title_Screen::DATA[value][:title2].nil?
    return HB::Title_Screen::DATA[value][:title2]
  end
  
end

class Game_Interpreter
  
  def change_title_screen(value)
    name = HB::Title_Screen::CUSTOM_GAME_DATA_NAME
    if CustomData.get(name).nil?
      CustomData.set(name,0)
    end
    current_data = CustomData.get(name)
    overwrite = HB::Title_Screen::DATA_OVERWRITE
    return if current_data > value && overwrite == false
    CustomData.set(name, value)
  end
  
end

The instructions are on the script I wrote.
I did some basic testing, but if you find any bugs, let me know.
Thank you stranger but I am dumb.png

So I made an entirely new game to test it out but everytime I actually choose the option in game it gives me an error, that takes me to Game_Interperter.
Also just added image of the script bar so you could see I only have the persistent data and screen change. Im not super great at scripting so I didnt know what was needed to understand issues im having 🙂
@DoodlebugX3 I've updated the script above, go ahead and replace the old version.
I also set it so that if you use change_title_screen(0), it'll use the default title screens set in the database editor.
it works thank you so much 🙂
Idk if its okay to ask on this post, or if I should make another one.
But I have been trying to understand how to make my own custom data with the Persistent Data script HB gave to me to work along side the title screen one
The title screen one works great and I was trying to use that as reference but I keep just ending up with issues on making my own data


I just want to simply set a custom data to change and then when speaking to a person it checks that data and can change a variable based on that data
1773938076939.png

I tried taking the title screen script HB made me to see if I could understand how that works but I dont,
I think I need to make a script thing for it?
Ive tried reading persistent data stuff to understand as well but I dont understand it
There's two main ways you could do this(both will work the same)

1.) If you just want to store the custom data into a variable, you can use the editor's control variable command:
Var_test.png


And if you want to do the same thing, but with the script command, you would write this:

Ruby:
$game_variables[97] = CustomData.get("Test")

Then you would just use the variable as normal.

2.) If you wanted to skip using the variable and check the custom data directly, you could also use the script option in the condition branch command:
Var_test2.png
All three ways send me to the Game Interpreter in game
I don't know what else to say that'll help figure out why.
Thank you stranger you are very nice.png

thank you for all your rpg maker script knowledge to this point 🙂
In the CustomData.set(Test, 2) script command, you're missing the quotation marks around Test.
Oh my gosh thank you I struggled for a while before even asking for help. I feel silly that's all it is XD
thank you for your time and such I really appreciate it
it works now

Original thread: https://forums.rpgmakerweb.com/threads/way-to-make-title-screen-changes-depending-on-place-in-game.182528/