- Joined
- May 8, 2017
- Messages
- 11
- Reaction score
- 0
- First Language
- English
- Primarily Uses
- RMMV
I'm using yanfly's "single target provoke" state from one of their tips and tricks videos, which uses the following code:
However, if an enemy under the effect of the "Provoked" state uses a move meant to hit all targets on the opposing side, that move will only hit the actor that provoked it. Is there any way to check if an action has a certain scope?
(this is my second lunatic mode-related question, apologies. surely there's gotta be a list of all these java conditions somewhere...)
Code:
<Custom Action Start Effect>
// Get current action.
var action = user.currentAction();
// Check if action exists, for an opponent, and that the provoker isn't on the same team
if (action && action.isForOpponent() && origin.isActor() !== user.isActor()) {
action.setTarget(origin.index());
}
</Custom Action Start Effect>
(this is my second lunatic mode-related question, apologies. surely there's gotta be a list of all these java conditions somewhere...)

