The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Algid on May 10, 2007, 09:49:21 PM

Title: [UNRESOLVED, AGAIN] Fonts
Post by: Algid on May 10, 2007, 09:49:21 PM
I want something that will make the skill descriptions and statistics and commands in one font, and the actual skills in another.
Title: Re: Fonts
Post by: Kokowam on May 10, 2007, 09:52:31 PM
This is my guess:

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.
That is Blizzard's Font override. Use the stuff in the second code box as call scripts?
Title: Re: Fonts
Post by: modern algebra on May 10, 2007, 09:54:18 PM
Yeah, also most AMSes (advanced message systems) have that as a feature.
Title: Re: [Unresolved] Fonts
Post by: Algid on May 22, 2007, 11:16:12 PM
That script is great, but not what I'm looking for. I want something that will make the skill descriptions and statistics and commands in one font, and the actual skills in another.
Title: Re: [Unresolved] Fonts
Post by: Zeriab on May 23, 2007, 04:48:20 AM
That would require you to edit the actual scripts.

Also this is quiet different from what you first requested.
If you take some time to write out your first question and get it more precise you have a better chance of getting an answer to what you want ;)
Title: Re: [Unresolved] Fonts
Post by: Sthrattoff on May 23, 2007, 09:28:27 AM
Then, you need to open the statistic script and when you meet a text-drawing method like
self.contents.draw_text
or
draw_actor_hp #Exception for draw_actor_graphics
add this line above those lines:
self.contents.font.type = "FONT NAME"
Title: Re: [Unresolved] Fonts
Post by: Algid on May 23, 2007, 07:37:59 PM
Okay, but I really suck at scripting, and have no idea what you are talking about.
Title: Re: [Unresolved] Fonts
Post by: Algid on May 23, 2007, 08:00:34 PM
 :D I figured it out.
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: Algid on May 24, 2007, 09:04:22 PM
The call script didn't work.
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: Sthrattoff on May 30, 2007, 02:51:48 AM
On the script thing, not call script.
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: Algid on May 30, 2007, 07:02:50 PM
Quote from: Sthrattoff on May 30, 2007, 02:51:48 AM
On the script thing, not call script.

I wasn't responding to yours, I got that, but I want to be able to change the font in events.
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: modern algebra on May 30, 2007, 08:58:53 PM
What do you mean in events?

As in, you want to change the font messages are displayed in?

Or you want to change the fonts of menus and stuff?
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: Algid on May 30, 2007, 09:50:01 PM
I want it so that it is like:

Centaur{Bob: What the hell is that?!)
             {Joanna: [Fremen{OMFG)])
Title: Re: [UNRESOLVED, AGAIN] Fonts
Post by: modern algebra on May 30, 2007, 09:58:42 PM
Use an AMS. dubealex's and ccoa's both have that feature, I believe. You can find dubealex's on creationasylum, and you could at one time have found ccoa's on .org, but their download manager is down I think...