Obtaining less gold

I want to implement a debuff that is removed at battle end that gives the player less gold than what they normally would get.

I found this thread: https://forums.rpgmakerweb.com/index.php?threads/obtain-less-gold.63496/ but it was for VX Ace, I tried using the formula on the thread in the enemy notetag replacing the conditional to isStateAffected to no luck.

I tried making a conditional in the troop event and one in the battle processing event but neither work, how should I go about this?
The notes field don't just do things, they're for taking notes. Nothing you type in there matters unless you have a plugin coded to do so.

I Googled "rpg maker mv plugin gold drop" and this seems to do what you want:

Original thread: https://forums.rpgmakerweb.com/threads/obtaining-less-gold.172471/