Let's say say 0xBBB is the offset for health and 0xAAA is the offset for hp potion; would like to know what you do with those offset to make it use 0xAAA if 0xBBB = 10%. Those are the real offset, but let's pretend it is.
If 0xBBB <= 10% Then
Use(0xAAA)