Framework to build interactive novels and adventures