It sounds like what you are looking for is something like Steve Jackon's Sorcery series, but adapted for a computer. If so, you're in luck! It's available for Android[1] and iOS[2]. If you do like it, there's a few sequels as well.
Edit: I see StavrosK beat me to it by a few hours...