Issue with Yanfly Animated enemy plugin.

Hello- I recently stumbled upon something that bothers me a little with the plugin concerning the escape execution for side view enemies. From how I see it this plugin essentially gives the enemy graphic the same fit out as the party member- however escape behaves very differently- instead of replicating every other animation escape still remains the awkward MV standard where an enemy if wanting to escape moves toward the player and fades away- instead of the more sane approach where the party members run off screen opposite direction to t

Now it seems the Yanfly bug reporting page is turned off for replies so I'll be asking here if there is a way to fix this little issue since I'm relying on a lot of visuals to make my project appealing to play instead of your typical static image stat combat.
Now It's been a while since I've posted requests or bug reports exchanging plugin files etc so I'm a little skeptical about uploading the Js file I'm using here. If anyone would like to help me out I'd really appreciate that so I can tick this off the to do list.
Have you tried using Yanfly's Action Sequence plugins?
I have all 3 installed but they don't seem to work when I give enemies that escape animation command.
Copy this 'action sequence' into your escape skill's notetag box
<setup action>
display action
immortal: targets, true
move user: backward, 200, 40
</setup action>
Hey that definitely made them perform the escape function better!
There is however the issue with them fading away before reaching the edge of the screen?
Do you know what command can correct this?
Add this just before closing the notetag (after the 'move user' line).
wait for movement

In addition where it says 200, this is how far backwards they move back so you can insert a larger number if needed.
Making good progress here, I appreciate the help. Just in the final stages of correcting this.

With the 200 option in the move user line the higher the number the faster the enemy performs escape it would seem, but the distance covering the enemy tends to fade sometimes before leaving the screen, I'm not entirely sure how this works or how to adjust. I'm also unclear what the 40 number is exactly for.
The first value (200) is the total distance, so the larger it is the further back they'll go.
The second value (40) is the number of frames (60 per second) it takes to complete the move, the higher it is the longer it takes to finish the movement.

Speed itself is based on how far they must move (first value) and how much time they have to complete that move (second value).
Ah so it adjusts itself depending how far it must travel and in what time to complete it. Even given extended time some enemies like to fade before fading off screen, it may take some time to figure a way around this; but otherwise it's working pretty well now- a much better improvement over the boring vanishing effect by default- I can now give enemies and party members goofy cowardly escape animations.

On a side note; do you know how to script party members to move to an enemy and back to there previous position with the animations used with escape? I'm trying to follow through the instructions but I'm not making much progress on that end.
Here's an example action sequence I've modified from Aekeshic's DragonBones demo for moving towards enemies and back, it even detects if using a ranged weapon.
Spoiler: Example: Move to and Back
<setup action>
display action
immortal: targets, true
cast animation
wait for animation
</setup action>

<target action>
if user.attackMotion() !== 'missile'
motion standby: user
move user: target, front, 20, offset y +1
jump user: 100, 20
else
perform start
end
wait for movement
face user: target
motion attack: user
wait: 10
attack animation: target
wait for animation
wait: 20
action effect
death break
motion escape: user
</target action>
The 'motion ____: user' lines (which I've put in bold) are what determine the battler's motion such as escape, attack, etc. Just replace ____ with the correct motion name (see ActSeqPack2 help file for a list of motions, they're about half way down)

Overall Action Sequences are a powerful tool that can be used for a lot of effects but they can get complex fast. I recommend reading the help file for the first 2 plugins to get a list of all the actions, then start by modifying the defaults below (yanfly has videos on his site too).
Spoiler: Default Action Sequence
<setup action>
display action
immortal: targets, true
perform start
wait for movement
cast animation
wait for animation
</setup action>

<whole action>
</whole action>

<target action>
perform action
motion wait: user
action animation
wait for animation
action effect: target
wait for effect
death break
</target action>

<follow action>
</follow action>

<finish action>
immortal: targets, false
clear battle log
perform finish
wait for movement
action common event
</finish action>
If you don't use a certain action tag (<setup action>,<finish action>,etc) it will use the defaults for that section automatically.
I'm sorry this may seem frustrating to get through my thick skull but for some reason no matter what notes I use the character still wishes to use an irrelevant animation despite me assigning one to the skill in use. Seems to be using the normal hit animation #1 instead of an electrocution I have. So far it seems the party member runs to it's enemy does the spell animation but the effects and sounds to it are all wrong.
My bad, I assumed you wanted this for basic attacks.
Find where it says:
attack animation: target
Then replace it with:
action animation
'attack' tells it to use the weapon's animation whereas 'action' uses the skill's animation.

If its a skill that works independent of weapon type then you can remove these pink lines:
if user.attackMotion() !== 'missile'
motion standby: user
move user: target, front, 20, offset y +1
jump user: 100, 20
else
perform start
end
It looks like things are working better, still having trouble figuring out how to make the skill user move closer to the target, ithink there is a note tage about head,chest areas but I'm unsure about that.

There's also this wierd glitch- I don't know where it's from but the enemy is sometimes immortal despite the note tages in true or false. Sometimes enemies can be reduced to 0HP but cannot die until the next turn lands an attack?
if you use the <finish action> tag make sure it has [immortal: targets, false] in it, otherwise I can't help you on this.
Just a side thought, try increasing the damage as they might be landing on 1 hit point or something stupid like that. If that doesn't work just remove these line or now.

To move closer its best to add 'offset x' such as the line below.
move user: target, front, 20, offset x +50, offset y +1
you can also try replacing 'front' with 'center' instead.

Alternatively, depending on what SV battlers you are using you may need to use the <Sideview Width: 100> tag in your enemy notetags. Some SV battlers have a blank space in front that can cause issues with action sequences so you have to manually set the width for collision. If you use yanfly's enemy health bar plugin you can get an idea if the width is correct as the bar's size is based on this.
Hmm does there exist a tag for a 'center bottom'? Some of the enemies I am testing on with these tags have large boxes to compensate there throwing animations, I'm not too great with the Y,X axis but I am still learning this.

Really appreciate the help- I'm trying to upload webms of my project in the works to demonstrate some things but the site's up loader and imgur are not behaving too well.
If the battlers have larger boxes than the sprites then you should add the width and height tags to your enemies and stick to using 'front' for action sequences. Note this only works for enemies, and actors will still need an offset on the actor's skills if their boxes are too big (the default actor battlers don't have this issue).
<Sideview Width: x>
<Sideview Height: x>

The problem with using centre then adding a negative offset is it doesn't factor in the size of the target itself, so using the same skill vs larger and smaller enemies will still place your characters too far/close. Front always places them in front as long as you've set their width correctly. Of course non-default actors are still an issue due to the width tag not working on them.

The best way to see the width visually is to use yanfly's enemy health plugin as it automatically resizes the hp bar based on their width, so if it goes way past their sprite you know the width is wrong.
To see their height just add a state or buff. The state/buff icon always appears at the top of the battler, if the height is too high/low it will be in the wrong position.
This does require a lot of manual trial and error but you eventually get a feel for size.


As for bottom centre, just try 'base' on its own. Otherwise try 'center base' or 'base center'.
Seems to be working alot better now with this infomation- very helpful.
I think one of the reasons why the enemy test was immortal was because I had the skill inflict phase by accident which prevents death.

At the moment the party member is performing a palm shocking ability, so far the sequence shows:

<setup action>

display action
immortal: targets, false
cast animation
wait for animation
</setup action>

<target action>

motion chant: user
move user: target, base, 10, offset x +10, offset y +0
wait for movement
motion spell: user
wait: 20
action animation
wait for animation
wait: 20
action effect
death break
motion escape: user
face user: target
move user: backward, 200, 40

</target action>

So far it's working pretty much how I like it, maybe to reduce the party member return speed or to add the escape motion
there is also something odd going on where animation 0051 is showing briefly before doing the spell despite that there is no lead to that particular animation being even referenced. I've been checking through every menu tab and can't find a lead as to why that animation of all things is doing that. Odd.
that's the default cast animation from battle engine core. Either use <Cast Animation: x> to change the animation (0 disables it) or delete 'cast animation' and 'wait for animation' lines from the <setup action> section.
Oh! So that's why.
What a random thing to come across- no wonder I didn't know what was going on there.

Does this plugin provide support for projectiles? For instance arrows or grenades been thrown?
Victor Saint has a plugin for that but it's not compatible with Yanfly's engine and while there's a compatibility patch, its rather limiting and seems a bit messy to use.

Alternatively the 'Action Sequence Impact' plugin by Olivia includes this feature and is 100% compatible with Yanfly, but its payed for only.

Otherwise you can't do this by default.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-yanfly-animated-enemy-plugin.108101/