I'm trying to create a battle system which uses row positions as a key part of battle strategy. For one part of it, I want to restrict things like healing to members of the same row as the healer.
For example, if Fred is in the front row and needs healing, and Sarah the healer is in the middle row, Sarah will need to move to the front row before she can cast "Heal" on Fred. (I already have a way of moving between rows; I'm using skills to change positions during the battle turns themselves.)
I've searched the Yanfly plugins' help files for some way to check whether the skill's potential targets are in the same row, but I can't find anything that can be used for that purpose. I want the relevant skills to only be able to select same-row battlers as valid targets. I don't know enough about Javascript to find a solution on my own, but I'm totally open to using a Lunatic Mode approach to the problem, if anyone is knowledgeable enough in coding to provide one. 🙂
Any help would be greatly appreciated! 😀
For example, if Fred is in the front row and needs healing, and Sarah the healer is in the middle row, Sarah will need to move to the front row before she can cast "Heal" on Fred. (I already have a way of moving between rows; I'm using skills to change positions during the battle turns themselves.)
I've searched the Yanfly plugins' help files for some way to check whether the skill's potential targets are in the same row, but I can't find anything that can be used for that purpose. I want the relevant skills to only be able to select same-row battlers as valid targets. I don't know enough about Javascript to find a solution on my own, but I'm totally open to using a Lunatic Mode approach to the problem, if anyone is knowledgeable enough in coding to provide one. 🙂
Any help would be greatly appreciated! 😀