Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Faster text speed with Ccoa's "Universal Message System" script (XP)

I'm using Ccoa's "Universal Message System" script in RPG Maker XP using the "one letter at a time" mode.  However, even when the write speed is set to 0 (which, as far as I know, is the fastest setting), it still takes too long for the text box to fill up.  So, as you may have noticed from the title of the thread, I want to make it faster, and I'm pretty sure this could be accomplished if more than one letter was written each frame.  But the only problem is I don't really have any idea what I'd need to change in the script in order to accomplish this, which is why I am posting here.  Any help would be appreciated.
 
This will write 2 characters per frame if the speed is set to 0

Look for the section of code that looks like this: (should be around line 1674)
Code:
      if Graphics.frame_count - @count >= speed
        @count = Graphics.frame_count
        c = @text.slice!(/./m)
        if c != nil
          write_char(c)
          if $game_system.sound_effect != ""
            Audio.se_play("Audio/SE/" + $game_system.sound_effect, 80, 100)
          end
        end
      end
      return
    end

Insert the section in ###

Code:
      if Graphics.frame_count - @count >= speed
        @count = Graphics.frame_count
        c = @text.slice!(/./m)
        if c != nil
          write_char(c)
          if $game_system.sound_effect != ""
            Audio.se_play("Audio/SE/" + $game_system.sound_effect, 80, 100)
          end
        end
        ### write a second character if speed set to 0
        unless speed
          c = @text.slice!(/./m)
          if c != nil
            write_char(c)
          end
        end
        ### end second character
      end
      return
    end

It looks a little bit choppy, since we're writing 2 characters at a time, but it's faster.

If you're using slave windows, you'll have to add the same section in the Window_Slave  update method as well.

Be Well
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top