Editing the Long Descriptions script so that it scrolls in a loop?

I don't quite know where to find this, but I know it's made by some user named "BigEd781" and converted to Ace by "Xypher".

Spoiler
# Original VX script by BigEd781

# Converted for VX Ace by Xypher

# Script is provided as is

 

class Window_Help < Window_Base

 

  @@SCROLL_DELAY = 2  # seconds

  @@SCROLL_SPEED = 1  # pixels / frame (60 frames / sec)

 

  alias :scroll_init :initialize

  def initialize(*args)

scroll_init(*args)

@internal_frame_count = 0

@text_is_long = false

self.windowskin = get_altered_skin

  end

 

  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

 

  def set_text(text, align = 0)

unless (text == @text) && (align == @align)

 @internal_frame_count = 0

 txt_width = self.contents.text_size(text).width

 @text_is_long = txt_width > (self.width - 32)  

 self.contents.dispose

 w = @text_is_long ? (txt_width + self.width - 32) : 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, 0, self.contents.width, fitting_height(1), text, align)

 @text = text

 @align = align

 refresh

end 

  end

 

  def update

super

@internal_frame_count += 1

if ((@internal_frame_count > @@SCROLL_DELAY * 60) && @text_is_long)

if self.ox >= (self.contents.width / 2 - self.width / 2) 

self.ox = 0

@internal_frame_count = 0

 else 

self.ox += @@SCROLL_SPEED 

 end

end

  end

 

end
Instead of scrolling in a loop like an electronic info sign at like a airport, it scrolls right, along the text when the text is longer than the info window width, and then goes back to the beginning when the text is all scrolled.

Instead I think it would be better if the beginning of the text popped up on the right, in a "loop", kind of like

[s this is an example of what I mean. Hey guy]

[ys this is an example of what I mean. Hey gu]

[uys this is an example of what I mean. Hey g]

[guys this is an example of what I mean. Hey ]
Bump.

Not that it's way-important, be it, you can change the wait time, but

long wait time for lots of info is good but for long-but-not-plentiful text is a bit blah and it feels kind of weird having it not scroll in a loop.

Original thread: https://forums.rpgmakerweb.com/threads/editing-the-long-descriptions-script-so-that-it-scrolls-in-a-loop.26102/