I made a skill called boomerang axe. After using it, the user throws 2 axes towards the target, and marks the target with a 2 turn state.
At the beginning of the enemy's turn, when it has the state activated, the two axes will hit the target again before it starts its action, while the turn count of the skill is reduced by 1. <Custom Action Start effect> is used here.
At the end of the turn, the turn count is increased by 1. (So that it will last 2 attacks at every scenario)
Now the problem is, to achieve this, I need to use Force Attack in lunatic mode, but...
$gameParty.members()[index].forceAction(skillId, targetIndex);
How do I get the target index of the unit that has this state?