This is a text engine. Feel free to use this in your game (as long as credit is given). Instructions are inside the code.