Trying to make a passive conditional damage buff...

As title says, I am trying to create a passive state that boosts the user's attack and defense while they are afflicted with Poison, Blind, or Silence (think the 'Guts' ability from Pokemon). Unfortunately, I am an absolute scripting noob, even after 15 years of messing around with various RPG Makers.

Could someone help me out? I am using VisuStella MZ, and have all 8 Waves of release.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-a-passive-conditional-damage-buff.157963/