- Joined
- Sep 14, 2016
- Messages
- 392
- Reaction score
- 76
- First Language
- English
- Primarily Uses
I'm trying to create a custom force action plugin command. I found this in the script list but I don't know how to use it:
$gameParty.members()[index].forceAction(skillId, targetIndex);
BattleManager.forceAction(battler);
I want to force the current actor to use skill x on target y, in the form of a plugin command like this: ForceBattle x y
I'd like y=-1 to return a random target, y=0 to return the last target, and y=1 through y=8 to return those indexes.
$gameParty.members()[index].forceAction(skillId, targetIndex);
BattleManager.forceAction(battler);
I want to force the current actor to use skill x on target y, in the form of a plugin command like this: ForceBattle x y
I'd like y=-1 to return a random target, y=0 to return the last target, and y=1 through y=8 to return those indexes.
Last edited by a moderator:

