The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: godlock2006 on June 06, 2007, 09:08:36 PM

Title: Missing words!
Post by: godlock2006 on June 06, 2007, 09:08:36 PM
When i went to creation asylum(i have to post here because it wont let me on my yahoo account) anyway i downloaded a menu system (script) like for pokedex when i go on menu it doesnt show POKEDEX on the menu.It missing.
so this one person said to edit the main script i did but nothing popped up still can someone please tell me how to make stuff pop up? :'(
Title: Re: Missing words!
Post by: modern algebra on June 06, 2007, 11:35:03 PM
Errrrm...

Just post the script and I will do the edit. As it is, I have no real idea what you are talking about. It sounds like it is probably an out of range x or y value or something on the word.
Title: Re: Missing words!
Post by: godlock2006 on June 07, 2007, 12:24:19 AM
Message by TSUKASA:
k, I have the answer ;D go to main and put this after begin

CODE
# Font used
  $fontface = "Lucida Console"

it should look like this


CODE
begin
    # Font used
  $fontface = "Lucida Console"
  # Prepare for transition
  Graphics.freeze
  # Make scene object (title screen)
  $scene = Scene_Title.new

rEGULAR SCRIPT:
#==============================================================================
# ? Main
#------------------------------------------------------------------------------
# ???????????????????????????????
#==============================================================================

begin

  # This variable determines the default font type
  $defaultfonttype = "Tahoma"
  # This variable determines the default font size
  $defaultfontsize = 22

  # ?????????
  Graphics.freeze
  # ????????? (??????) ???
  $scene = Scene_Title.new
  # $scene ?????? main ?????????
  while $scene != nil
    $scene.main
  end
  # ???????
  Graphics.transition(20)
rescue Errno::ENOENT
  # ?? Errno::ENOENT ???
  # ????????????????????????????????
  filename = $!.message.sub("No such file or directory - ", "")
  print("File #{filename} not found.")
end
Title: Re: Missing words!
Post by: Zeriab on June 07, 2007, 04:38:08 PM
Quote from: Blizzard on September 18, 2006, 01:13:40 PM
b) Ultimate Font Override

This little script will do the job:

#==============================================================================
# Game_System
#==============================================================================

class Game_System
 
  attr_reader   :fontname
  attr_reader   :fontsize
 
  alias init_ultimate_font_override_later initialize
  def initialize
    init_ultimate_font_override_later
    self.fontname = "Arial"
    self.fontsize = 24
  end
 
  def fontname=(name)
    $defaultfonttype = $fontface = @fontname = name
  end
   
  def fontsize=(size)
    $defaultfontsize = $fontsize = @fontsize = size
  end
 
end

#==============================================================================
# Bitmap
#==============================================================================

class Bitmap

  alias init_font_override_later initialize
  def initialize(w, h = nil)
    if w.is_a?(Numeric) and h.is_a?(Numeric)
      init_font_override_later(w, h)
    else
      init_font_override_later(w)
    end
    if $game_system.fontname != nil and not $scene.is_a?(Scene_Title)
      self.font.name = $game_system.fontname
      self.font.size = $game_system.fontsize
    else
      self.font.name = "Arial"
      self.font.size = 24
    end
  end
 
end


You can change the font/fontsize with

$game_system.fontname = "FONTNAME"
$game_system.fontsize = FONTSIZE


It will override the font from any RMXP version.