I've tried to accomplish this with $gameTemp.lastActionData(3) which should be the 'last enemy index to act' in this force action script:
var subject = $gameTemp.lastActionData(3);
subject.forceAction(18, 0);
BattleManager.forceAction(subject);
this.setWaitMode('action');
but it gives me the error: subject.forceAction is not a function, yet if I use something like $gameParty.members()[1] instead it works just fine.
Does anyone know what the problem is or another way to achieve this? Thanks.
var subject = $gameTemp.lastActionData(3);
subject.forceAction(18, 0);
BattleManager.forceAction(subject);
this.setWaitMode('action');
but it gives me the error: subject.forceAction is not a function, yet if I use something like $gameParty.members()[1] instead it works just fine.
Does anyone know what the problem is or another way to achieve this? Thanks.