Elemental Chase

● ARCHIVED · READ-ONLY
Started by Chaos Avian 2 posts View original ↗
  1. Hi, I'm trying to figure out the last part of a 'chase' skill in my game. The idea is that Actor A casts a spell on an enemy (lets say Fire) and Actor B, if they have the correct state (Chase Fire) follows up with an elemental attack on the same target.

    I have all of that set up, but my issue is for Actor B to follow up on Actor A's last target not Actor B (Force Action only uses B's last target). Actor A's skill calls a Common Event which has all the code in it.

    Here's an image of my code (No plugins are used in this code)
    Spoiler
    2zzojo7.png
  2. Hmm, try including "$gameVariables.setvalue(1,target._enemyId)" in the first move and then force the action by using the script-call version (replacing target index with the "$gameVariables.value(x)"). Never tried using the enemyId but hope it works for you! :c

    $gameParty.members()[index].forceAction(skillId, targetIndex);
    BattleManager.forceAction($gameParty.members()[index]);