This has already been put into practice (and has been since, like, ever) through RPG's, has it not? Your gender, appearance, traits -- they're all up to you to decide, and shape the way you progress throughout the story.
See, if we're talking about other, more linear games, such as Bioshock...