Description
Dynamically plays sound effects, while text messages are printed.
Author
Iavra
Parameters
@param Enable Text Sounds
@desc Controls, if text sounds should be played at all. Default: true
@default true
@param Sound Name
@desc Sound effect to be played, when text is displayed. Can be changed for each text individually.
@default Cursor1
@param Sound Pan
@desc Value to be used as sound pan. Default: 0
@default 0
@param Sound Pitch
@desc Value to be used as sound pitch. Default: 100
@default 100
@param Sound Volume
@desc Volume of the played sound. Default: 100
@default 100
@param Interval
@desc How often the sound effect should be played. Only specify a value of 1 or higher. Default: 1
@default 1
@param Limit
@desc Only process the first X characters. A value less than 0 removes the limitation. Default: -1
@default -1
How to Use
Plays sound effects when messages are displayed. The sound effect can be configured in the following ways:
sound
The name of the sound effect to be played (must match with a file in audio/se).
pan
Pan of the sound effect.
pitch
Pitch of the sound effect.
volume
Volume of the sound effect.
interval
How often the sound effect should be played. "1" means every character.
limit
Only play sound effects for the first X characters. A value less than 0 removes the limitation.
All options can be specified via plugin parameters and either set to different values or reset to their default with the following script calls:
IAVRA.TEXTSOUND.setOptions(options);
IAVRA.TEXTSOUND.resetOptions();
"options" is an object containing one or more of the options specified above and the new value to be set. If you want to reset all options the their default values, you can do so by executing the following script:
If you want to (temporarily) enable or disable text sounds, you can do so by calling one of the following:
IAVRA.TEXTSOUND.enable();
IAVRA.TEXTSOUND.disable();
Plugin Commands
TextSound set <option> <value>
TextSound reset
TextSound enable
TextSound disable
For the "set" command, you need to specify one of the options specified above and the new value to be used. If you want to set multiple options at the same time, you'll still need to use the script call, instead.
Terms of Use
Free to use for both commercial and non-commercial games. Please give credit.
Download
http://pastebin.com/pkveq4tD
本贴来自国际rpgmaker官方论坛作者:Iavra处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/iavra-text-sound.49347/