THis seems interesting. I wanted to do this back in 2008, but then I kinda lost interest. Keep in mind that this would be very hard, though, because there are just so many things to take care of, like NPC events, battles, maps, other kind of events, databases, etc, and the generation of the needed files to run the game.
If you are still working on this, I wish you good luck.