MV show different animations depending on whether it is an enemy or ally

As the title says.
I'm looking for a plugin that allows me to show a different animation whether ally or enemy. (the target)

The thing is I'm using a front view battle system. And I added a plugin to target enemies and allies.
When I'm targeting enemies the animation looks great because of their size. But they look awfully big when appearing on top of the faces of allies. (animation shows on top of character faces)


So, with a plugin like this, I could duplicate and resize the animations to be shown properly on each scenery.
Assuming this is for MV, you could probably do this using Yanfly Action Sequences. I think you can put a conditional check in the action sequence and call the animation accordingly.

Alternately, you could just make two sets of skills--one used by allies, one by enemies--but that wouldn't be able to target both.
Thanks.
I'm going to try with the action sequences plugin.
Assuming this is for MV, you could probably do this using Yanfly Action Sequences. I think you can put a conditional check in the action sequence and call the animation accordingly.

Alternately, you could just make two sets of skills--one used by allies, one by enemies--but that wouldn't be able to target both.

Can you enlighten me on how to do it?.
I have those plugins, but I don't know how to create the eval or condition for this.
It's been a while since I messed with the action sequence plugins, so I don't know the exact syntax, but the pseudocode should be something like:

if target === actors
animation x: target
else
animation y: target
end

Again, I can't remember the exact syntax. You may or may not be able to use the "target" and "actors" references for this, if not, you would have to dig up the javascript for it. You would put this part where you would normally call the animation, in the Whole Actions or Target Actions part of the sequence.

Here's the documentation for the action sequences: http://www.yanfly.moe/wiki/Category:Action_Sequences_(MV)#Target_Typing
Well. I think i found the solution for this.

Using the yanfly action sequences you can use this code inside of "whole action":

JavaScript:
<whole action>


if target.isActor()
animation A: target   // Replace A with the ID of an animation
else
animation B: target // Replace B with the ID of an animation
end


 </whole action>

In this case, the skill will show animation A when targeting allies.
Otherwise will show B animation on target.

Thank you.
Thread closed s

Original thread: https://forums.rpgmakerweb.com/threads/show-different-animations-depending-on-whether-it-is-an-enemy-or-ally.130960/