Main Menu
  • Welcome to The RPG Maker Resource Kit.

Scrolling Message System

Started by Season In The Abyss, May 14, 2007, 01:27:40 AM

0 Members and 1 Guest are viewing this topic.

Sophist

The demo is long out dated.

You are an idiot for posting in a thread from 2007 and expecting downloads to work.
[fright]you awoke in a burning paperhouse
from the infinite fields of dreamless sleep
[/fright]

modern algebra

#26
Just copy it from the Script spoiler. It scrolls automatically when you have more than two lins. The choices are added when you use the Show Choice Branch. If you are trying and nothing is showing up, you might not have the font he is using, so change FontName to something you have.

PKSkwerl

Hello. Sorry to topic necro on my first post but I was just wondering if anyone knows how to add the text sound to this script? I love this script and can live without the text sounds in the other script but would definitely prefer it. Thanks :)

Glennx95

I know this is an old topic, but how do i get the name box above the text? it might be a dumb question, but I'm new to the script parts, so i dint know how to edit them yet. Thanks.

modern algebra

I thought it was just by using the code \name[text] inside a text box.

Glennx95

Thats what i thought too, but it doesn't work

modern algebra

Well, it was an extra feature, so you needed to add this code into its own slot below the SMS:


#==============================================================
# ** Scrolling Message System / Name Box
#------------------------------------------------------------------------------
# Slipknot (http://www.creationasylum.net/)
# Version 1.1
# March 13, 2007
#==============================================================

class Window_Message < Window_Selectable
  #--------------------------------------------------------------------------
  # * Alias Listing
  #--------------------------------------------------------------------------
  alias slipknot_sms_nb_refresh refresh
  alias slipknot_sms_nb_repcod replace_code
  alias slipknot_sms_nb_termmes terminate_message
  #--------------------------------------------------------------------------
  # * Terminate Message
  #--------------------------------------------------------------------------
  def terminate_message
    slipknot_sms_nb_termmes
    if @name_box
      @name_box.dispose
      @name_box = nil
    end
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    slipknot_sms_nb_refresh
    if @name_text
      @name_box = Window_MessageNameBox.new(x, y - 16, @name_text)
      @name_box.back.opacity = 0 if $game_system.message_frame == 1
      @name_text = nil
    end
  end
  #--------------------------------------------------------------------------
  # * Replace Code
  #--------------------------------------------------------------------------
  def replace_code
    slipknot_sms_nb_repcod
    @text.gsub!(/\\[Nn]ame\[(.*?)\]/) { @name_text = $1; '' }
  end
end

class Window_MessageNameBox < Window_Base
  #--------------------------------------------------------------------------
  # * Public Instance Variables
  #--------------------------------------------------------------------------
  attr_reader :back
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize(x, y, text)
    dumb = Bitmap.new(160, 32)
    dumb.font = Message.font
    color = nil
    text.sub!(/\\[Cc](\d)/) { color = text_color($1.to_i); '' }
    size = dumb.text_size(text).width
    dumb.dispose
    @back = Window_Base.new(x, y, size + 12, 32)
    @back.z = 9998
    super(x - 10, y - 11, size + 32, 54)
    self.z = 9999
    self.opacity = 0
    self.contents = Bitmap.new(size, 22)
    contents.font = Message.font
    contents.font.color = color if color
    contents.draw_text(0, 0, size, 22, text)
  end
  #--------------------------------------------------------------------------
  # * Dispose
  #--------------------------------------------------------------------------
  def dispose
    @back.dispose
    @back = nil
    super
  end
end

Glennx95

Okay, thanks. It's working now :D