Hi all! I'm looking to implement the 6 or 5 rule in OOTP (starter has to either go six innings or give up 5 runs before being taken out), but I have no idea where to start

Is there a way to do this in game? If not could someone point me in the right direction?