I'm using Yanfly's action sequences to perform common events in battles to do some heavy scripting, but there's one issue I keep running into...
I'm currently "faking it" when it comes to determining which enemy is targeted: I have the action sequences inflict an invisible state called "targeted" to the enemy, then I remove the state at the end of the attack via action sequences. I then use a conditional in the common event that says "If enemy #__ is affected by targeted", etc.
This DOES allow me to specify which target will be affected by the common event (and the skill that initiated it), but it requires being somewhat sloppy in that I'll need to include the aforementioned conditional 8 times to cover all the bases.
Is there an easier way to simply tell the game (even in a script command) that the effect will happen to the current target of the ability, rather than need to use the conditional 8 times?
Thanks in advance!
I'm currently "faking it" when it comes to determining which enemy is targeted: I have the action sequences inflict an invisible state called "targeted" to the enemy, then I remove the state at the end of the attack via action sequences. I then use a conditional in the common event that says "If enemy #__ is affected by targeted", etc.
This DOES allow me to specify which target will be affected by the common event (and the skill that initiated it), but it requires being somewhat sloppy in that I'll need to include the aforementioned conditional 8 times to cover all the bases.
Is there an easier way to simply tell the game (even in a script command) that the effect will happen to the current target of the ability, rather than need to use the conditional 8 times?
Thanks in advance!