Add instructions in rpg maker title

How do I add an option in the title for instructions? Like I want it to have text saying the instructions of the game (option like “start, load, and shutdown”)
You'd have to alter Scene_Title to do that. The first change would have to be done inside the main method. Then you'd need to add an extra option for the case statement in the update method.
You'd have to alter Scene_Title to do that. The first change would have to be done inside the main method. Then you'd need to add an extra option for the case statement in the update method.
I already added the option, the problem is, how do I type the instructions in text?
You have 3 options here.

  1. Custom images
  2. Message boxes
  3. Custom Script
The first two options are easy for you but not the third unless you tell me now you're an intermediate scripter of sorts. 😅
You have 3 options here.

  1. Custom images
  2. Message boxes
  3. Custom Script
The first two options are easy for you but not the third unless you tell me now you're an intermediate scripter of sorts. 😅
I would like the 3rd option, I want to know
Ok... this would be the first step. Let's see if you get a grasp on it.

Inside a method (def some_name) you can use a local variable (i_am_variable) and set it to "any text you can come up with."
text = "Text"
or
lines = ["First line", "Second line", "Third line"]
9cd2572f-8d94-44ee-9e43-403e5024660e.jpeg

So I tried the first few steps, but I don’t understand the variable thing (or the text and the lines)
Let me leave an example here.

Ruby:
class Scene_Help
  def initialize(*new_messages)
    @texts = new_messages
    @texts << ["No more messages left."]
  end

  def main
    start
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      break if $scene != self
    end
    Graphics.freeze
    terminate
  end

  def start
    @width = 640 - 32
    @height = 160 - 32
    @help_window = Window_Base.new(0, 320, @width + 32, @height + 32)
    @help_window.contents = Bitmap.new(@width, @height)
    draw_help
  end

  def draw_help
    @help_window.contents.clear
    return if @texts.empty?
    lines = @texts.shift
    lines.each_with_index do |text, n|
      @help_window.contents.draw_text(0, n * 32, @width, 32, text)
    end
  end

  def back2map
    $scene = Scene_Map.new
  end

  def terminate
    @help_window.dispose
  end

  def update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      back2map
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @texts.any? ? draw_help : back2map
    end
  end
end

There I created a custom scene called Scene_Help. It will ask you to pass an array of texts. I mean, you type in a list of "text messages" in a row. Or you can define an array or two first and then pass them as arguments.

Ruby:
list1 = ["Hey!", "Back off!", "Beware the dog!"]
list2 = ["Just kidding!", "Don't take it personal"]
$scene = Scene_Help.new(list1, list2)

During gameplay, you'll see how a new black screen with a dialog window similar to the typical message window will show up at the very bottom of the scene.

Inside the initialize method, you can find a "No more messages left." string that will get added to the end of the array. If you hit the OK button after reading it, the scene will be closed immediately.
Let me leave an example here.

Ruby:
class Scene_Help
  def initialize(*new_messages)
    @texts = new_messages
    @texts << ["No more messages left."]
  end

  def main
    start
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      break if $scene != self
    end
    Graphics.freeze
    terminate
  end

  def start
    @width = 640 - 32
    @height = 160 - 32
    @help_window = Window_Base.new(0, 320, @width + 32, @height + 32)
    @help_window.contents = Bitmap.new(@width, @height)
    draw_help
  end

  def draw_help
    @help_window.contents.clear
    return if @texts.empty?
    lines = @texts.shift
    lines.each_with_index do |text, n|
      @help_window.contents.draw_text(0, n * 32, @width, 32, text)
    end
  end

  def back2map
    $scene = Scene_Map.new
  end

  def terminate
    @help_window.dispose
  end

  def update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      back2map
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @texts.any? ? draw_help : back2map
    end
  end
end

There I created a custom scene called Scene_Help. It will ask you to pass an array of texts. I mean, you type in a list of "text messages" in a row. Or you can define an array or two first and then pass them as arguments.

Ruby:
list1 = ["Hey!", "Back off!", "Beware the dog!"]
list2 = ["Just kidding!", "Don't take it personal"]
$scene = Scene_Help.new(list1, list2)

During gameplay, you'll see how a new black screen with a dialog window similar to the typical message window will show up at the very bottom of the scene.

Inside the initialize method, you can find a "No more messages left." string that will get added to the end of the array. If you hit the OK button after reading it, the scene will be closed immediately.
That actually helped and all! but there is a small problem, every time I press "0" or "x" to return to the main title screen, this pops up.

error.png
It's not related to my sample script. I'd need to know how have you altered the Scene_Map and Spriteset_Map scripts to find out what happened there.
Scene_Map:

#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs map screen processing.
#==============================================================================

class Scene_Map
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
def main
# Make sprite set
@spriteset = Spriteset_Map.new
# Make message window
@message_window = Window_Message.new
# Transition run
Graphics.transition
# Main loop
loop do
# Update game screen
Graphics.update
# Update input information
Input.update
# Frame update
update
# Abort loop if screen is changed
if $scene != self
break
end
end
# Prepare for transition
Graphics.freeze
# Dispose of sprite set
@spriteset.dispose
# Dispose of message window
@message_window.dispose
# If switching to title screen
if $scene.is_a?(Scene_Title)
# Fade out screen
Graphics.transition
Graphics.freeze
end
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# Loop
loop do
# Update map, interpreter, and player order
# (this update order is important for when conditions are fulfilled
# to run any event, and the player isn't provided the opportunity to
# move in an instant)
$game_map.update
$game_system.map_interpreter.update
$game_player.update
# Update system (timer), screen
$game_system.update
$game_screen.update
# Abort loop if player isn't place moving
unless $game_temp.player_transferring
break
end
# Run place move
transfer_player
# Abort loop if transition processing
if $game_temp.transition_processing
break
end
end
# Update sprite set
@spriteset.update
# Update message window
@message_window.update
# If game over
if $game_temp.gameover
# Switch to game over screen
$scene = Scene_Gameover.new
return
end
# If returning to title screen
if $game_temp.to_title
# Change to title screen
$scene = Scene_Title.new
return
end
# If transition processing
if $game_temp.transition_processing
# Clear transition processing flag
$game_temp.transition_processing = false
# Execute transition
if $game_temp.transition_name == ""
Graphics.transition(20)
else
Graphics.transition(40, "Graphics/Transitions/" +
$game_temp.transition_name)
end
end
# If showing message window
if $game_temp.message_window_showing
return
end
# If encounter list isn't empty, and encounter count is 0
if $game_player.encounter_count == 0 and $game_map.encounter_list != []
# If event is running or encounter is not forbidden
unless $game_system.map_interpreter.running? or
$game_system.encounter_disabled
# Confirm troop
n = rand($game_map.encounter_list.size)
troop_id = $game_map.encounter_list[n]
# If troop is valid
if $data_troops[troop_id] != nil
# Set battle calling flag
$game_temp.battle_calling = true
$game_temp.battle_troop_id = troop_id
$game_temp.battle_can_escape = true
$game_temp.battle_can_lose = false
$game_temp.battle_proc = nil
end
end
end
# If B button was pressed
if Input.trigger?(Input::😎
# If event is running, or menu is not forbidden
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
# Set menu calling flag or beep flag
$game_temp.menu_calling = true
$game_temp.menu_beep = true
end
end
# If debug mode is ON and F9 key was pressed
if $DEBUG and Input.press?(Input::F9)
# Set debug calling flag
$game_temp.debug_calling = true
end
# If player is not moving
unless $game_player.moving?
# Run calling of each screen
if $game_temp.battle_calling
call_battle
elsif $game_temp.shop_calling
call_shop
elsif $game_temp.name_calling
call_name
elsif $game_temp.menu_calling
call_menu
elsif $game_temp.save_calling
call_save
elsif $game_temp.debug_calling
call_debug
end
end
end
#--------------------------------------------------------------------------
# * Battle Call
#--------------------------------------------------------------------------
def call_battle
# Clear battle calling flag
$game_temp.battle_calling = false
# Clear menu calling flag
$game_temp.menu_calling = false
$game_temp.menu_beep = false
# Make encounter count
$game_player.make_encounter_count
# Memorize map BGM and stop BGM
$game_temp.map_bgm = $game_system.playing_bgm
$game_system.bgm_stop
# Play battle start SE
$game_system.se_play($data_system.battle_start_se)
# Play battle BGM
$game_system.bgm_play($game_system.battle_bgm)
# Straighten player position
$game_player.straighten
# Switch to battle screen
$scene = Scene_Battle.new
end
#--------------------------------------------------------------------------
# * Shop Call
#--------------------------------------------------------------------------
def call_shop
# Clear shop call flag
$game_temp.shop_calling = false
# Straighten player position
$game_player.straighten
# Switch to shop screen
$scene = Scene_Shop.new
end
#--------------------------------------------------------------------------
# * Name Input Call
#--------------------------------------------------------------------------
def call_name
# Clear name input call flag
$game_temp.name_calling = false
# Straighten player position
$game_player.straighten
# Switch to name input screen
$scene = Scene_Name.new
end
#--------------------------------------------------------------------------
# * Menu Call
#--------------------------------------------------------------------------
def call_menu
# Clear menu call flag
$game_temp.menu_calling = false
# If menu beep flag is set
if $game_temp.menu_beep
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Clear menu beep flag
$game_temp.menu_beep = false
end
# Straighten player position
$game_player.straighten
# Switch to menu screen
$scene = Scene_Menu.new
end
#--------------------------------------------------------------------------
# * Save Call
#--------------------------------------------------------------------------
def call_save
# Straighten player position
$game_player.straighten
# Switch to save screen
$scene = Scene_Save.new
end
#--------------------------------------------------------------------------
# * Debug Call
#--------------------------------------------------------------------------
def call_debug
# Clear debug call flag
$game_temp.debug_calling = false
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Straighten player position
$game_player.straighten
# Switch to debug screen
$scene = Scene_Debug.new
end
#--------------------------------------------------------------------------
# * Player Place Move
#--------------------------------------------------------------------------
def transfer_player
# Clear player place move call flag
$game_temp.player_transferring = false
# If move destination is different than current map
if $game_map.map_id != $game_temp.player_new_map_id
# Set up a new map
$game_map.setup($game_temp.player_new_map_id)
end
# Set up player position
$game_player.moveto($game_temp.player_new_x, $game_temp.player_new_y)
# Set player direction
case $game_temp.player_new_direction
when 2 # down
$game_player.turn_down
when 4 # left
$game_player.turn_left
when 6 # right
$game_player.turn_right
when 8 # up
$game_player.turn_up
end
# Straighten player position
$game_player.straighten
# Update map (run parallel process event)
$game_map.update
# Remake sprite set
@spriteset.dispose
@spriteset = Spriteset_Map.new
# If processing transition
if $game_temp.transition_processing
# Clear transition processing flag
$game_temp.transition_processing = false
# Execute transition
Graphics.transition(20)
end
# Run automatic change for BGM and BGS set on the map
$game_map.autoplay
# Frame reset
Graphics.frame_reset
# Update input information
Input.update
end
end


Spriteset_Map:
#=============================================================================
# ** Spriteset_Map
#------------------------------------------------------------------------------
# This class brings together map screen sprites, tilemaps, etc.
# It's used within the Scene_Map class.
#==============================================================================

class Spriteset_Map
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
# Make viewports
@viewport1 = Viewport.new(0, 0, 640, 480)
@viewport2 = Viewport.new(0, 0, 640, 480)
@viewport3 = Viewport.new(0, 0, 640, 480)
@viewport2.z = 200
@viewport3.z = 5000
# Make tilemap
@tilemap = Tilemap.new(@viewport1)
@tilemap.tileset = RPG::Cache.tileset($game_map.tileset_name)
for i in 0..6
autotile_name = $game_map.autotile_names
@tilemap.autotiles = RPG::Cache.autotile(autotile_name)
end
@tilemap.map_data = $game_map.data
@tilemap.priorities = $game_map.priorities
# Make panorama plane
@panorama = Plane.new(@viewport1)
@panorama.z = -1000
# Make fog plane
@fog = Plane.new(@viewport1)
@fog.z = 3000
# Make character sprites
@character_sprites = []
for i in $game_map.events.keys.sort
sprite = Sprite_Character.new(@viewport1, $game_map.events)
@character_sprites.push(sprite)
end
# Make the Player Sprite
@character_sprites.push(Sprite_Character.new(@viewport1, $game_player))
# Make weather
@weather = RPG::Weather.new(@viewport1)
# Make picture sprites
@picture_sprites = []
for i in 1..50
@picture_sprites.push(Sprite_Picture.new(@viewport2,
$game_screen.pictures))
end
# Make timer sprite
@timer_sprite = Sprite_Timer.new
# Frame update
update
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
# Dispose of tilemap
@tilemap.tileset.dispose
for i in 0..6
@tilemap.autotiles.dispose
end
@tilemap.dispose
# Dispose of panorama plane
@panorama.dispose
# Dispose of fog plane
@fog.dispose
# Dispose of character sprites
for sprite in @character_sprites
sprite.dispose
end
# Dispose of weather
@weather.dispose
# Dispose of picture sprites
for sprite in @picture_sprites
sprite.dispose
end
# Dispose of timer sprite
@timer_sprite.dispose
# Dispose of viewports
@viewport1.dispose
@viewport2.dispose
@viewport3.dispose
end
#--------------------------------------------------------------------------
# * Frame Update
#--------------------------------------------------------------------------
def update
# If panorama is different from current one
if @panorama_name != $game_map.panorama_name or
@panorama_hue != $game_map.panorama_hue
@panorama_name = $game_map.panorama_name
@panorama_hue = $game_map.panorama_hue
if @panorama.bitmap != nil
@panorama.bitmap.dispose
@panorama.bitmap = nil
end
if @panorama_name != ""
@panorama.bitmap = RPG::Cache.panorama(@panorama_name, @panorama_hue)
end
Graphics.frame_reset
end
# If fog is different than current fog
if @fog_name != $game_map.fog_name or @fog_hue != $game_map.fog_hue
@fog_name = $game_map.fog_name
@fog_hue = $game_map.fog_hue
if @fog.bitmap != nil
@fog.bitmap.dispose
@fog.bitmap = nil
end
if @fog_name != ""
@fog.bitmap = RPG::Cache.fog(@fog_name, @fog_hue)
end
Graphics.frame_reset
end
# Update tilemap
@tilemap.ox = $game_map.display_x / 4
@tilemap.oy = $game_map.display_y / 4
@tilemap.update
# Update panorama plane
@panorama.ox = $game_map.display_x / 8
@panorama.oy = $game_map.display_y / 8
# Update fog plane
@fog.zoom_x = $game_map.fog_zoom / 100.0
@fog.zoom_y = $game_map.fog_zoom / 100.0
@fog.opacity = $game_map.fog_opacity
@fog.blend_type = $game_map.fog_blend_type
@fog.ox = $game_map.display_x / 4 + $game_map.fog_ox
@fog.oy = $game_map.display_y / 4 + $game_map.fog_oy
@fog.tone = $game_map.fog_tone
# Update character sprites
for sprite in @character_sprites
sprite.update
end
# Update weather graphic
@weather.type = $game_screen.weather_type
@weather.max = $game_screen.weather_max
@weather.ox = $game_map.display_x / 4
@weather.oy = $game_map.display_y / 4
@weather.update
# Update picture sprites
for sprite in @picture_sprites
sprite.update
end
# Update timer sprite
@timer_sprite.update
# Set screen color tone and shake position
@viewport1.tone = $game_screen.tone
@viewport1.ox = $game_screen.shake
# Set screen flash color
@viewport3.color = $game_screen.flash_color
# Update viewports
@viewport1.update
@viewport3.update
end
end
Got it. My test scene was intended to be used after you had picked the new game option. You're using it by choosing your custom help option. Instead of back2map calling a new map scene, let it go to the title scene.
Got it. My test scene was intended to be used after you had picked the new game option. You're using it by choosing your custom help option. Instead of back2map calling a new map scene, let it go to the title scene.
Oh my god it worked! Thank you so much!! By the way, how do I make the text under each other

Ex:

“Hi
Hello
Bye”
Just follow the example I have already provided here. Change the contents of the arrays, and sooner or later you'll learn how to do that.
Just follow the example I have already provided here. Change the contents of the arrays, and sooner or later you'll learn how to do that.
But I don't really understand the ex. like where do I put the code? do I create another script for it? or do I put it in the same script I'm using? and if I it's in the same script, where should I put it without getting me an error?
Well, if you're only going to use it in the main menu by choosing the help option, then the script would need to be slightly modified first...

Main Menu Version

Ruby:
class Scene_Help
  TEXTS = []
  TEXTS << ["Example Line 1", "Line 2", "Line 3"]
  TEXTS << ["No more messages left."]

  def main
    start
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      break if $scene != self
    end
    Graphics.freeze
    terminate
  end

  def start
    @texts = TEXTS.dup
    @width = 640 - 32
    @height = 160 - 32
    @help_window = Window_Base.new(0, 320, @width + 32, @height + 32)
    @help_window.contents = Bitmap.new(@width, @height)
    draw_help
  end

  def draw_help
    @help_window.contents.clear
    return if @texts.empty?
    lines = @texts.shift
    lines.each_with_index do |text, n|
      @help_window.contents.draw_text(0, n * 32, @width, 32, text)
    end
  end

  def go_back
    $scene = Scene_Title.new
  end

  def terminate
    @help_window.dispose
  end

  def update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      go_back
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @texts.any? ? draw_help : go_back
    end
  end
end

Above you will find a new Constant called TEXTS. Leave the first line intact. Then play with, I mean, edit the second or third lines as many times as needed till you get used to how to use that array. You can add as many extra lines as needed, by the way.
Well, if you're only going to use it in the main menu by choosing the help option, then the script would need to be slightly modified first...

Main Menu Version

Ruby:
class Scene_Help
  TEXTS = []
  TEXTS << ["Example Line 1", "Line 2", "Line 3"]
  TEXTS << ["No more messages left."]

  def main
    start
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      break if $scene != self
    end
    Graphics.freeze
    terminate
  end

  def start
    @texts = TEXTS.dup
    @width = 640 - 32
    @height = 160 - 32
    @help_window = Window_Base.new(0, 320, @width + 32, @height + 32)
    @help_window.contents = Bitmap.new(@width, @height)
    draw_help
  end

  def draw_help
    @help_window.contents.clear
    return if @texts.empty?
    lines = @texts.shift
    lines.each_with_index do |text, n|
      @help_window.contents.draw_text(0, n * 32, @width, 32, text)
    end
  end

  def go_back
    $scene = Scene_Title.new
  end

  def terminate
    @help_window.dispose
  end

  def update
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      go_back
    elsif Input.trigger?(Input::C)
      $game_system.se_play($data_system.decision_se)
      @texts.any? ? draw_help : go_back
    end
  end
end

Above you will find a new Constant called TEXTS. Leave the first line intact. Then play with, I mean, edit the second or third lines as many times as needed till you get used to how to use that array. You can add as many extra lines as needed, by the way.
Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/add-instructions-in-rpg-maker-title.162647/