50/50 accessory affect.

I'm trying to create an accessory that will either give 25% health, or take 25% away each turn, and I'm finding myself stumped on now to go through with it.

Can anyone help? I don't understand too much about coding and formulas, so I tried to look for an awnser to this but I didn't understand what I saw.
You may need to write a JavaScript plugin where you randomly choose between the two options and then use an if statement to execute code, to give health, or take away health each turn. You may need to put the game logic to take away health each turn inside a loop.
Haha, I don't know where to begin with writing a plugin.
Look under the Game Development Engines section of the forum and look for RPG Maker JavaScript Plugins and you can read threads about learning JavaScript and writing JavaScript plugins for MV and MZ.
Oh wow.

And there's no way to do this through RPG Maker itself? Looking at all of this coding stuff is already giving me a brain tumor. I was just doing this for fun, if it really needs all this I'll just give up on the idea entirely.

My hope was I could somehow use common events and conditional branches.
You can attach common events to items but not to weapons or armor. To do anything outside of the built-in options may require you to use a JavaScript plugin or write a JavaScript plugin.

Original thread: https://forums.rpgmakerweb.com/threads/50-50-accessory-affect.145908/