设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 96|回复: 0

[转载发布] Text Speed

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7545

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29097
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    37536

    灌水之王

    发表于 7 天前 | 显示全部楼层 |阅读模式
    Porting my VX Ace Scrip. This script allows to globally change the speed of game text.

    - Double/Triple/.. text speed
    - Make text slower
    - Instant text

                    Ruby:       
    1. =begin
    2. ===============================================================================
    3. Text Speed
    4. Change text speed by Zero_G v1.1
    5. Version: RGSS2
    6. ===============================================================================
    7. == Description ==
    8. This script will allow you to change the speed the text is displayed.
    9. Text can be slowed down, speed up or to displayed instantly.
    10. == Terms of Use ==
    11. - Free for use in non-commercial projects.
    12. - Free for use in commercial projects.
    13. - Please provide credits to Zero_G.
    14. == Credits ==
    15. No one.
    16. == Usage ==
    17. Just add the plugin before main.
    18. == Changelog ==
    19. v1.1 Change methods overwrite to alias
    20. v1.0 Initial
    21. --------------------------------------------------------------------------------
    22. =end
    23. module ZERO
    24.   # Speed of text, values 0 and 1 for default speed
    25.   # 2 for double speed, 3 triple speed, ...
    26.   TEXT_SPEED = 2
    27.   # For slowing text add a delay between characters
    28.   # 10 for very slow text, 5 slow text, 1 a bit slow
    29.   # 0 to disable
    30.   SLOW_TEXT = 0
    31.   # Display text instantly, will ignore text speed
    32.   # Set to false for default, true for instant text
    33.   INSTANT_SPEED = false
    34. end
    35. class Window_Message < Window_Selectable
    36.   # Alias
    37.   alias zero_textspeed_update update
    38.   def update
    39.     unless @opening or @closing
    40.       if @text != nil
    41.         for i in 2..ZERO::TEXT_SPEED # Speed up text
    42.           update_message
    43.         end
    44.       end
    45.     end
    46.     zero_textspeed_update
    47.   end
    48.   # Instant speed
    49.   # Alias
    50.   if ZERO::INSTANT_SPEED
    51.     alias zero_update_show_fast update_show_fast
    52.     def update_show_fast
    53.       zero_update_show_fast
    54.       @show_fast = true
    55.     end
    56.   end
    57.   # Alias
    58.   alias zero_update_message update_message
    59.   def update_message
    60.     @wait_count = ZERO::SLOW_TEXT # Slow text
    61.     unless @text.nil?
    62.       zero_update_message
    63.     end
    64.   end
    65. end
    复制代码




    本贴来自国际rpgmaker官方论坛作者:Zero_G处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/text-speed.130488/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-7-30 20:28 , Processed in 0.147144 second(s), 58 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表