MAD is the most advanced and extensible (FOSS) adventure engine I've seen. It's open-source, but - sadly - there is no Linux port yet, although the guy who develops it claims there should be no problem compiling it on GNU/Linux. ...it uses Allegro and LUA, btw.
No progress for over 2 years -> WONTFIX. Feel free to reopen with an ebuild.