- Joined
- Jul 2, 2014
- Messages
- 752
- Reaction score
- 412
- First Language
- English
- Primarily Uses
- RMMV
Huh, really? I would've expected it to either work or throw you some errors...I don't see why it would let you select targets but change how they're hit. It didn't change you being able to select the same target multiple times?2nd, i tried your edit Turan on Zevia's coding and it also didnt seem to work. when i casted on a target it just straight up hit only 1 target even though i specified 4 targets.
You must not have followed my instructions correctly. I just tested it and it doesn't fix your problem, but it also doesn't break anything.
Edit: I got it! Remove my prior stuff, so you're starting with a fresh version of Zevia's plugin. Go to line 190, which says Scene_Battle.prototype.onEnemyOk = function() {
On the next line, add:
var action = BattleManager.inputtingAction();
for (var i = 0; i < action._multipleTargets.length; i++)
{
if ($gameTroop.members()[this._enemyWindow.enemyIndex()]===action._multipleTargets[i])
{
this._enemyWindow.activate();
return;
}
}
Then, go down a few lines to 204, which says Scene_Battle.prototype.onActorOk = function() {
On the next line, add:
var action = BattleManager.inputtingAction();
for (var i = 0; i < action._multipleTargets.length; i++)
{
if ($gameparty.battleMembers()[this._actorWindow.index()]===action._multipleTargets[i])
{
this._actorWindow.activate();
return;
}
}
I tested it in a blank project, and it works for me. I did not try it with any of the Yanfly plugins added.
Last edited: