I am trying to create a follow up attack that can trigger whenever an ally basic attacks an enemy using Visustella Auto Trigger Skills. However, because of how the plugin works, it defaults to targeting whichever enemy is the lowest index in the troop, and not the last targeted enemy. I've tried using this note tag in my follow up attack to manipulate the target scope to always target the last targeted enemy using this:
<JS Targets>
targets = [];
targets = [$gameTemp.lastActionData(5)];
</JS Targets>
First I attempt to clear the skill's scope in the database with "targets = [];" as the documentation advises. Then I use $gameTemp.lastActionData(5) to change the scope to the last targeted enemy. However this does not seem to work.
<JS Targets>
targets = [];
targets = [$gameTemp.lastActionData(5)];
</JS Targets>
First I attempt to clear the skill's scope in the database with "targets = [];" as the documentation advises. Then I use $gameTemp.lastActionData(5) to change the scope to the last targeted enemy. However this does not seem to work.