Item effect depending on enemy type

The title is pretty much self-explanatory, but I'm gonna put an example:

I have an item called Corrosive Liquid which burns enemies and deals 400HP damage, but if the heroes throw one charge of Corrosive Liquid to a Machine-type enemy, they will get Paralyzed and Silenced. How can I make items have different effects, or added effects depending on the enemy class/type/ID idc.

Please help, it's urgent.

Thanks!
Search the forum for the topic on how to use the damage formula. You can use rgss code inside the damage formula, like an if clause to check for enemy data and give different damage depending on the result.


The codes are explained in that topic.

Original thread: https://forums.rpgmakerweb.com/threads/item-effect-depending-on-enemy-type.42868/