If you want to maintain motivation for school, exercise, relationships, or pursuits of any duration and kind, the key thing is to make sure that the peak in dopamine, if it's very high, doesn't occur too often, and if something does occur very often, that you vary how much dopamine you experience with each engagement in that activity.