Attack enemy with right weapon

Dear RPG crew and members,

Spoiler
IMG_2357.PNG



I wanna make enemy battlers where can be affect by certain weapon just like in the spoiler above. 


Where enemy are not receive any damage from melee weapons (sword, dagger, spear, ect.) except projectile/missile weapons (guns, arrow, slingshot, etc.) or vice versa.


I'm using Yanfly Engine for more helpful engine. Thank you
Have you tried doing this in the editor when you set up your enemies? 


Create 'elements' like melee, projectile etc., and give the enemies an appropriate weakness to them.  On your weapons, assign the elements so that, for example, bows are projectile, axes are melee and so on.  Then when an enemy is hit by a weapon (or skill, if you include those in the allocation of elements) with the element they are weak to, they will receive more damage than other enemies.
On this topic there's a elemental evasion plugin in case you want enemies to be able to have higher chances to dodge instead.
 




ve 
I did it! 


All I have to do is make guns are 'Projectile' element.


I made an enemy where 0% Physical Element and 100% Projectile Element where this bad guy can't be hurt with physical attack even fist except projectile attack.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/attack-enemy-with-right-weapon.72598/