If you want to recover a certain fraction of max HP, consider looking into the HP patch's routine in the patch under mushroom or a custom block that acts like a mushroom, under "if !MushRecovTyp == 2". Be sure that you have the JSL subroutines as well.