[YEP Weapon Animation] Support for multiple weapon images

So one neat feature that Animated Sideview Enemies has is as follows.

<Sideview Battler: filename>
This is the filename used for the sideview battler found within your project’s img/sv_actors/ folder. Doing this will enable the following notetags to be applied to the battler. This is case-sensitive and used without the image’s file extension.


*Example: SF_Actor3_8.png would be <Sideview Battler: SF_Actor3_8>
*Note: If more than one of these tags is used, the sideview battler selected will be picked from a random pool. Their settings, however, will match all of the other sideview settings set in the notetags for the sake of simplicity.



Someone posted a request to support that in my other thread, and it sounded like it would be a great feature for Weapon Animation if in case of multiple "Weapon Image" notetags, one would be picked randomly from the pool. So instead of asking for it I thought I'd try to copy what SVE is doing and post it here so maybe the plugin author can support it (probably with better coding) or in case anyone is interested.


I gave it a try and seems like I got it.


My changes: http://pastebin.com/r9D2fbG2


Plugin with the changes: http://pastebin.com/US0jHTFv

Original thread: https://forums.rpgmakerweb.com/threads/yep-weapon-animation-support-for-multiple-weapon-images.64072/