Dev_With_Coffee

Veteran
Veteran
Joined
Jul 20, 2020
Messages
1,032
Reaction score
513
First Language
PT-BR
Primarily Uses
RM2k3
This is just a modification of a native function of the Window_Base class.
Thanks to anyone who can test and let me know if you find any problems.

Options:
Set 0 to Instant text
Set from 1 to 20 to slow down

Config:
Set in Plugin Default speed
Change the speed through "Plugin Command"

Script:
JavaScript:
/*:
 * @target MZ
 * @plugindesc Sound per character on dialogue.
 * @author DevWithCoffee
 *
 * @help filename: RMMZ-SpeedDialogue.js
 * Script is just a modification of Rpg Maker's native function
 * so it is not necessary to credit the author and
 * it can be used in commercial projects
 *
 * Config:
 * Set in Plugin Default speed
 * Change the speed through "Plugin Command"
 *
 * Options:
 * Set 0 to Instant text
 * Set from 1 to 20 to slow down
 *
 * @param Speed
 * @type number
 * @desc Set Speed
 * @default 10
 * @min 0
 * @max 20
 *
 * @command Speed
 * @text Change Config
 * @desc Change the speed dialog here.
 *
 * @arg Speed
 * @text Speed
 * @type number
 * @default 10
 * @min 0
 * @max 20
 * @desc Select the Speed
 */

(() => {
    const pluginName = "RMMZ-SpeedDialogue";
    var parameters = PluginManager.parameters(pluginName);
  
    PluginManager.registerCommand(pluginName, 'Speed', args => {
        parameters.Speed = args.Speed;
        PluginManager.loadScript(pluginName);
    });

    Window_Base.prototype.processCharacter = function(textState) {
        /*------------ Modification here ------------*/
        this._waitCount = parameters['Speed'];
        this._showFast = true;
        /*------------------- end -------------------*/
        const c = textState.text[textState.index++];
        if (c.charCodeAt(0) < 0x20) {
            this.flushTextState(textState);
            this.processControlCharacter(textState, c);
        } else {
            textState.buffer += c;
        }
    };
})();
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

Hamburger!? Yeeah.
I love it when the approval queue is 80% spammers. Makes it so fast to power through!
I found some inspiration and have started work on a Point and Click style exploration game in a dead mall. I am hopefully going to push MZ in some unexpected directions. I always love seeing the engine do things that folks might not expect. Its good to have found some direction. Thanks for the support a few weeks back when the writers blog was hitting heavy.
Don't you want your heroes or monsters to lose some of their MAXHP or MAXMP? Don't you?
Really, why wouldn't you? :p
Yeah, it's gonna get worse after every hit they take, but so what?
Aren't they courageous fighters? Or stupidly brute mobsters?

Forum statistics

Threads
131,730
Messages
1,222,707
Members
173,475
Latest member
georgino15
Top