I would like to know if this plugin of Kannazuki could be edited to give more command voices than just Attack, Skill and Spell for attacks and if someone would know how to work on it.
Battle Voice Plugin
JS Plugin RequestsPlease link to the plugin you're talking about, no one can answer your questions without knowing that.
And please give the link to the original website where the terms-of-use are posted, because this is also a legal problem (does Kannazuki allow edits?) as well as a technical problem (is the plugin simple enough for such an edit or will a rewrite be required)
And please give the link to the original website where the terms-of-use are posted, because this is also a legal problem (does Kannazuki allow edits?) as well as a technical problem (is the plugin simple enough for such an edit or will a rewrite be required)
When asking for help with a plugin, it's probably best to include a link to said plugin instead of having us look for it to even begin to be able to help you.
Sadly i don't know him/her and this plugin is in rmmv folder and i have no link for it so i'll just paste below
//=============================================================================
// BattleVoice.js
//=============================================================================
/*:
* @plugindesc play voice SE at battle when actor does spcified action
* @author Sasuke KANNAZUKI
*
* @param pitch
* @desc pitch of SEs. this setting is common among all voice SEs.
* @Default 100
*
* @param volume
* @desc volume of SEs. this setting is common among all voice SEs.
* @Default 90
*
* @Help This plugin does not provide plugin commands.
*
* note specification:
* write down each actor's note at following format to set SE filename.
* <attackVoice:filename> plays when actor does normal attack.
* <recoverVoice:filename> plays when actor uses HP recovering magic.
* <friendMagicVoice:filename> plays when actor spells magic for friend
* except HP recovering. if this is not set but <skillVoice:filename> is set,
* it plays <magicVoice:filename> setting file.
* <magicVoice:filename> plays when actor spells magic(except for friend).
* <skillVoice:filename> plays when actor uses special skill except magic.
* <damageVoice:filename> plays when actor takes damage.
* <defeatedVoice:filename> plays when actor is died.
* <victoryVoice:filename> plays when battle finishes.
* if plural actors attend the battle, randomly selected actor's SE is adopted.
*
*/
/*:ja
* @plugindesc アクターの戦闘時の行動にボイスSEを設定します。
* @author 神無月サスケ
*
* @param pitch
* @desc ボイスSEのピッチです。この設定が全てのボイスSEの共通となります。
* @Default 100
*
* @param volume
* @desc ボイスSEのボリュームです。この設定が全てのボイスSEの共通となります。
* @Default 90
*
* @Help このプラグインには、プラグインコマンドはありません。
*
* メモ設定方法:
* それぞれのアクターのメモに以下の書式で書いてください。
* filename はボイスSEのファイル名にしてください。
*
* <attackVoice:filename> 通常攻撃の時に再生されるボイスです。
* <recoverVoice:filename> HP回復魔法を使用した時に再生されるボイスです。
* <friendMagicVoice:filename> HP回復以外の味方向け魔法を使用した時に
* 再生されるボイスです。省略された場合で<magicVoice:filename>が
* 設定されている場合は、そちらが再生されます。
* <magicVoice:filename> 味方向け以外の魔法を使用した時に再生されるボイスです。
* <skillVoice:filename> 必殺技を使用した時に再生されるボイスです。
* <damageVoice:filename> ダメージを受けた時に再生されるボイスです。
* <defeatedVoice:filename> 戦闘不能になった時に再生されるボイスです。
* <victoryVoice:filename> 戦闘勝利時に再生されるボイスです。
* アクターが複数いる場合は、生きているアクターの中からランダムで再生されます。
*
*/
(function() {
//
// process parameters
//
var parameters = PluginManager.parameters('BattleVoice');
var pitch = Number(parameters['pitch']) || 100;
var volume = Number(parameters['volume']) || 90;
AudioManager.createAudioByFileame = function(name){
var audio = {};
audio.name = name;
audio.pitch = pitch;
audio.volume = volume;
return audio;
};
//
// play actor voice
//
SoundManager.playActorVoice = function(actor, type){
var name = '';
switch(type){
case 'attack':
name = actor.meta.attackVoice;
break;
case 'recover':
name = actor.meta.recoverVoice;
break;
case 'friendmagic':
name = actor.meta.friendMagicVoice || actor.meta.magicVoice;
break;
case 'magic':
name = actor.meta.magicVoice;
break;
case 'skill':
name = actor.meta.skillVoice;
break;
case 'damage':
name = actor.meta.damageVoice;
break;
case 'dead':
name = actor.meta.defeatedVoice;
break;
case 'victory':
name = actor.meta.victoryVoice;
break;
}
if(name){
var audio = AudioManager.createAudioByFileame(name);
AudioManager.playSe(audio);
}
};
//
// functions for call actor voice.
//
var _Game_Actor_performAction = Game_Actor.prototype.performAction;
Game_Actor.prototype.performAction = function(action) {
_Game_Actor_performAction.call(this, action);
if (action.isAttack()) {
SoundManager.playActorVoice(this.actor(), 'attack');
} else if (action.isMagicSkill() && action.isHpRecover()) {
SoundManager.playActorVoice(this.actor(), 'recover');
} else if (action.isMagicSkill() && action.isForFriend()) {
SoundManager.playActorVoice(this.actor(), 'friendmagic');
} else if (action.isMagicSkill()) {
SoundManager.playActorVoice(this.actor(), 'magic');
} else if (action.isSkill() && !action.isGuard()) {
SoundManager.playActorVoice(this.actor(), 'skill');
}
};
var _Game_Actor_performDamage = Game_Actor.prototype.performDamage;
Game_Actor.prototype.performDamage = function() {
_Game_Actor_performDamage.call(this);
SoundManager.playActorVoice(this.actor(), 'damage');
};
var _Game_Actor_performCollapse = Game_Actor.prototype.performCollapse;
Game_Actor.prototype.performCollapse = function() {
_Game_Actor_performCollapse.call(this);
if ($gameParty.inBattle()) {
SoundManager.playActorVoice(this.actor(), 'dead');
}
};
var _BattleManager_processVictory = BattleManager.processVictory;
BattleManager.processVictory = function() {
var index = Math.randomInt($gameParty.aliveMembers().length);
var actor = $gameParty.aliveMembers()[index].actor();
SoundManager.playActorVoice(actor, 'victory');
_BattleManager_processVictory.call(this);
};
})();
// BattleVoice.js
//=============================================================================
/*:
* @plugindesc play voice SE at battle when actor does spcified action
* @author Sasuke KANNAZUKI
*
* @param pitch
* @desc pitch of SEs. this setting is common among all voice SEs.
* @Default 100
*
* @param volume
* @desc volume of SEs. this setting is common among all voice SEs.
* @Default 90
*
* @Help This plugin does not provide plugin commands.
*
* note specification:
* write down each actor's note at following format to set SE filename.
* <attackVoice:filename> plays when actor does normal attack.
* <recoverVoice:filename> plays when actor uses HP recovering magic.
* <friendMagicVoice:filename> plays when actor spells magic for friend
* except HP recovering. if this is not set but <skillVoice:filename> is set,
* it plays <magicVoice:filename> setting file.
* <magicVoice:filename> plays when actor spells magic(except for friend).
* <skillVoice:filename> plays when actor uses special skill except magic.
* <damageVoice:filename> plays when actor takes damage.
* <defeatedVoice:filename> plays when actor is died.
* <victoryVoice:filename> plays when battle finishes.
* if plural actors attend the battle, randomly selected actor's SE is adopted.
*
*/
/*:ja
* @plugindesc アクターの戦闘時の行動にボイスSEを設定します。
* @author 神無月サスケ
*
* @param pitch
* @desc ボイスSEのピッチです。この設定が全てのボイスSEの共通となります。
* @Default 100
*
* @param volume
* @desc ボイスSEのボリュームです。この設定が全てのボイスSEの共通となります。
* @Default 90
*
* @Help このプラグインには、プラグインコマンドはありません。
*
* メモ設定方法:
* それぞれのアクターのメモに以下の書式で書いてください。
* filename はボイスSEのファイル名にしてください。
*
* <attackVoice:filename> 通常攻撃の時に再生されるボイスです。
* <recoverVoice:filename> HP回復魔法を使用した時に再生されるボイスです。
* <friendMagicVoice:filename> HP回復以外の味方向け魔法を使用した時に
* 再生されるボイスです。省略された場合で<magicVoice:filename>が
* 設定されている場合は、そちらが再生されます。
* <magicVoice:filename> 味方向け以外の魔法を使用した時に再生されるボイスです。
* <skillVoice:filename> 必殺技を使用した時に再生されるボイスです。
* <damageVoice:filename> ダメージを受けた時に再生されるボイスです。
* <defeatedVoice:filename> 戦闘不能になった時に再生されるボイスです。
* <victoryVoice:filename> 戦闘勝利時に再生されるボイスです。
* アクターが複数いる場合は、生きているアクターの中からランダムで再生されます。
*
*/
(function() {
//
// process parameters
//
var parameters = PluginManager.parameters('BattleVoice');
var pitch = Number(parameters['pitch']) || 100;
var volume = Number(parameters['volume']) || 90;
AudioManager.createAudioByFileame = function(name){
var audio = {};
audio.name = name;
audio.pitch = pitch;
audio.volume = volume;
return audio;
};
//
// play actor voice
//
SoundManager.playActorVoice = function(actor, type){
var name = '';
switch(type){
case 'attack':
name = actor.meta.attackVoice;
break;
case 'recover':
name = actor.meta.recoverVoice;
break;
case 'friendmagic':
name = actor.meta.friendMagicVoice || actor.meta.magicVoice;
break;
case 'magic':
name = actor.meta.magicVoice;
break;
case 'skill':
name = actor.meta.skillVoice;
break;
case 'damage':
name = actor.meta.damageVoice;
break;
case 'dead':
name = actor.meta.defeatedVoice;
break;
case 'victory':
name = actor.meta.victoryVoice;
break;
}
if(name){
var audio = AudioManager.createAudioByFileame(name);
AudioManager.playSe(audio);
}
};
//
// functions for call actor voice.
//
var _Game_Actor_performAction = Game_Actor.prototype.performAction;
Game_Actor.prototype.performAction = function(action) {
_Game_Actor_performAction.call(this, action);
if (action.isAttack()) {
SoundManager.playActorVoice(this.actor(), 'attack');
} else if (action.isMagicSkill() && action.isHpRecover()) {
SoundManager.playActorVoice(this.actor(), 'recover');
} else if (action.isMagicSkill() && action.isForFriend()) {
SoundManager.playActorVoice(this.actor(), 'friendmagic');
} else if (action.isMagicSkill()) {
SoundManager.playActorVoice(this.actor(), 'magic');
} else if (action.isSkill() && !action.isGuard()) {
SoundManager.playActorVoice(this.actor(), 'skill');
}
};
var _Game_Actor_performDamage = Game_Actor.prototype.performDamage;
Game_Actor.prototype.performDamage = function() {
_Game_Actor_performDamage.call(this);
SoundManager.playActorVoice(this.actor(), 'damage');
};
var _Game_Actor_performCollapse = Game_Actor.prototype.performCollapse;
Game_Actor.prototype.performCollapse = function() {
_Game_Actor_performCollapse.call(this);
if ($gameParty.inBattle()) {
SoundManager.playActorVoice(this.actor(), 'dead');
}
};
var _BattleManager_processVictory = BattleManager.processVictory;
BattleManager.processVictory = function() {
var index = Math.randomInt($gameParty.aliveMembers().length);
var actor = $gameParty.aliveMembers()[index].actor();
SoundManager.playActorVoice(actor, 'victory');
_BattleManager_processVictory.call(this);
};
})();
If it is part of the installation then it is part of the RTP, and unless the japanese contains a restriction I can't read you should be allowed to edit it for personal use (as with all parts of the RTP).
And from what I can read of the plugin, yes more options can be added - but you need to specify under which condition what other voice you want.
And if you want to assign sounds to specific skills, that will be a custom edit that will only work for your game, and only after you give the programmer the details he can even start to work.
And from what I can read of the plugin, yes more options can be added - but you need to specify under which condition what other voice you want.
And if you want to assign sounds to specific skills, that will be a custom edit that will only work for your game, and only after you give the programmer the details he can even start to work.
Basically what i want is to it works with more than just one skill type in Types section in my project database.
Looking at it now i'll try edit it myself and give it a try if it works with a edit of my own.
Looking at it now i'll try edit it myself and give it a try if it works with a edit of my own.
Original thread: https://forums.rpgmakerweb.com/threads/battle-voice-plugin.76166/