Defined Sound Variables v1.0
by HonestInnocence
Introduction
As I was testing a system I'm currently working on in MV, I found that I couldn't use scripts to call sounds due to them being undefined. Thanks to Tsukihime, I learned that I could define the sound file as a variable. Following that, I found that I couldn't define the sound separate from the script call; noting that this would cause constant re-usage and limitations of a script call block in the editor. So I took to making my first script - a very simple one, where the default sound files for MV are defined.
Script
http://pastebin.com/43D4qAAq
Installation
1. Copy the script lines from pastebin into a word editor (notepad++ is one)
2. Save the file as DefinedSoundVariables.js
3. Paste the above file into your js\plugins folder.
Credit
HonestInnocence (For compiling/defining the default sounds)
Tsukihime (For code format)
Terms of Use
Free to use in any project, even commercial ones.
Author's Notes
As I delve deeper into learning JS, I hope to streamline this script to reduce on line amount, as well as make it to where each sound's attributes can be edited either globally or through parameters.
by HonestInnocence
Introduction
As I was testing a system I'm currently working on in MV, I found that I couldn't use scripts to call sounds due to them being undefined. Thanks to Tsukihime, I learned that I could define the sound file as a variable. Following that, I found that I couldn't define the sound separate from the script call; noting that this would cause constant re-usage and limitations of a script call block in the editor. So I took to making my first script - a very simple one, where the default sound files for MV are defined.
Script
http://pastebin.com/43D4qAAq
Installation
1. Copy the script lines from pastebin into a word editor (notepad++ is one)
2. Save the file as DefinedSoundVariables.js
3. Paste the above file into your js\plugins folder.
Credit
HonestInnocence (For compiling/defining the default sounds)
Tsukihime (For code format)
Terms of Use
Free to use in any project, even commercial ones.
Author's Notes
As I delve deeper into learning JS, I hope to streamline this script to reduce on line amount, as well as make it to where each sound's attributes can be edited either globally or through parameters.