I think it's Fudge that handles D&D-like spells this way, and nicely? I have an anthology somewhere, and spell cost/effects are simply indexed to a few key abstract variables: how well prepared you are, how much time you spend, how well you know/understand the target, the size of effect you wish to create, the duration of effect, the time spent casting, &c. Each on a 4- or 5-point scale, so it makes a nice little minigame.
"I don't really have time to cast a two-hour spell during the diplomatic meeitng, so we're going to have to steal one of the Duke's fingernail clippings to make up the ma…