XP Variable frames for battlers

I am using moonpearls animated battler and I have run into a problem, My attack is 8 frames but a special skill that I have animated is 12 frames. is there a way I can change the number of frames the battler system is looking for in the instance of the 12 frame attack. I know i can just make everything 12 frames but the way its set up means you'll have 4 extra frames at the end / beginning of every attack.

thanks for your help.
I am using moonpearls animated battler and I have run into a problem, My attack is 8 frames but a special skill that I have animated is 12 frames. is there a way I can change the number of frames the battler system is looking for in the instance of the 12 frame attack. I know i can just make everything 12 frames but the way its set up means you'll have 4 extra frames at the end / beginning of every attack.

thanks for your help.
You could add an additional frame count constant to the Constants script and then have Sprite_Battler's bitmap= alias use that constant instead if the current pose is the one for your skill.
I thought this was a customizable script:
1763868671862.png


unless I misunderstood your request.
I thought this was a customizable script:
View attachment 353437

unless I misunderstood your request.
You are correct that it is customizable. the issue is that I was looking for a way to make that a variable, because some of my animations have 8 frames, and some have 12 frames of animation. if that makes sense
Sorry, I really didn't pay attention.
The problem with that is that you would have to define it in the filename, which would require modifying the script at the time of the attack.

So it would be necessary to change it by creating conditions in the "Sprite_Battler" script, the problem would be how to determine the number of frames for each PNG file, perhaps by putting it in the file name.

Another problem is that the script works with columns, that is, it divides the image width by the number of frames, so the attached image, as far as I understand, would not work.

From my point of view, I would do something simpler: repeat some frames from the images in the top columns and do the same in the battlers with 8 columns until you reach 12.

Original thread: https://forums.rpgmakerweb.com/threads/variable-frames-for-battlers.181128/