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
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
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