Complex sentence: Self-discipline is to some extent a substitute for Motivation, except that it isn't, when one uses reason to determine the best course of action that opposes one's desires.
Split into simpler sentences: Self-discipline is to some extent a substitute for Motivation, except that it isn't. When one uses reason to determine the best course of action that opposes one's desires.