I have an idea for a skill that I want to implement, but I'm unsure of what would be the best approach. The basic idea is that when you use the skill, you select 1 Ally to target. The skill then deals Thunder damage to a random enemy, and if it hits, the selected ally gets a stack of the state "Charged" while the enemy gains the state "Shock." At first I was thinking I could use something along the lines of:
<target action>
action animation: random enemy
wait for animation
action effect: random enemy
add state 29: random enemy
add state 30: target
</target action>
But there isn't a "random enemy" defined in Yanfly's Action Sequence packs. I've also checked to see if there was a tag that might be helpful in the Target Core, but there wasn't anything that matches what I was thinking. Should I change the scope of enemies affected to all? Or just a row? Then use the <Post-Damage Eval> tag to determine if the Charge state is applied? Below is my current list of plugins for reference.
<target action>
action animation: random enemy
wait for animation
action effect: random enemy
add state 29: random enemy
add state 30: target
</target action>
But there isn't a "random enemy" defined in Yanfly's Action Sequence packs. I've also checked to see if there was a tag that might be helpful in the Target Core, but there wasn't anything that matches what I was thinking. Should I change the scope of enemies affected to all? Or just a row? Then use the <Post-Damage Eval> tag to determine if the Charge state is applied? Below is my current list of plugins for reference.