Despite the fact that both morphine are opioids , they function in different ways . Morphine is a direct receptor activator that immediately diminishes intense pain. Conversely , codeine is largely transformed into this active compound in the liver , causing it somewhat potent for managing intense pain and frequently used for mild aches or in a co