I can't do it via papyrus, I need it to be a condition on a magic effect. GetActorValuePercent CarryWeight does not work unfortunately.

int playersStamina = Game.GetPlayer().GetActorValue("Stamina") as intand then check the value you get from that against what other conditions you have in your script?