Item hit certain enemy, effect happens

I want to make a few items that when they hit a certain enemy, it makes a new item.
For example, use dough on flaming monster, you now get bread. Use dough on goblin. Too bad, you wasted your dough.

And If you can also explain how to make throwing a bottle of water instant kill certain enemies.
basically you can have an item call an attached common event, have that check for the conditions and then proceed.

however the details depend on what kind of battlesystem you're using, so please describe that if you need more help.

as for the water - give it a special element for its damage, then make the enemies either immune or vulnerable to that element damage.
basically you can have an item call an attached common event, have that check for the conditions and then proceed.
1: No idea how I would check for what monster the item is being used for so that it would spawn another item. Using the turn-based system.

2: The water works, thanks
the item would also apply an invisible state (no icon, no messages, no effect) called "target", although you might need different states for different items.
then in the common event, you would check every enemy if it has the state - and if yes that is the one to be affected.
then you need to identify it (probably over its ID, but I don't remember exactly and decide if it needs the effect or not.

Original thread: https://forums.rpgmakerweb.com/threads/item-hit-certain-enemy-effect-happens.168581/