convert move into another move when holding specific item

Hi,

I am wondering if it is possible for a move to become another move in battle?

Lets say, I have bite in my Rattata. When I make my rattata hold everstone e.g , bite move become crunch during battle. After crunch's pp is used up, it revert back to bite in battle.

For now my option was to make use of the z-move recently created by Marcello in pokecommunity ( from the credit), but apparently the z move crash with the elite battle system. So for now, I am stuck. Please help.

Original thread: https://forums.rpgmakerweb.com/threads/convert-move-into-another-move-when-holding-specific-item.85647/