Nice! Makes it easier then doing stuff like fullhealing the target or just increasing their defensive stats to insane amounts. Thx.
I can't wait for the dig script that comes with this.
I feel like this could lead to a properly programmed Dragoon Jump ability. 😀
Hi Victor, thank you for this plugin, it is awesome. I've found a couple of bugs when using it.
1. When you force an action upon a random target in the troops tabs, it returns an error.
2. When using in conjunction with Yanfly's Battle Status Window, if an actor is unreacheable, the faces become messed up when using itens or skills that target the allies. (maybe this problem is in yanfly plugin, not yours, but I thought you should know)
Let me know if you need screenshots of either error.
1. can you post the event you used to force the action? I tried a few things but none of those. Also an screenshot from the console (press F8 during test play) would be helpful to track the source of the error.
2. This plugin overwrites a few functions. Try placing the YF Battle Status bellow this one.
EDIT: Found the issue. YF don't use the Window_BattleActor to draw the faces, and the changes I've made are not considered.
Add this to either plugin:
Window_BattleActor.prototype.drawStatusFace = function(index) {
var actor = $gameParty.reachableFriends()[index]; // changed 'battleMembers' to 'reachableFriends'
var rect = this.itemRect(index);
var ww = Math.min(rect.width - 8, Window_Base._faceWidth);
var wh = Math.min(rect.height - 8, Window_Base._faceHeight);
var wx = rect.x + rect.width - ww - 6; var wy = rect.y + 4;
this.drawActorFace(actor, wx, wy, ww, wh);
};
This will make it get the right face for the targets. I suppose this will not cause issues with the YF plugin since the don't change the Window_BattleActor.
Aha. I used Yanfly plugins and some base engine trickery* to simulate the "Jump" ability, and it worked for the most part, but even after setting the Targetting rate to 0 and the evasion to 999%, you could still use defensive skills (and a monster could still use full-party-targeting Certain Hit skills) on the Jumping characters. This is what I needed to finish the skill. Awesome.
* - The "Jump" status seals all your commands, sets you to auto-battle, and grants you the "Land" ability. Set up the animations right and there's 90% of your jump skill right there.
EDIT: Oh, but I need your base plugin? I hope that doesn't cause any conflicts...
I have been having a weird issue since installing this plugin, but I have so many plugins (including some written by myself) that I want to look into it a little more to be sure where the problem is - more than once I thought the problem was one thing when it was actually another. I'm using Yanfly's CTB, for the record. The problem goes like this:
I have three characters. A, B, and C, in that order. B has the Jump command.
B jumps. While B is in the air, A uses a Potion on C. I clearly see the cursor selecting C. But the Potion is instead used on A.
I suspect B being in the air is screwing with the targeting (it's trying to target the "second character", since C was listed second, but that's technically B, who is untargetable, so it picks a random target), but again, I want to look into it a little deeper before I'm sure it's not some weird interplay of plugins.
EDIT: So far, looks like I was mostly right. The smoothTarget function in rpg_objects.js is looking at the index among the entire party, not just the "reachable" characters. Where I was wrong: It's not randomizing, it's hitting A every time. Which is even more wrong. So the next question is: where is the index set?
Also, I'm seeing that, thanks to Battle Core, moving the cursor over C makes the game appear to select a third blank slot while targeting. Selecting the blank spot actually makes the Potion hit the right target.
SOLUTION: I got good results on the main bug with this:
Window_BattleActor.prototype.reachableIndex = function() {
return this.actor() ? this.actor().index() : 0;
};
Scene_Battle.prototype.onActorOk = function() {
var action = BattleManager.inputtingAction();
action.setTarget(this._actorWindow.reachableIndex());
this._actorWindow.hide();
this._skillWindow.hide();
this._itemWindow.hide();
this.selectNextCommand();
};
The mouse cursor targeting is still wonky (now, selecting the blank third slot causes actor A to always be targeted) but it's a step in the right direction.
It doesn't seem to work for me. I'm still able to reach enemies with unreachable tags without having any skill item, or actor with the reach target tag. Could there be a reason for this?
Never mind, fix that, but I do want to know if there is a way to remove an unreachable tag without the need of state removal?