- 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:
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: