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

[转载发布] Instant Text (MV & MZ)

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

    连续签到: 2 天

    [LV.7]常住居民III

    7951

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 昨天 14:07 | 显示全部楼层 |阅读模式
    Instant Text
        by Jatopian​


    Introduction
        This plugin lets you offer the player the option to have message window text appear instantly, instead of one character at a time. If the player does not want this functionality, it can be disabled and text will appear normally.

    Features
        + The player has the option to toggle the instant text behavior in the Options menu.
        + The developer can make the default setting for this ON or OFF.
        + Costs you nothing to add to your project, and will make quick readers happy.

    How to Use
        Should be straightforward plug&play. I'm not aware of any bugs or compatibility issues.

    Terms of Use
        * Free for commercial and non-commercial use.
        * Please give credit in a trivially accessible place.
        * OK to modify, but if you redistribute the modified version, please make clear that you modified it, and how.
        * If you add features that could be useful to others, please at least consider sharing them with me and the community.

    Script:

    Spoiler                Code:       
    1. //=============================================================================
    2. // InstantText.js                                                         
    3. //=============================================================================
    4. /*:
    5. @plugindesc v1.0.0 Gives option for message text to render instantly.
    6. @author Jatopian
    7. @param Default
    8. @desc Whether instant text is enabled by default in the Options menu. true / false
    9. @Default true
    10. @Help[/USER]
    11. This plugin gives the option for message text to render instantly,
    12. instead of the default behavior (character-by-character).
    13. Player can toggle this behavior in the game's Options menu.
    14. Developer can toggle whether the default setting is ON or OFF.
    15. Terms of Use:
    16. - Free for commercial and non-commercial use.
    17. - Please give credit in a trivially accessible place.
    18. - OK to modify, but if you redistribute the modified version,
    19.   please make clear that you modified it, and how.
    20. - If you add features that could be useful to others,
    21.   please at least consider sharing them with me and the community.
    22. */
    23. (function() {
    24.   var params = PluginManager.parameters("InstantText");
    25.   var pInstantText = String(params["Default"]);
    26.   //=============================================================================
    27.   // ConfigManager
    28.   //=============================================================================
    29.   getDefaultInstantText = function() {
    30.     if (pInstantText.match(/true/i)) {
    31.       return true;
    32.     } else if (pInstantText.match(/false/i)) {
    33.       return false;
    34.     } else {
    35.       return Utils.isNwjs();
    36.     }
    37.   };
    38.     ConfigManager.instantText = getDefaultInstantText();
    39.     var alias_cm_md = ConfigManager.makeData;
    40.     ConfigManager.makeData = function() {
    41.         var config = alias_cm_md.call(this);
    42.         config.instantText = this.instantText;
    43.         return config;
    44.     };
    45.     var alias_cm_ad = ConfigManager.applyData;
    46.     ConfigManager.applyData = function(config) {
    47.         alias_cm_ad.call(this, config);
    48.         this.instantText = this.readConfigInstantText(config, 'instantText');
    49.     };
    50.     ConfigManager.readConfigInstantText = function(config, name) {
    51.         var value = config[name];
    52.         if (value !== undefined) {
    53.             return value;
    54.         } else {
    55.             return getDefaultInstantText();
    56.         }
    57.     };
    58.   //=============================================================================
    59.   // Window_Options
    60.   //=============================================================================
    61.   var alias_wo_ago = Window_Options.prototype.addGeneralOptions;
    62.   Window_Options.prototype.addGeneralOptions = function() {
    63.       alias_wo_ago.call(this);
    64.       this.addCommand("Instant Text", 'instantText');
    65.       console.log(getDefaultInstantText());
    66.   };
    67.   //=============================================================================
    68.   // Window Message
    69.   //=============================================================================
    70.   var alias_wm_udf = Window_Message.prototype.updateShowFast;
    71.   Window_Message.prototype.updateShowFast = function() {
    72.     alias_wm_udf.call(this);
    73.     if (ConfigManager.instantText === true) {
    74.       this._showFast = true
    75.     }
    76.   }
    77. })();
    复制代码





    Thanks for checking out my plugin; I hope you find it useful.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-31 22:43 , Processed in 0.112836 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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