NOTE: THIS PLUGIN HAS BEEN MOVED TO PLUGIN RELEASES.
CLICK HERE TO BE TAKEN TO IT.
I'm working on a new plugin! I was actually planning this one before I even had RPG Maker MV, but never got around to it. But now, here it is! Well, a beta version with limited functionality, but it's a start. And this one's going to be kind of ambitious, so bear with me.
Battle VA Manager
The Battle VA Manager lets you control voices for your characters in battle! The following features are available:
- Each character's voice clips are assigned separately. After all, you don't expect Alice to talk in Bob's voice, do you?
- Actors and enemies alike can have lines
- For battle start clips, enemies take precedence (for a boss intro or something)
- One random clip from all characters who have them is chosen when a battle starts
- A battle clip plays when a unit is KO'd.
- Compatibility with Yanfly's Action Sequences, to insert voice clips anywhere during an attack - and both the skill user, the target, or even another battle unit can talk, too!
- Create your own "classes" of voice files that any character can use. Do you want your characters to yell "Fire!" when casting a fire spell? Just call the clip "fire" and put it in the Action Sequence, and everyone who has a "fire" clip assigned will use it.
- Select various different classes for an Action Sequence line. Maybe, in addition to the "fire" clip, you also want characters to have a generic casting clip. So you can assign both in the same line, and the character might use the casting clip, or might use the fire clip.
- In Action Sequences, use "user" and "target" tags to create customized responses for various targets. Call out for your friend when tossing a healing potion, or banter with a hated enemy!
- For battle end clips, the actor that ended the battle can determine the clip ("battlevictory"), or any actor in the party can ("battleend").
- An actor or enemy can have more than one of each clip, for a little bit of randomized flavor
- Voices can be deactivated with certain states (for instance, it doesn't make much sense for someone to talk if they're KO'd or asleep!), though this can be overridden in certain cases.
- Responses, both mandatory (character A won't say the line unless character B is present and can respond) and optional (character A can say his line, and character B will respond if she can)
- Battle motions to correspond with lines (though it's currently a little wonky with the "slide in from the right" motion)
- Subtitles
The following features are being worked on:
- Adding the ability to turn on and off subtitles in the Options menu
- Conditions (will only say a line when condition X is true, like HP > 50% or a switch = ON or something.)
You may make requests, but please keep in mind that this is going to have a lot to it, and I'm getting back into my stride, so keep them realistic.
To assign clips, insert the following into the Note tag of an actor or enemy:
<voice:
tag|voicesoundfile|param1=value|param2=value|...
>
(That character between entries is shift-backslash.)
You want a character to have more than one line? Of course you do. You can only have one "voice" tag, but you can put as many rows in it as you like. Each one should be separated by a newline:
<voice:
battlestart|NameOfBattleStartFile1
battlestart|NameOfBattleStartFile2
battlestart|NameOfBattleStartFile3
battleend|NameOfBattleEndFile1
>
Make sure the files actually exist (with the .ogg extension) in your audio/se folder!
Tag
This is the tag you'll use to identify the conditions for voice clips. You may define more than one clip for any given tag! If you do, then a random clip will be chosen when applicable. The following tags have special uses:
battlestart - Plays at the beginning of battle. Enemies take precedence; if an enemy has a valid battlestart tag, that's what will be used. If no enemy does, an actor is chosen. Any clip can play from any enemy or actor.
battleend - Plays at the end of battle. Actors only at this point. One random battleend or battlevictory tag is selected between all actors. For battleend, it does not matter who dealt the final blow.
battlevictory - Plays at the end of battle, but only if the actor that this tag is assigned to had the final turn before the battle's end (which typically will mean they dealt the final blow). Actors only at this point. One random battleend or battlevictory tag is selected between all actors.
ko - Plays when the unit is KO'd. "ko" is always considered forced (see below). There is a known issue with this: if multiple units are ko'd at once, everyone says their KO lines simultaneously (only the last in the lineup will have their subtitle appear when applicable). The "collapse" sound effect set in the system will only play after the ko clip (setting a motion to the ko clip gives a nice effect with this! Try the "dying", "abnormal", or "sleep" motion.)
You can also define your own tags. Almost any single word containing only letters, numbers, and underscores will work. (Except "none", "user", and "target", which have reserved uses in action sequences, so you shouldn't use them as tags.) Tags other than special tags will be used for responses and Action Sequences.
Voice Sound File:
The second parameter in each line, and the last one that's mandatory. This is just the name of the sound file you want to play. Make sure it exists in your audio/se folder, or it won't play, but don't include the .ogg/.mp4 extension here.
If you set this to "none", then when selected, nothing will play. This is true even if you actually have a sound file named "none"! This isn't the same as not having row at all; if actor3 has a battlestart clip and no one else does, actor3's will always play when he's present. If actor3 has a battlestart clip, but actor2 has a battlestart clip with "none" for the sound file (and there are no other valid battlestart clips), 50% of the time when both actors are present, no battlestart clip will play. You can also do clever things with responses here (actor1 has a "none" clip, but actor2 responds. This will cause actor2 to only give his line when actor1 is present.)
Further parameters
All further parameters are optional. These are the ones currently implemented:
Pitch
|pitch=80|
Controls the pitch of the sound. If not included, default is 100.
Volume
|volume=70|
Controls the volume of the sound. If not included, default is 100.
Motion
|motion=guard|
REQUIRES YANFLY ACTION SEQUENCES PART 2.
When this voice clip is played, the unit will hold the pose indicated. Names are as usual: walk, standby, chant, guard, etc.
Sub
|sub=Bob: This is the thing I say at the beginning of battles!|
Adds a subtitle when the clip is played. Subtitles use most text codes, but can only be a single line long. You can disable subtitles by turning the "Subtitles On" feature to "false" in the plugin's parameters; eventually, I'll add this feature to the in-game Options menu.
Here is what they look like as of this iteration:
Response
|response=actor4 DontCallMeCindy required|
After the clip is finished, the specified actor or enemy will respond with a clip with the given tag, if they can. The responder must be in the form "actor#" or "enemy#", with the number being their index in the database, not their position in battle.
In the above example, after the line is said, actor4 will say a line with the "DontCallMeCindy" tag. These tags can be any single word with letters, digits, and underscores, and are defined the same way as the other tags.
After the tag, you can put "optional", "required", or "forced". If none is included, it assumes "optional".
optional - If the responder is not present, cannot respond, or does not have a valid response, the original speaker can still say their line; there just won't be a response.
required - If the responder is not present, cannot respond, or does not have a valid response, the original speaker will never say this line at all.
forced - Similar to required, but with one major difference. The responder's line is assumed to be "forced", and can be spoken even if they have a state preventing them from responding.
Responses can have responses, so feel free to create whole conversations if that strikes your fancy, but please oh please do not make looped responses (that is, unit A says something, unit B responds, and unit A responds with the exact same tag as the original line). You might crash the game if you try! (I tested it. It actually works, albeit repetitively, if the response is optional and there is a place to exit out of the loop. Still don't recommend it.)
Forced
|forced|
Any line that has this parameter will ignore states that normally prevent a unit from speaking. Lines with the "ko" tag - when the unit is actually being KO'd - are always considered forced (because otherwise, if the KO status has <novoice> (and it should in most cases), it would never actually be used!)
Compatibility with Yanfly's Action Sequences
new to version 0.05!
REQUIRES YANFLY ACTION SEQUENCES (I mean, obviously.)
VOICE user: attack, battlecry, yell
If you're using Yanfly's Action Sequences, just use the VOICE [speaker] method in the middle of an action sequence to call any voice clip with one of the tags listed. The speaker is determined by Yanfly's usual action sequence resolution (user, target, character #, friends, whatever), but only one unit will speak (it will be one who can and has a clip of any of the aforementioned tags.) You must use at least one tag, but you can have more than one, and as usual, a character can have more than one voice clip for each tag defined.
Using "none" as the tag here will result in no sound played (if it's chosen), like with the voice clip file names, regardless of whether the speaker has a "none" tag defined. So you can do:
VOICE target: ouch, none
In this case, the target might use a clip with an "ouch" tag, or might say nothing at all.
new to version 0.1!
Make the tag "target", and it will resolve to "actor#" or "enemy#" (those are the IDs in the database, irrespective of their position in the battle) depending on the target of the skill. Make it "user" and it will resolve to "actor#user" or "enemy#user". Target will only activate when there is exactly one target of the skill; more than one, and the tag will be ignored. So this action sequence:
VOICE user: target
Can call forth this voice clip when the skill targets the actor listed as #2 in the database:
<voice:
actor2|CallingForJoe
>
States: <novoice> tag
Place the <novoice> tag in the Note box of any State you want to use to block units from speaking. Obvious targets include KO and Silence, but what about states that temporarily take a unit off the playing field? Any state can have this tag. Note that "forced" lines - KO lines, forced responses, or lines that have the "forced" parameter - will still play anyway.
Other stuff
Only include one "voice" tag per actor/enemy. You can put as many lines as you want in it, though.
Also, battle start will now be delayed (though see note on Yanfly CTB below) until all the voice clips (including responses) finish playing.
Download it here:
I discovered a tiny flaw in Yanfly's CTB plugin that was basically undetectable normally, but prevented me from correctly blocking the battle's start before the battlestart clip finished. Basically, it started the battle slightly early, but in such a way that affected nearly nothing until I started mucking with it. The following function:
needs to be changed to:
Any of Yanfly's other alternate battle systems might need a similar fix. Or, heck, just put the latter in a random plugin somewhere after the CTB plugin. Does Yanfly even post here any more? I know the CTB plugin is no longer officially supported, but I use it anyway.
Slight recommendation to those using Yanfly's Victory Aftermath: If you're using battleend/victory clips consistently, I would recommend scaling back the "Cheer Wait" in Victory Aftermath. It's okay when there's no voice clips, but with them there's an awkward pause that just seems odd.
CLICK HERE TO BE TAKEN TO IT.
I'm working on a new plugin! I was actually planning this one before I even had RPG Maker MV, but never got around to it. But now, here it is! Well, a beta version with limited functionality, but it's a start. And this one's going to be kind of ambitious, so bear with me.
Battle VA Manager
The Battle VA Manager lets you control voices for your characters in battle! The following features are available:
- Each character's voice clips are assigned separately. After all, you don't expect Alice to talk in Bob's voice, do you?
- Actors and enemies alike can have lines
- For battle start clips, enemies take precedence (for a boss intro or something)
- One random clip from all characters who have them is chosen when a battle starts
- A battle clip plays when a unit is KO'd.
- Compatibility with Yanfly's Action Sequences, to insert voice clips anywhere during an attack - and both the skill user, the target, or even another battle unit can talk, too!
- Create your own "classes" of voice files that any character can use. Do you want your characters to yell "Fire!" when casting a fire spell? Just call the clip "fire" and put it in the Action Sequence, and everyone who has a "fire" clip assigned will use it.
- Select various different classes for an Action Sequence line. Maybe, in addition to the "fire" clip, you also want characters to have a generic casting clip. So you can assign both in the same line, and the character might use the casting clip, or might use the fire clip.
- In Action Sequences, use "user" and "target" tags to create customized responses for various targets. Call out for your friend when tossing a healing potion, or banter with a hated enemy!
- For battle end clips, the actor that ended the battle can determine the clip ("battlevictory"), or any actor in the party can ("battleend").
- An actor or enemy can have more than one of each clip, for a little bit of randomized flavor
- Voices can be deactivated with certain states (for instance, it doesn't make much sense for someone to talk if they're KO'd or asleep!), though this can be overridden in certain cases.
- Responses, both mandatory (character A won't say the line unless character B is present and can respond) and optional (character A can say his line, and character B will respond if she can)
- Battle motions to correspond with lines (though it's currently a little wonky with the "slide in from the right" motion)
- Subtitles
The following features are being worked on:
- Adding the ability to turn on and off subtitles in the Options menu
- Conditions (will only say a line when condition X is true, like HP > 50% or a switch = ON or something.)
You may make requests, but please keep in mind that this is going to have a lot to it, and I'm getting back into my stride, so keep them realistic.
To assign clips, insert the following into the Note tag of an actor or enemy:
<voice:
tag|voicesoundfile|param1=value|param2=value|...
>
(That character between entries is shift-backslash.)
You want a character to have more than one line? Of course you do. You can only have one "voice" tag, but you can put as many rows in it as you like. Each one should be separated by a newline:
<voice:
battlestart|NameOfBattleStartFile1
battlestart|NameOfBattleStartFile2
battlestart|NameOfBattleStartFile3
battleend|NameOfBattleEndFile1
>
Make sure the files actually exist (with the .ogg extension) in your audio/se folder!
Tag
This is the tag you'll use to identify the conditions for voice clips. You may define more than one clip for any given tag! If you do, then a random clip will be chosen when applicable. The following tags have special uses:
battlestart - Plays at the beginning of battle. Enemies take precedence; if an enemy has a valid battlestart tag, that's what will be used. If no enemy does, an actor is chosen. Any clip can play from any enemy or actor.
battleend - Plays at the end of battle. Actors only at this point. One random battleend or battlevictory tag is selected between all actors. For battleend, it does not matter who dealt the final blow.
battlevictory - Plays at the end of battle, but only if the actor that this tag is assigned to had the final turn before the battle's end (which typically will mean they dealt the final blow). Actors only at this point. One random battleend or battlevictory tag is selected between all actors.
ko - Plays when the unit is KO'd. "ko" is always considered forced (see below). There is a known issue with this: if multiple units are ko'd at once, everyone says their KO lines simultaneously (only the last in the lineup will have their subtitle appear when applicable). The "collapse" sound effect set in the system will only play after the ko clip (setting a motion to the ko clip gives a nice effect with this! Try the "dying", "abnormal", or "sleep" motion.)
You can also define your own tags. Almost any single word containing only letters, numbers, and underscores will work. (Except "none", "user", and "target", which have reserved uses in action sequences, so you shouldn't use them as tags.) Tags other than special tags will be used for responses and Action Sequences.
Voice Sound File:
The second parameter in each line, and the last one that's mandatory. This is just the name of the sound file you want to play. Make sure it exists in your audio/se folder, or it won't play, but don't include the .ogg/.mp4 extension here.
If you set this to "none", then when selected, nothing will play. This is true even if you actually have a sound file named "none"! This isn't the same as not having row at all; if actor3 has a battlestart clip and no one else does, actor3's will always play when he's present. If actor3 has a battlestart clip, but actor2 has a battlestart clip with "none" for the sound file (and there are no other valid battlestart clips), 50% of the time when both actors are present, no battlestart clip will play. You can also do clever things with responses here (actor1 has a "none" clip, but actor2 responds. This will cause actor2 to only give his line when actor1 is present.)
Further parameters
All further parameters are optional. These are the ones currently implemented:
Pitch
|pitch=80|
Controls the pitch of the sound. If not included, default is 100.
Volume
|volume=70|
Controls the volume of the sound. If not included, default is 100.
Motion
|motion=guard|
REQUIRES YANFLY ACTION SEQUENCES PART 2.
When this voice clip is played, the unit will hold the pose indicated. Names are as usual: walk, standby, chant, guard, etc.
Sub
|sub=Bob: This is the thing I say at the beginning of battles!|
Adds a subtitle when the clip is played. Subtitles use most text codes, but can only be a single line long. You can disable subtitles by turning the "Subtitles On" feature to "false" in the plugin's parameters; eventually, I'll add this feature to the in-game Options menu.
Here is what they look like as of this iteration:
Response
|response=actor4 DontCallMeCindy required|
After the clip is finished, the specified actor or enemy will respond with a clip with the given tag, if they can. The responder must be in the form "actor#" or "enemy#", with the number being their index in the database, not their position in battle.
In the above example, after the line is said, actor4 will say a line with the "DontCallMeCindy" tag. These tags can be any single word with letters, digits, and underscores, and are defined the same way as the other tags.
After the tag, you can put "optional", "required", or "forced". If none is included, it assumes "optional".
optional - If the responder is not present, cannot respond, or does not have a valid response, the original speaker can still say their line; there just won't be a response.
required - If the responder is not present, cannot respond, or does not have a valid response, the original speaker will never say this line at all.
forced - Similar to required, but with one major difference. The responder's line is assumed to be "forced", and can be spoken even if they have a state preventing them from responding.
Responses can have responses, so feel free to create whole conversations if that strikes your fancy, but please oh please do not make looped responses (that is, unit A says something, unit B responds, and unit A responds with the exact same tag as the original line). You might crash the game if you try! (I tested it. It actually works, albeit repetitively, if the response is optional and there is a place to exit out of the loop. Still don't recommend it.)
Forced
|forced|
Any line that has this parameter will ignore states that normally prevent a unit from speaking. Lines with the "ko" tag - when the unit is actually being KO'd - are always considered forced (because otherwise, if the KO status has <novoice> (and it should in most cases), it would never actually be used!)
Compatibility with Yanfly's Action Sequences
new to version 0.05!
REQUIRES YANFLY ACTION SEQUENCES (I mean, obviously.)
VOICE user: attack, battlecry, yell
If you're using Yanfly's Action Sequences, just use the VOICE [speaker] method in the middle of an action sequence to call any voice clip with one of the tags listed. The speaker is determined by Yanfly's usual action sequence resolution (user, target, character #, friends, whatever), but only one unit will speak (it will be one who can and has a clip of any of the aforementioned tags.) You must use at least one tag, but you can have more than one, and as usual, a character can have more than one voice clip for each tag defined.
Using "none" as the tag here will result in no sound played (if it's chosen), like with the voice clip file names, regardless of whether the speaker has a "none" tag defined. So you can do:
VOICE target: ouch, none
In this case, the target might use a clip with an "ouch" tag, or might say nothing at all.
new to version 0.1!
Make the tag "target", and it will resolve to "actor#" or "enemy#" (those are the IDs in the database, irrespective of their position in the battle) depending on the target of the skill. Make it "user" and it will resolve to "actor#user" or "enemy#user". Target will only activate when there is exactly one target of the skill; more than one, and the tag will be ignored. So this action sequence:
VOICE user: target
Can call forth this voice clip when the skill targets the actor listed as #2 in the database:
<voice:
actor2|CallingForJoe
>
States: <novoice> tag
Place the <novoice> tag in the Note box of any State you want to use to block units from speaking. Obvious targets include KO and Silence, but what about states that temporarily take a unit off the playing field? Any state can have this tag. Note that "forced" lines - KO lines, forced responses, or lines that have the "forced" parameter - will still play anyway.
Other stuff
Only include one "voice" tag per actor/enemy. You can put as many lines as you want in it, though.
Also, battle start will now be delayed (though see note on Yanfly CTB below) until all the voice clips (including responses) finish playing.
Download it here:
I discovered a tiny flaw in Yanfly's CTB plugin that was basically undetectable normally, but prevented me from correctly blocking the battle's start before the battlestart clip finished. Basically, it started the battle slightly early, but in such a way that affected nearly nothing until I started mucking with it. The following function:
needs to be changed to:
Any of Yanfly's other alternate battle systems might need a similar fix. Or, heck, just put the latter in a random plugin somewhere after the CTB plugin. Does Yanfly even post here any more? I know the CTB plugin is no longer officially supported, but I use it anyway.
Slight recommendation to those using Yanfly's Victory Aftermath: If you're using battleend/victory clips consistently, I would recommend scaling back the "Cheer Wait" in Victory Aftermath. It's okay when there's no voice clips, but with them there's an awkward pause that just seems odd.