Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[VX] Message after New Game

New Game Message
By: Lonelyelf

Intro
This is my first script, so be easy on me. Of course, it's not too useful, but it works! This script is to add a message after the player selects New Game in the title menu. Several customizations are included.

Script
Code:
#==============================================================================
#  LonelylElf's
#    ~~~Text after New Game~~~
#``````````````````````````````````````````````````````````````
# Author: Lonelyelf
# Version: 1.0
# Date: October 15, 2008
# This script is exclusive to RMXP.ORG
#``````````````````````````````````````````````````````````````
#     ~ Compatibility
#========================================================================================================
#
#     This script is not compatible with MOG's Scene Title Screen Miria. MOG's 
#   script overrides the functions of this script. This script is compatible with
#   Dargor's Advanced Title Screen, although the 'Dispose Title graphic'
#   function in this script cannot apply.To use this script with Advanced Title
#    Screen, place this script below the Advanced Title
#           vvvv-Look-vvvv
#   If you are using Dargor's Advanced
#   Title Screen and wish to use the 'Dispose Title graphic' function, delete
#   the # in the next line.
#   MAPDISP = true
#============================================================================================
#     ~Customization
#==============================================================================
#   Change Text Here:
    TEXT = "My mom is pretty"
#Change text location x here:
    LOCATIONX = 20
#Change text location y here:
    LOCATIONY = 20
# Dispose Title Graphic when showing
    THROW = true
#``````````````````````````````````````````````````````````````

#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   *BEGIN SCRIPT
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

#==============================================================================
#--------------------------------------------------------------------------
# *Window_New
#--------------------------------------------------------------------------
class Window_New < Window_Base
  #--------------Initialize---------------------
  def initialize(x, y)
    super(x, y, 512, 60)
    refresh
  end
  #---------Refresh-----------
  def refresh
    self.contents.clear
    text = TEXT
    size = self.contents.text_size(text)
    size.x = 264 - size.width
    size.y = 27 - size.height
    self.contents.draw_text(size, text, 1)
  end
  
  def dispose
    self.bitmap.dispose
    self.bitmap.text.dipose
  end
end
#-----------------------------------------------------------------------------
# * Scene_Title
#-----------------------------------------------------------------------------
class Scene_Title < Scene_Base
  #---------------------New Game------------------------
  def command_new_game
    confirm_player_location
    Sound.play_decision
    $scene = Scene_Map.new
    RPG::BGM.fade(1500)
    close_command_window
    Graphics.wait(40)
    Graphics.frame_count = 0
    RPG::BGM.stop
    create
  end
  #---------------------Create Text-----------------------
  def create
    if MAPDISP == true
      @spriteset.dispose
    end
    if THROW == true
      @sprite.bitmap.dispose
    end
    @p = Window_New.new(LOCATIONX, LOCATIONY)
    @p.update
    @p.openness = 0
    @p.open
    begin
      @p.update
      Graphics.update
    end until @p.openness == 255
    Graphics.wait(120)
    if Input.trigger?(Input::C)
        @p.close
        begin
          @p.update
          Graphics.update
        end until @p.openness == 0
        $game_party.setup_starting_members            # Initial party
        $game_map.setup($data_system.start_map_id)    # Initial map position
        $game_player.moveto($data_system.start_x, $data_system.start_y)
        $game_player.refresh
        Graphics.wait(40)
        Graphics.fadeout(60)
        if MAPDISP == true
          @spriteset = Spriteset_Map.new
        end
        $scene = Scene_Map.new
        $game_map.autoplay
      else 
        Graphics.wait(60)
        return
      end
    end
  end

#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#   *END SCRIPT
#vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

#==================================================================================================================

Compatability:
This script is not compatible with MOG's Scene Title Screen Miria. MOG's
  script overrides the functions of this script. This script is compatible with
  Dargor's Advanced Title Screen, although the 'Dispose Title graphic'
  function in this script cannot apply.To use this script with Advanced Title
   Screen, place this script below the Advanced Title.

Screens and Demos
unnecacery
 
Ok I'm confused, so when the player clicks "New Game" that message shows up?

If so that would be extremely useless, unfortunately, since the player can much easily setup and event or picture.

Anyways, this will at least get your foot in the game. ^.^
 
It is obviously useless, but you never know. It shows a message after the user selects New Game. It can delete the background or save it.

-Lonelyelf
 
Ok I'm confused, so when the player clicks "New Game" that message shows up?

If so that would be extremely useless, unfortunately, since the player can much easily setup and event or picture.

Anyways, this will at least get your foot in the game. ^.^

I completely disagree. I've never seen anyone make this script before, so your unique at least.lol
And although many people may not actually use it, you at least made a script, which you should be proud of, and who knows...People are finding wierd purposes for things all the time in RPG Maker. It may seem useless know, but you'de be suprised.

Good work.  :thumb:
 
You could say: "Where do you want to save your new game?"
or "Are you sure you want to begin a new game?" .
It could be  the beginning or intro of your story, so you don't need to make a complicated event with self switch and such! It prevens lag on your map!

I like it. And it's without glitches. Super first script, LonelyElf!

Greetz, Axules :hat:
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top