need assistance with first core script

hello everyone, i have started work on my first core script. I know many will say great another useless core but this is so I can learn the short hand of ruby as well as and easy reminder of bits that I don't use very often.

anyway so far I have used dp3's YouTube core script as my starting point and have marked it as such.

in addition to that I am adding functions that can be turned off and on as you wish to use them and this is where i ran into my first issue. before I start I would like to say this topic will be where i ask all of my core script questions so i can keep track of notes and advice.

and thus:

my first trouble is setting a splash screen to a do each array so all the user has to do is add their images to the module settings splash_images array and the scrip with run the settings for each image in the array.

the splash i am starting with is william theunpropro's splash screen on YouTube https://www.youtube.com/watch?v=58zMp1IoVck

as I would like to learn some shortcuts i would like to try to stick with the array for easy image input.

Spoiler
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#             WorldWakeSTD core xxa001
#             Version: 1.1
#             Author: WorldWakeSTD(dp3_tutorial#54 rip↓)
#              link =



#             Date: October 2, 2013#             Edit Date: October 16, 2015
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  Description:
#
#    This Core Script adds extra classes and additions to existing classes for
#    use by future WorldWakeSTD scripts and/or any other scripter who
#    finds these additions useful.
#
#   New Additions Include:
#     Module:   WWSTDCore:                     A Module which houses the new Classes.
#     Class:    ScreenFilledSprite:           A Sprite which automatically fits to screen.
#     Class:    TimeTracker:                  A Class Which Keeps Track of Real-Time once Activated.
#     Edited:   Window_MenuCommand:           Now Allows for quicker menu option creation.
#     Module:   GameEvents:                   A Module to Contain Code for interaction with GameEvents.
#      Class:    WWSTDWindow_Master_xxa001:     A fast call for creating a new Window for Scenes and Messages.
#

#===============================================================================
#------------------- core setting module ---------------------------------------
#===============================================================================
module WWSTDCoreSetting
# set to true for images adding before title scene
activate_Splash_Intro = false
# set images for splash screen to display
splash_images = [splash,splash2]

end
#===============================================================================
#------------------- end core setting module -----------------------------------
#===============================================================================

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#!!!!!!!!!!!!!!!!!!! Do Not Touch!! unless you !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!!!!!!!!!!!!!!!!  know what you are doing  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

#===============================================================================
#------------------- start dp3 mass rip ----------------------------------------
#===============================================================================

#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
($WorldWakeSTD_scripts ||= {})[:WWSTDCore] = true
#=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
# **  New Class:   Screen Filled Sprite
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Creates a sprite which automatically fills the screen and can be disposed
# without needing to dispose of the included bitmap.
# Everything beyond initialisation is still accessed the way a normal
# Sprite is accessed.
#~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
module WWSTDCore
  class ScreenFilledSprite < Sprite
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Object Initialisation
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Filename:   Filename of the Sprite Image, includes path if necessary.
    # Visible:    Will be visible? : true by default
    # Z:          The Z Value of this sprite on initialisation : 1 by default
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def initialize(filename, visible = true, z = 1)
      super()
      self.bitmap   = Bitmap.new(filename)
      self.x        = 0
      self.y        = 0
      self.z        = z
      self.zoom_x   = (Graphics.width.to_f / self.bitmap.width)
      self.zoom_y   = (Graphics.height.to_f / self.bitmap.height)
      self.visible  = visible
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Dispose
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def dispose()
      self.bitmap.dispose()       unless self.bitmap.disposed?
      super()
    end
  end
end







#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
# **  New Class:   Time Tracker
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Once initialised, this class keeps track of time in seconds.
# All instances of the TimeTracker class are updated automatically if you
# have chosen to allow themselves to be added to the list (true by default).
#
# Once initialised, simply call the ' time_up? ' method to see if the time
# is up for this TimeTracker.
# Call ' dispose ' once finished.
#~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
module WWSTDcore
  class TimeTracker
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # *+ Public Instance Variables
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    attr_reader :current_frame  # Current Frame the Tracker is on: Use to Reset Tracker.
    attr_reader :seconds        # Seconds until TimeUp: Change to Increase/Decrease the Wait Time.
    attr_reader :scenetype      # Scenetype: If not nil, this TimeTracker will only Update if SceneManager is in that Specified Scene.
    
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # *- Private Static Variables
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    @@timetracker_list = []     # Static Variable List/Array containing active instances of TimeTrackers
    
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Object Initialisation
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # Time:             How long (in seconds) until this TimeTracker has been successful
    # Scene Class:      Which Scene Can this TimeTracker be updated in : nil by default, which means it can always be updated no matter what scene it is.
    # Add Self To List: Add Self to the Automatic Update List? : true by default. If not true, you need to update the TimeTracker manually
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def initialize(time, scene_class = nil, add_self_to_list = true)
      @current_frame  = 0.0
      @seconds        = time.to_f
      @scenetype      = scene_class
      
      @@timetracker_list.push(self) if add_self_to_list
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Dispose
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def dispose()
      @@timetracker_list.reject! { |tracker| tracker == self }
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Update
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def update()
      @current_frame += 1.0
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Reset
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def reset()
      @current_frame = 0.0
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Get Current Time (in seconds)
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def get_current_time()
      return (@current_frame / Graphics.frame_rate)
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Is Time Up?
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def time_up?()
      return (get_current_time() > @seconds)
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Get TimeTracker List
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def self.get_timetracker_list()
      return @@timetracker_list
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method:   Update TimeTrackers
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def self.update_timetrackers()
      @@timetracker_list.each do |tracker|
        if tracker.scenetype
          if SceneManager.scene_is?(tracker.scenetype)
            tracker.update()
          end
        else
          tracker.update()
        end
      end
    end
  end
end


class Scene_Base
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Aliased Method:   Update
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias WWSTD_WWSTDcore_scenebase_update_xxa001                          update
  def update(*args)
    WWSTD_WWTSDcore_scenebase_update_xxa001(*args)
    WWSTDcore::TimeTracker.update_timetrackers()
  end
end






#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
# **  Edited Classes:   Scene Menu Quick Option Creation
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This edit allows for quick Scene Menu Command Creation.
# alias ' WWSTD_WWSTDcore_get_original_commands ' and follow the instructions
# of that method.
#~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
class Window_MenuCommand < Window_Command
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Aliased Listings
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias WWSTD_WWSTDcore_addorigcomnd_xxa001               add_original_commands
  alias WWSTD_WWSTDcore_activate_xxa001                   activate
 
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * New Method:   Get Original Commands
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  #   hash = alias
  #   hash[ "label" ] = {
  #     :enabled    => true/false,
  #     :method_ref => method🙂method_name),
  #   }
  #   return hash
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def WWSTD_WWSTDcore_get_original_commands()
    return {}
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Aliased Method: For Adding Original Commands
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def add_original_commands(*args)
    WWSTD_WWSTDcore_addorigcomnd_xxa001(*args) # Call Original Method
    
    original_commands = WWSTD_WWSTDcore_get_original_commands()
    original_commands.each_key do |key|
      add_command(key, key.to_sym, original_commands[key][:enabled])
    end
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Aliased Method: Activate
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def activate(*args)
    WWSTD_WWSTDcore_activate_xxa001(*args) # Call Original Command
    
    original_commands = WWSTD_WWSTDcore_get_original_commands()
    original_commands.each_key do |key|
      set_handler(key.to_sym, original_commands[key][:method_ref])
    end
  end
end





#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
# **  New Module:   GameEvents
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This Module Will interact with GameEvents. For now the only code here is:
#     * Get First Comment in Event Page
#     * Get All Comments in Event Page
#~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
module WWSTDCore
  module GameEvents
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method: Get Event First Comment
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def self.get_event_first_comment( event_id )
      comments = get_event_all_comments( event_id )
      return comments[0]  unless comments.empty?
      return ""
    end
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    # * New Method: Get Event All Comments
    #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    def self.get_event_all_comments( event_id )
      comments = []
      event = $game_map.events[ event_id ]
      if event.list
        event.list.each do |command|
          if command.code == 108
            comments.push( command.parameters[0] )
          end
        end
      end
      return comments
    end
  end
end
#==========================================================================
#------------------- end of rip -------------------------------------------
#==========================================================================
module WWSTDCore
 class WWSTDWindow_Master_xxa001 < Window_Base
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * base window Window_Master
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def initialize
  super(wind_X, wind_Y, wind_Width, wind_Height)  # (x, y, width, height) / max window is width = 544, height = 416
  end
 end
end  



module SceneManager
alias WWSTD_WWSTDcore_first_scene_class_xxa001         self.first_scene_class
  #--------------------------------------------------------------------------
  # * Get First Scene Class
  #--------------------------------------------------------------------------
  def self.first_scene_class
    WWSTD_WWSTDcore_first_scene_class_xxa001
    $BTEST ? Scene_Battle : Scene_Title_Splash
  end


XXXXXXXX current concern for now ↓ XXXXXXXXXXXX 10/16/15

module WWSTDCore
    class Scene_Title_Splash < Scene_MenuBase  
      activate_Splash_Intro = false
      if activate_Splash_Intro = false
        SceneManager.call(Scene_Title)
      def start   
        super   
        make_splash_logo
        make_splash_logo2 #splash # 2
      end
      
      def make_splash_logo  
        @sprite=Sprite.new  
        @sprite.bitmap=Cache.picture("Splash")  
        @sprite,opacity=0
      end

    #~    def update   
        super   
        Graphics.wait      = 15   
        Graphics.fadeout   = 1  
        @sprite.opacity    = 255   
        Graphics.fadein    = 30   
        Graphics.wait      = 130   
        Graphics.fadeout   = 30
        # echo for third
        def make_splash_logo2
        @sprite2=Sprite.new  
        @sprite.bitmap=Cache.picture("Splash")  
        @sprite,opacity=0
      end

    #~    def update   
        super   
        Graphics.wait      = 15   
        Graphics.fadeout   = 1  
        @sprite2.opacity    = 255   
        Graphics.fadein    = 30   
        Graphics.wait      = 130   
        Graphics.fadeout   = 30
        # next scene
        SceneManager.call(Scene_Title2)   
       end
    end
end
I've moved this thread to Learning Ruby and RGSSx. Please be sure to post your threads in the correct forum next time. Thank you.
Spoiler
module WWSTDCore
    class Scene_Title_Splash < Scene_MenuBase  
      activate_Splash_Intro = false
      if activate_Splash_Intro = false
        SceneManager.call(Scene_Title)
      def start   
        super   
        make_splash_logo
      end
      
      def make_splash_logo  
        @sprite=Sprite.new  
        @sprite.bitmap=Cache.picture("Splash")  
        @sprite,opacity=0
      end

    #~    def update   
        super   
        Graphics.wait      = 15   
        Graphics.fadeout   = 1  
        @sprite.opacity    = 255   
        Graphics.fadein    = 30   
        Graphics.wait      = 130   
        Graphics.fadeout   = 30
        # echo for third
        def make_splash_logo2
        @sprite2=Sprite.new  
        @sprite.bitmap=Cache.picture(settings::Splash_Image)  
        @sprite,opacity=0
      end

    #~    def update   
        super   
        Graphics.wait      = 15   
        Graphics.fadeout   = 1  
        @sprite2.opacity    = 255   
        Graphics.fadein    = 30   
        Graphics.wait      = 130   
        Graphics.fadeout   = 30
        # next scene
        SceneManager.call(Scene_Title)   
       end
    end
i found an api that has array.each{}

would it work if i did the module call as:

module settings::Splash_list.each{|x| x = Scene_Splash_Title}

Original thread: https://forums.rpgmakerweb.com/threads/need-assistance-with-first-core-script.45997/