[RPG VX Ace] Scrolling Item Descriptions.

EDIT: Yikes! I fudged the topic title. I meant the tag just to be [VX Ace]. Can a mod kindly fix that?

Hey guys. Recently I found a script that enables the window used by inventory descriptions to have a 'scrolling' effect. This is really useful for having extended text on things that the limited size of the text box wouldn't allow! However I have two questions on how to modify it.

1. If you look at the image below, I have the 'flavor' descriptor text in the upper line of the window, and the attributes of the equipment itself on the bottom line. However, when the text starts to scroll (after a delay set by the script, which is fine), the top AND bottom text scrolls. Given that the bottom text is static information that will never have to exceed the space limitations of the box, I want that text NOT to scroll and be still so the player can review it. How can I make the top line scroll and not the bottom?

LumaoTN.png


2. The script governs the 'class Window_Help < Window_Base' to achieve the effect desired. However, the 'Window_Help' governs a LOT of different text boxes throughout the program; from skill descriptions to custom menus elsewhere, I don't want the text to scroll for all of those! How do I isolate this script so that it only achieves the scrolling effect on the windows that I want it to?

And...here's the script to review.

Spoiler
#-------------------------------------------------------------------------------# Version 1.01# Original VX script by BigEd781# Converted for VX Ace by Xypher# Modified by AuronAD#-------------------------------------------------------------------------------# Tired of short item descriptions? Do you want to include funny puns or # epic backstorys to your weapons? This script allows you to display a # description, were the length is only limited by that of the database-editor.# With this easy-to-use script the help windows scroll horizontally to display# every last bit of your imagination.#-------------------------------------------------------------------------------# Feel free to use however you like it, but please give credit to all the # authors! #------------------------------------------------------------------------------- # Installing# Just copy the script in the "Materials" section and above "Main" and you# should be fine.#------------------------------------------------------------------------------- class Window_Help < Window_Base#------------------------------------------------------------------------------# Configuration#-------------------------------------------------------------------------------    @@SCROLL_DELAY = 2  # After how many seconds should the scroll start?  @@SCROLL_SPEED = 1  # Speed of the scrolling in pixels / frame (60 frames / sec)   @@SCROLL_STOP_DELAY = 2  # After how many seconds should the scroll begin from start?#-------------------------------------------------------------------------------# DO NOT EDIT PAST THIS POINT!#-------------------------------------------------------------------------------    #--------------------------------------------------------------------------  # alias method: initialize  #--------------------------------------------------------------------------  alias :scroll_init :initialize  def initialize(*args)    scroll_init(*args)    @internal_frame_count = 0    @text_is_long = true    self.windowskin = get_altered_skin    @internal_endline_count = 0  end    #--------------------------------------------------------------------------  # overwrite method: get_altered_skin  #--------------------------------------------------------------------------  def get_altered_skin    default = Cache.system('Window')    window = Bitmap.new(default.width, default.height)    window.blt(0, 0, default, default.rect)    window.fill_rect(80, 16, 32, 32, Color.new(0,0,0,0))    return window  end    #--------------------------------------------------------------------------  # overwrite method: set_text  #--------------------------------------------------------------------------  def set_text(text, align = 0)    unless (text == @text) && (align == @align)      @internal_frame_count = 0            if text.include? "\n"        lines = text.split(/\n/)        txt_width = self.contents.text_size(lines[0]).width >= self.contents.text_size(lines[1]).width ? self.contents.text_size(lines[0]).width : self.contents.text_size(lines[1]).width      else        txt_width = self.contents.text_size(text).width      end      @text_is_long = (txt_width) > (self.width - 32)        self.contents.dispose            #w = @text_is_long ? (txt_width + self.width - 32) : self.width - 32      w = @text_is_long ? (txt_width) : self.width - 32      self.contents = Bitmap.new(w, self.height)       self.contents.clear        self.ox = 0      self.contents.font.color = normal_color      self.contents.draw_text(4, 2, self.contents.width, fitting_height(1), text, align)      @text = text      @align = align      refresh    end   end    #--------------------------------------------------------------------------  # overwrite method: update  #--------------------------------------------------------------------------  def update    super    @internal_frame_count += 1    if ((@internal_frame_count > @@SCROLL_DELAY * 60) && @text_is_long)      if self.ox >= (self.contents.width - self.width + 32)        if @internal_endline_count > @@SCROLL_STOP_DELAY * 60          self.ox = 0          @internal_frame_count = 0          @internal_endline_count = 0        else          @internal_endline_count += 1        end      else         self.ox += @@SCROLL_SPEED       end    end  endend
Thanks for your time, guys and gals.

Original thread: https://forums.rpgmakerweb.com/threads/rpg-vx-ace-scrolling-item-descriptions.35736/