Constant Status Effect: Lose Speed

Hey guys,

Really new to the engine and game creation as a whole. I’m currently looking at a status effect that halves your max walk speed every time you’re hit with it, with the ability to stack.
The issue I’m currently having is that I have my run/walk on a flip/flop, and when hit with this effect, if I flip from walk to run and vice versa, the effect doesn’t carry over.
So if my max walk speed is 300 and running speed is 1500, if I get my max speed halved when walking to 150, if I hit run, it’ll have a max speed of 1500 and not the desired 750.

I’m guessing it’s a more complex implementation to achieve what I’m looking for so I was hoping somebody would be able to help out.

Much appreciated.