I've been working with the BattleVoice.js plugin that comes with the regular list of Kadokawa Plugins if you're using the Steam version.
The plugin works fine I was just trying to change it a bit the suit my needs. In my game I have added an extra skill type called "Master" that I want the characters to also speak for. However, just going into the plugin and changing the syntax of all "skills" to "Master" does not work and creates errors. I was wondering if there is anyone who can explain to me how to properly edit the plugin to add the "Master" skill type to the voices.
What I've been doing is taking anything that is like this
SoundManager.playActorVoice = function(actor, type){
var name = '';
switch(type){
case 'skill':
name = actor.meta.skillVoice;
break;
}
if(name){
var audio = AudioManager.createAudioByFileame(name);
AudioManager.playSe(audio);
And instead of
name = actor.meta.skillVoice; I would replace that with
name = actor.meta.masterVoice;
I would replace it with that instead with no results or errors. What I'm looking for is help on how to properly format it.
The plugin works fine I was just trying to change it a bit the suit my needs. In my game I have added an extra skill type called "Master" that I want the characters to also speak for. However, just going into the plugin and changing the syntax of all "skills" to "Master" does not work and creates errors. I was wondering if there is anyone who can explain to me how to properly edit the plugin to add the "Master" skill type to the voices.
What I've been doing is taking anything that is like this
SoundManager.playActorVoice = function(actor, type){
var name = '';
switch(type){
case 'skill':
name = actor.meta.skillVoice;
break;
}
if(name){
var audio = AudioManager.createAudioByFileame(name);
AudioManager.playSe(audio);
And instead of
name = actor.meta.skillVoice; I would replace that with
name = actor.meta.masterVoice;
I would replace it with that instead with no results or errors. What I'm looking for is help on how to properly format it.